[PATCH 08/10] soc: fujitsu: hwb: Add release operation

Arnd Bergmann arnd at kernel.org
Fri Jan 8 08:25:10 EST 2021


On Fri, Jan 8, 2021 at 11:52 AM Misono Tomohiro
<misono.tomohiro at jp.fujitsu.com> wrote:
>
> Upon release, we cleanup remaining resources/registers if necessary.
> This happens when user does not call IOC_BB_FREE properly and the
> function will do effectively the same operation as IOC_BB_FREE.
>
> Signed-off-by: Misono Tomohiro <misono.tomohiro at jp.fujitsu.com>

What is the benefit of calling IOC_BB_FREE instead of always relying
on close() to do this? Would it be easier to just not implement IOC_BB_FREE?

      Arnd



More information about the linux-arm-kernel mailing list