Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-10 Thread Richard Weinberger
Am 11.06.2015 um 07:43 schrieb Michael Ellerman: > On Fri, 2015-06-05 at 10:16 +0200, Richard Weinberger wrote: >> On Fri, Jun 5, 2015 at 6:40 AM, Cyril Bur wrote: >>> On Tue, 2015-06-02 at 14:26 +1000, Cyril Bur wrote: Powerpc powernv platforms allow access to certain system flash devices >>

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-10 Thread Michael Ellerman
On Fri, 2015-06-05 at 10:16 +0200, Richard Weinberger wrote: > On Fri, Jun 5, 2015 at 6:40 AM, Cyril Bur wrote: > > On Tue, 2015-06-02 at 14:26 +1000, Cyril Bur wrote: > >> Powerpc powernv platforms allow access to certain system flash devices > >> through a firmwarwe interface. This change adds a

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-05 Thread Richard Weinberger
On Fri, Jun 5, 2015 at 6:40 AM, Cyril Bur wrote: > On Tue, 2015-06-02 at 14:26 +1000, Cyril Bur wrote: >> Powerpc powernv platforms allow access to certain system flash devices >> through a firmwarwe interface. This change adds an mtd driver for these >> flash devices. >> >> Minor updates from Jer

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-04 Thread Cyril Bur
On Tue, 2015-06-02 at 14:26 +1000, Cyril Bur wrote: > Powerpc powernv platforms allow access to certain system flash devices > through a firmwarwe interface. This change adds an mtd driver for these > flash devices. > > Minor updates from Jeremy Kerr and Joel Stanley. > > Signed-off-by: Cyril Bur

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-01 Thread Neelesh Gupta
On 06/02/2015 09:56 AM, Cyril Bur wrote: Powerpc powernv platforms allow access to certain system flash devices through a firmwarwe interface. This change adds an mtd driver for these flash devices. Minor updates from Jeremy Kerr and Joel Stanley. Signed-off-by: Cyril Bur Signed-off-by: Joel

[PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-01 Thread Cyril Bur
Powerpc powernv platforms allow access to certain system flash devices through a firmwarwe interface. This change adds an mtd driver for these flash devices. Minor updates from Jeremy Kerr and Joel Stanley. Signed-off-by: Cyril Bur Signed-off-by: Joel Stanley Signed-off-by: Jeremy Kerr --- Hel

[PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-05-31 Thread Cyril Bur
Powerpc powernv platforms allow access to certain system flash devices through a firmwarwe interface. This change adds an mtd driver for these flash devices. Minor updates from Jeremy Kerr and Joel Stanley. Signed-off-by: Cyril Bur Signed-off-by: Joel Stanley Signed-off-by: Jeremy Kerr --- V2:

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-05-31 Thread Cyril Bur
On Fri, 2015-05-29 at 14:52 +0530, Neelesh Gupta wrote: > > [...] > > > +/** > > + * @mtd: the device > > + * @erase: the erase info > > + * Returns 0 if erase successful or -ERRNO if an error occurred > > + */ > > +static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info > > *eras

Re: [PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-05-29 Thread Neelesh Gupta
[...] +/** + * @mtd: the device + * @erase: the erase info + * Returns 0 if erase successful or -ERRNO if an error occurred + */ +static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) +{ + int rc; + + erase->state = MTD_ERASING; + + /* todo: register ou

[PATCH V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-05-29 Thread Cyril Bur
Powerpc powernv platforms allow access to certain system flash devices through a firmwarwe interface. This change adds an mtd driver for these flash devices. Minor updates from Jeremy Kerr and Joel Stanley. Signed-off-by: Cyril Bur Signed-off-by: Joel Stanley Signed-off-by: Jeremy Kerr --- V2: