[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e78cde23-5a5e-5e46-fde4-a299629ec6d6@gmail.com>
Date: Wed, 2 Dec 2020 09:26:15 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>,
u.kleine-koenig@...gutronix.de, linux-kernel@...r.kernel.org,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
bcm-kernel-feedback-list@...adcom.com
Cc: linux-pwm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org, wahrenst@....net,
linux-input@...r.kernel.org, dmitry.torokhov@...il.com,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
p.zabel@...gutronix.de, linux-gpio@...r.kernel.org,
linus.walleij@...aro.org, linux-clk@...r.kernel.org,
sboyd@...nel.org, linux-rpi-kernel@...ts.infradead.org,
bgolaszewski@...libre.com, andy.shevchenko@...il.com
Subject: Re: [PATCH v5 01/11] firmware: raspberrypi: Keep count of all
consumers
On 11/23/2020 10:38 AM, Nicolas Saenz Julienne wrote:
> When unbinding the firmware device we need to make sure it has no
> consumers left. Otherwise we'd leave them with a firmware handle
> pointing at freed memory.
>
> Keep a reference count of all consumers and introduce rpi_firmware_put()
> which will permit automatically decrease the reference count upon
> unbinding consumer drivers.
>
> Suggested-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
This looks fine to me, just one nit below:
[snip]
> /**
> - * rpi_firmware_get - Get pointer to rpi_firmware structure.
Is not removing this line going to create a kernel doc warning?
With that fixed:
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists