RE: [PATCH 4/5] soc: fsl: dpio: add a device_link at dpaa2_io_service_register

From: Ioana Ciocoi Radulescu
Date: Fri Dec 14 2018 - 09:49:29 EST


> -----Original Message-----
> From: Horia Geanta
> Sent: Friday, December 14, 2018 4:45 PM
> To: Ioana Ciornei <ioana.ciornei@xxxxxxx>; Leo Li <leoyang.li@xxxxxxx>;
> linux-kernel@xxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx
> Cc: Laurentiu Tudor <laurentiu.tudor@xxxxxxx>; Ioana Ciocoi Radulescu
> <ruxandra.radulescu@xxxxxxx>; Roy Pledge <roy.pledge@xxxxxxx>
> Subject: Re: [PATCH 4/5] soc: fsl: dpio: add a device_link at
> dpaa2_io_service_register
>
> On 12/10/2018 6:50 PM, Ioana Ciornei wrote:
> > Automatically add a device link between the actual device requesting the
> > dpaa2_io_service_register and the underlying dpaa2_io used. This link
> > will ensure that when a DPIO device, which is indirectly used by other
> > devices, is unbound any consumer devices will be also unbound from their
> > drivers.
> >
> > For example, any DPNI, bound to the dpaa2-eth driver, which is using
> > DPIO devices will be unbound before its supplier device.
> >
> > Also, add a new parameter to the dpaa2_io_service_[de]register functions
> > to specify the requesting device (ie the consumer).
> >
> > Signed-off-by: Ioana Ciornei <ioana.ciornei@xxxxxxx>
> Reviewed-by: Horia Geantă <horia.geanta@xxxxxxx>

Reviewed-by: Ioana Radulescu <ruxandra.radulescu@xxxxxxx>

Thanks,
Ioana