[U-Boot] [PATCH v7 16/34] sf: Add MTD support to spi_flash

Jagan Teki jteki at openedev.com
Thu Nov 26 20:14:26 CET 2015


Hi Simon,

On 26 November 2015 at 23:20, Simon Glass <sjg at chromium.org> wrote:
> Hi Jagan,
>
> On 26 November 2015 at 04:04, Jagan Teki <jteki at openedev.com> wrote:
>> This patch adds mtd_info support to spi_flash layer, MTD has
>> proven core for flash operations so adding MTD to spi_flash
>> will extends more functionality.
>>
>> Reviewed-by: Heiko Schocher <hs at denx.de>
>> Signed-off-by: Jagan Teki <jteki at openedev.com>
>> ---
>>  drivers/mtd/spi/sf_ops.c   | 40 +++++++++++++++++++++++-----------------
>>  drivers/mtd/spi/sf_probe.c | 28 ++++++++++++++++++++--------
>>  include/spi_flash.h        |  4 ++++
>>  3 files changed, 47 insertions(+), 25 deletions(-)
>
> This uses its own methods instead of driver model - function pointers
> should be part of operations in a uclass.

Because mtd_info having generic ops which is going to use any
underlying flash layer so this patch uses those core ops and dropped
spi_flash ops.

thanks!
-- 
Jagan | openedev.


More information about the U-Boot mailing list