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.brezil...@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 <h...@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: h...@denx.de
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to