Re: [PATCH 0/9] AT24 EEPROM MTD Support

2024-08-26 Thread Marco Felsch
Hi Andy, On 24-08-23, Andy Shevchenko wrote: > On Mon, Jul 01, 2024 at 03:53:39PM +0200, Marco Felsch wrote: > > This series adds the intial support to handle EEPROMs via the MTD layer > > as well. This allow the user-space to have separate paritions since > > EEPROMs c

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-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 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 9/9] eeprom: at24: remove deprecated Kconfig symbol

2024-07-02 Thread Marco Felsch
Hi, On 24-07-02, Bartosz Golaszewski wrote: > On Mon, Jul 1, 2024 at 3:54 PM Marco Felsch wrote: > > > > All kernel users are shifted to the new MTD_EEPROM_AT24 Kconfig symbol > > so we can drop the old one. > > > > Nope, with this series arm64 still selects

Re: [PATCH 2/9] mtd: add mtd_is_master helper

2024-07-02 Thread Marco Felsch
On 24-07-01, Sergei Shtylyov wrote: > On 7/1/24 4:53 PM, Marco Felsch wrote: > > > Provide a simple helper to make it easy to detect an master mtd device. > > > > Signed-off-by: Marco Felsch > > --- > > include/linux/mtd/mtd.h | 5 + > > 1 file ch

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

2024-07-01 Thread Marco Felsch
MC551) += pmc551.o diff --git a/drivers/misc/eeprom/at24.c b/drivers/mtd/devices/at24.c similarity index 92% rename from drivers/misc/eeprom/at24.c rename to drivers/mtd/devices/at24.c index 4bd4f32bcdab..713f40a1d95c 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/mtd/devices/at24.c @@ -

[PATCH 0/9] AT24 EEPROM MTD Support

2024-07-01 Thread Marco Felsch
ied that the list of recipients is quite large due to the defconfig changes. Regards, Marco Signed-off-by: Marco Felsch --- Marco Felsch (9): mtd: core: add nvmem_write support mtd: add mtd_is_master helper mtd: add support to handle EEPROM devices mtd: devices: add AT24 eepr

[PATCH 2/9] mtd: add mtd_is_master helper

2024-07-01 Thread Marco Felsch
Provide a simple helper to make it easy to detect an master mtd device. Signed-off-by: Marco Felsch --- include/linux/mtd/mtd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 8d10d9d2e830..bf3fc2ea7230 100644 --- a/include/linux

[PATCH 6/9] powerpc: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/powerpc/configs/44x/warp_defconfig | 2 +- arch/powerpc/configs/mpc512x_defconfig | 2 +- arch/powerpc/configs

[PATCH 5/9] ARM: defconfig: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/arm/configs/aspeed_g4_defconfig | 2 +- arch/arm/configs/aspeed_g5_defconfig | 2 +- arch/arm/configs/at91_dt_defconfig

[PATCH 8/9] LoongArch: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/loongarch/configs/loongson3_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch

[PATCH 9/9] eeprom: at24: remove deprecated Kconfig symbol

2024-07-01 Thread Marco Felsch
All kernel users are shifted to the new MTD_EEPROM_AT24 Kconfig symbol so we can drop the old one. Signed-off-by: Marco Felsch --- drivers/misc/eeprom/Kconfig | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig index 3a9aaec2f2c7

[PATCH 3/9] mtd: add support to handle EEPROM devices

2024-07-01 Thread Marco Felsch
must be set to the I2C device instead of the MTD device and the name must be either the I2C device name or the name specified via the label. Signed-off-by: Marco Felsch --- drivers/mtd/mtdcore.c | 32 +++- include/uapi/mtd/mtd-abi.h | 2 ++ 2 files changed, 33

[PATCH 7/9] MIPS: configs: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/mips/configs/cavium_octeon_defconfig | 2 +- arch/mips/configs/db1xxx_defconfig| 2 +- 2 files changed, 2 insertions

[PATCH 1/9] mtd: core: add nvmem_write support

2024-07-01 Thread Marco Felsch
The MTD framework does support the NVMEM framework already but only the read support was implemented. This commit adds the write support if the MTD device supports writing (MTD_WRITEABLE is set). Signed-off-by: Marco Felsch --- drivers/mtd/mtdcore.c | 17 - 1 file changed, 16

[PATCH 2/3] ASoC: fsl_sai: convert to dev_err_probe

2022-06-01 Thread Marco Felsch
Make use of the new macro to get device defered information for free and to cleanup the code a bit. No functional changes. Signed-off-by: Marco Felsch --- sound/soc/fsl/fsl_sai.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/sound/soc

[PATCH 1/3] ASoC: fsl_sai: use local device pointer

2022-06-01 Thread Marco Felsch
Use a local variable to dereference the device pointer once and use the local variable in further calls. No functional changes. Signed-off-by: Marco Felsch --- sound/soc/fsl/fsl_sai.c | 53 + 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a

[PATCH 3/3] ASoC: fsl_sai: add error message in case of missing imx-pcm-dma support

2022-06-01 Thread Marco Felsch
e. It took a while to find the missing Kconfig. Make this easier for others by printing a error if this the module isn't available but required by the HW. Signed-off-by: Marco Felsch --- sound/soc/fsl/fsl_sai.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/so

Re: [PATCH 2/2] ASoC: fsl: imx-es8328: add missing put_device() call in imx_es8328_probe()

2020-08-27 Thread Marco Felsch
On 20-08-25 20:05, Yu Kuai wrote: > if of_find_device_by_node() succeed, imx_es8328_probe() doesn't have > a corresponding put_device(). Why do we need the ssi_pdev reference here at all? Regards, Marco