[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <160783644171.1580929.15619962172135112128@swboyd.mtv.corp.google.com>
Date: Sat, 12 Dec 2020 21:14:01 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Florian Fainelli <f.fainelli@...il.com>,
Nicolas Saenz Julienne <nsaenzjulienne@...e.de>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
bcm-kernel-feedback-list@...adcom.com,
linux-kernel@...r.kernel.org, u.kleine-koenig@...gutronix.de
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,
linux-rpi-kernel@...ts.infradead.org, bgolaszewski@...libre.com,
andy.shevchenko@...il.com
Subject: Re: [PATCH v6 01/11] firmware: raspberrypi: Keep count of all consumers
Quoting Nicolas Saenz Julienne (2020-12-11 08:47:50)
> 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>
> Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
>
> ---
Reviewed-by: Stephen Boyd <sboyd@...nel.org>
Powered by blists - more mailing lists