[Pdbg] [PATCH v2 03/24] libpdbg: Implement release function for sbefifo driver
Amitay Isaacs
amitay at ozlabs.org
Thu Nov 7 13:27:47 AEDT 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/sbefifo.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c
index 440c0ee..3c20e3f 100644
--- a/libpdbg/sbefifo.c
+++ b/libpdbg/sbefifo.c
@@ -191,6 +191,13 @@ static int sbefifo_probe(struct pdbg_target *target)
return 0;
}
+static void sbefifo_release(struct pdbg_target *target)
+{
+ struct sbefifo *sf = target_to_sbefifo(target);
+
+ sbefifo_disconnect(sf->sf_ctx);
+}
+
static struct mem sbefifo_mem = {
.target = {
.name = "SBE FIFO Chip-op based memory access",
@@ -208,6 +215,7 @@ static struct sbefifo kernel_sbefifo = {
.compatible = "ibm,kernel-sbefifo",
.class = "sbefifo",
.probe = sbefifo_probe,
+ .release = sbefifo_release,
},
.istep = sbefifo_op_istep,
.thread_start = sbefifo_op_thread_start,
--
2.21.0
More information about the Pdbg
mailing list