RE: [PATCH v6 04/12] spi: intel-dg: spi register with mtd

2024-09-19 Thread Winkler, Tomas
> > On Mon, Sep 16, 2024 at 04:49:20PM +0300, Alexander Usyskin wrote: > > > From: Tomas Winkler > > > > Register the on-die spi device with the mtd subsystem. > > Refcount spi object on _get and _put mtd callbacks. > > This is a MTD driver, it should be in drivers/mtd. Okay. > > > +static

Re: [PATCH v6 04/12] spi: intel-dg: spi register with mtd

2024-09-19 Thread Mark Brown
On Thu, Sep 19, 2024 at 10:01:06AM +, Winkler, Tomas wrote: > > On Mon, Sep 16, 2024 at 04:49:20PM +0300, Alexander Usyskin wrote: > > > +static int intel_dg_spi_write(struct mtd_info *mtd, loff_t to, size_t > > > len, > > > + size_t *retlen, const u_char *buf) { > > > +

Re: [PATCH v6 04/12] spi: intel-dg: spi register with mtd

2024-09-18 Thread Mark Brown
On Mon, Sep 16, 2024 at 04:49:20PM +0300, Alexander Usyskin wrote: > From: Tomas Winkler > > Register the on-die spi device with the mtd subsystem. > Refcount spi object on _get and _put mtd callbacks. This is a MTD driver, it should be in drivers/mtd. > +static int intel_dg_spi_erase(struct m

[PATCH v6 04/12] spi: intel-dg: spi register with mtd

2024-09-16 Thread Alexander Usyskin
From: Tomas Winkler Register the on-die spi device with the mtd subsystem. Refcount spi object on _get and _put mtd callbacks. CC: Rodrigo Vivi CC: Lucas De Marchi Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/spi/spi-intel-dg.c | 111