[Pdbg] [PATCH v2 03/24] libpdbg: Implement release function for sbefifo driver
Alistair Popple
alistair at popple.id.au
Wed Nov 20 14:41:03 AEDT 2019
Reviewed-by: Alistair Popple <alistair at popple.id.au>
On Thursday, 7 November 2019 1:27:47 PM AEDT Amitay Isaacs wrote:
> 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,
>
More information about the Pdbg
mailing list