[U-Boot] [PATCH v3 01/11] mtd: Add a function to report when the MTD dev list has been updated

Heiko Schocher hs at denx.de
Wed Nov 21 06:44:02 UTC 2018


Hello Boris,

Am 19.11.2018 um 21:59 schrieb Boris Brezillon:
> 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.
> 
> Signed-off-by: Boris Brezillon <boris.brezillon at bootlin.com>
> ---
> Changes in v2:
> - None
> ---
>   drivers/mtd/mtdcore.c   | 16 +++++++++++++++-
>   include/linux/mtd/mtd.h |  1 +
>   2 files changed, 16 insertions(+), 1 deletion(-)

Tested-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list