[PATCH v2] mtd: part: add generic parsing of linux,part-probe

Hauke Mehrtens hauke at hauke-m.de
Thu Aug 13 13:09:36 PDT 2015


On 05/24/2015 08:38 PM, Hauke Mehrtens wrote:
> This moves the linux,part-probe device tree parsing code from
> physmap_of.c to mtdpart.c. Now all drivers can use this feature by just
> providing a reference to their device tree node in struct
> mtd_part_parser_data.
> 
> Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
> ---
> 
> changes since
> v1:
>  * add documentation for linux,part-probe
>  * fix spacing
>  * add documentation for of_get_probes()
> 
>  Documentation/devicetree/bindings/mtd/nand.txt | 16 ++++++++++
>  drivers/mtd/maps/physmap_of.c                  | 40 +-----------------------
>  drivers/mtd/mtdpart.c                          | 43 ++++++++++++++++++++++++++
>  3 files changed, 60 insertions(+), 39 deletions(-)
> 
I just want to bring this up again.

@Brian do you still have any problem with this patch? Should I use a
different approach and if so which? I think we agreed on that it is bad
when the flash chip driver decides which parser to use and it is not
possible to change it other that changing the code, but this is the
current situation with most drivers.

Hauke



More information about the linux-mtd mailing list