Searched hist:"90108 c6c51a1d7dcea7ee7753f7af05735b371b4" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | mtdcore.c | 90108c6c51a1d7dcea7ee7753f7af05735b371b4 Sun Dec 02 09:54:22 UTC 2018 Boris Brezillon <boris.brezillon@bootlin.com> UPSTREAM: mtd: Add a function to report when the MTD dev list has been updated
We need to parse mtdparts/mtids again everytime a device has been added/removed from the MTD list, but there's currently no way to know when such an update has been done.
Add an ->updated field to the idr struct that we set to true every time a device is added/removed and expose a function returning the value of this field and resetting it to false.
Change-Id: If7edb8fde01051087b43eb16683aca6b991daace Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 4c47fd0b6bce62162e11b8a22e2eaf0d8f6673b1)
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | mtd.h | 90108c6c51a1d7dcea7ee7753f7af05735b371b4 Sun Dec 02 09:54:22 UTC 2018 Boris Brezillon <boris.brezillon@bootlin.com> UPSTREAM: mtd: Add a function to report when the MTD dev list has been updated
We need to parse mtdparts/mtids again everytime a device has been added/removed from the MTD list, but there's currently no way to know when such an update has been done.
Add an ->updated field to the idr struct that we set to true every time a device is added/removed and expose a function returning the value of this field and resetting it to false.
Change-Id: If7edb8fde01051087b43eb16683aca6b991daace Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 4c47fd0b6bce62162e11b8a22e2eaf0d8f6673b1)
|