Searched hist:"1 e7c57355a3bc617fc220234889e49fe722a6305" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/soc/bcm2835/ |
H A D | raspberrypi-firmware.h | diff 1e7c57355a3bc617fc220234889e49fe722a6305 Mon Jan 18 06:32:34 CST 2021 Nicolas Saenz Julienne <nsaenzjulienne@suse.de> firmware: raspberrypi: Keep count of all consumers
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@pengutronix.de> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
/openbmc/linux/drivers/firmware/ |
H A D | raspberrypi.c | diff 1e7c57355a3bc617fc220234889e49fe722a6305 Mon Jan 18 06:32:34 CST 2021 Nicolas Saenz Julienne <nsaenzjulienne@suse.de> firmware: raspberrypi: Keep count of all consumers
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@pengutronix.de> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|