[PATCH 06/36] mtd: nand: omap: Move gpmc_update_nand_reg to nand driver

Tony Lindgren tony at atomide.com
Fri Jun 13 00:19:46 PDT 2014


* Roger Quadros <rogerq at ti.com> [140611 01:58]:
> GPMC and NAND drivers share the same register space but never use the
> same registers. As there is no clear address seperation between the
> registers for GPMC and NAND, we can't easily split it up into 2 regions
> i.e. one for GPMC and other for NAND. Instead, we simply remap the entire
> register space in both the drivers. The NAND driver doesn't re-request
> the region as it is already requested by the GPMC driver (parent).

Oh now, let's not do this. It's best to limit GPMC register access
to the GPMC driver. Even if we need to export few NAND specific
functions from the GPMC driver.

Regards,

Tony



More information about the linux-mtd mailing list