Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-08-24 Thread Miquel Raynal
Hi Marco, m.fel...@pengutronix.de wrote on Thu, 18 Jul 2024 11:17:53 +0200: > Hi Miquel, > > On 24-07-17, Miquel Raynal wrote: > > Hi Marco, > > > > > > > > Overall I think the idea of getting rid of these misc/ drivers is > > > > > > goes > > > > > > into the right direction, but registerin

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-18 Thread Marco Felsch
Hi Miquel, On 24-07-17, Miquel Raynal wrote: > Hi Marco, > > > > > > Overall I think the idea of getting rid of these misc/ drivers is goes > > > > > into the right direction, but registering directly into NVMEM makes > > > > > more sense IMO. > > > > > > > > So you propose to have two place

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-17 Thread Miquel Raynal
Hi Marco, > > > > Overall I think the idea of getting rid of these misc/ drivers is goes > > > > into the right direction, but registering directly into NVMEM makes > > > > more sense IMO. > > > > > > So you propose to have two places for the partition handling (one for > > > MTD and one for

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-09 Thread Marco Felsch
On 24-07-09, Miquel Raynal wrote: > Hi Marco, > > > > > > >> I also found a thread from 2013 by Maxime Ripard (+Cc) suggesting > > > > > >> adding > > > > > >> EEPROMs to MTD [1]. The main purpose would have been unifying the > > > > > >> EEPROM > > > > > >> drivers under a single interface. I a

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-09 Thread Miquel Raynal
Hi Marco, > > > > >> I also found a thread from 2013 by Maxime Ripard (+Cc) suggesting > > > > >> adding > > > > >> EEPROMs to MTD [1]. The main purpose would have been unifying the > > > > >> EEPROM > > > > >> drivers under a single interface. I am not sure what came of it > > > > >> though, >

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-09 Thread Marco Felsch
Hi Miquel, On 24-07-08, Miquel Raynal wrote: > Hi, > > > > >> >> Port the current misc/eeprom/at24.c driver to the MTD framework > > > >> >> since > > > >> >> EEPROMs are memory-technology devices and the framework already > > > >> >> supports > > > >> > > > > >> > I was under the impression

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-07 Thread Miquel Raynal
Hi, > > >> >> Port the current misc/eeprom/at24.c driver to the MTD framework since > > >> >> EEPROMs are memory-technology devices and the framework already > > >> >> supports > > >> > > > >> > I was under the impression that MTD devices are tightly coupled by > > >> > erase > > >> > blocks.

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-02 Thread Pratyush Yadav
On Tue, Jul 02 2024, Maxime Ripard wrote: > On Tue, Jul 02, 2024 at 03:41:52PM GMT, Pratyush Yadav wrote: >> On Mon, Jul 01 2024, Tudor Ambarus wrote: >> >> > On 7/1/24 2:53 PM, Marco Felsch wrote: >> >> EEPROMs can become quite large nowadays (>=64K). Exposing such devices >> >> as single device

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-02 Thread Pratyush Yadav
On Mon, Jul 01 2024, Tudor Ambarus wrote: > On 7/1/24 2:53 PM, Marco Felsch wrote: >> EEPROMs can become quite large nowadays (>=64K). Exposing such devices >> as single device isn't always sufficient. There may be partitions which >> require different access permissions. Also write access always

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-02 Thread Maxime Ripard
On Tue, Jul 02, 2024 at 04:15:20PM GMT, Pratyush Yadav wrote: > On Tue, Jul 02 2024, Maxime Ripard wrote: > > > On Tue, Jul 02, 2024 at 03:41:52PM GMT, Pratyush Yadav wrote: > >> On Mon, Jul 01 2024, Tudor Ambarus wrote: > >> > >> > On 7/1/24 2:53 PM, Marco Felsch wrote: > >> >> EEPROMs can becom

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-02 Thread Maxime Ripard
On Tue, Jul 02, 2024 at 03:41:52PM GMT, Pratyush Yadav wrote: > On Mon, Jul 01 2024, Tudor Ambarus wrote: > > > On 7/1/24 2:53 PM, Marco Felsch wrote: > >> EEPROMs can become quite large nowadays (>=64K). Exposing such devices > >> as single device isn't always sufficient. There may be partitions

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-01 Thread Tudor Ambarus
On 7/1/24 2:53 PM, Marco Felsch wrote: > EEPROMs can become quite large nowadays (>=64K). Exposing such devices > as single device isn't always sufficient. There may be partitions which > require different access permissions. Also write access always need to > to verify the offset. > > Port the

[PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-01 Thread Marco Felsch
At the moment there are three ways to access EEPROM content from user-space: 1st) via the single nvmem device (rw) 2nd) via the single 'eeprom' device (rw) 3th) via nvmem-cells (r) EEPROMs can become quite large nowadays (>=64K). Exposing such devices as single device isn't always sufficien