eeprom: at24: remove platform_data
Subsystems (5)
cover eeprom: at24: remove platform_data
From: Bartosz Golaszewski <[email protected]>
Hi Sekhar,
now that all dependencies are in and v5.0-rc1 is tagged, please consider picking up the second batch of davinci-specific changes into your tree. Once that's done, please provide me with an immutable branch for me to apply the last patch to my at24 tree.
This is the second part of the effort to modernize the at24 driver and remove the legacy platform data structure in favor of device properties. It required getting rid of the at24 setup callback in favor of nvmem lookups.
Re-tested with da850-evm and dm365-evm.
Bartosz Golaszewski (12):
ARM: davinci: da850-evm: remove dead MTD code
ARM: davinci: mityomapl138: don't read the MAC address from machine
code
ARM: davinci: dm365-evm: use device properties for at24 eeprom
ARM: davinci: da830-evm: use device properties for at24 eeprom
ARM: davinci: dm644x-evm: use device properties for at24 eeprom
ARM: davinci: dm646x-evm: use device properties for at24 eeprom
ARM: davinci: sffsdr: fix the at24 eeprom device name
ARM: davinci: sffsdr: use device properties for at24 eeprom
ARM: davinci: remove dead code related to MAC address reading
ARM: davinci: mityomapl138: use nvmem notifiers
ARM: davinci: mityomapl138: use device properties for at24 eeprom
eeprom: at24: remove at24_platform_data
MAINTAINERS | 1 - arch/arm/mach-davinci/board-da830-evm.c | 13 +- arch/arm/mach-davinci/board-da850-evm.c | 28 ---- arch/arm/mach-davinci/board-dm365-evm.c | 13 +- arch/arm/mach-davinci/board-dm644x-evm.c | 13 +- arch/arm/mach-davinci/board-dm646x-evm.c | 13 +- arch/arm/mach-davinci/board-mityomapl138.c | 38 ++--- arch/arm/mach-davinci/board-sffsdr.c | 13 +- arch/arm/mach-davinci/common.c | 15 -- drivers/misc/eeprom/at24.c | 162 ++++++++++----------- include/linux/davinci_emac.h | 1 - include/linux/platform_data/at24.h | 60 -------- 12 files changed, 122 insertions(+), 248 deletions(-) delete mode 100644 include/linux/platform_data/at24.h
Signature · 1 line
2.19.1
PATCH RESEND 1/12 ARM: davinci: da850-evm: remove dead MTD code
From: Bartosz Golaszewski <[email protected]>
We no longer need to register the MTD notifier to read the MAC address as it's now being done in the emac driver.
--- arch/arm/mach-davinci/board-da850-evm.c | 28 ------------------------- 1 file changed, 28 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +0 -28
@@ -150,32 +150,6 @@ static struct spi_board_info da850evm_spi_info[] = { }, }; -#ifdef CONFIG_MTD -static void da850_evm_m25p80_notify_add (struct mtd_info *mtd) -{ -char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; -size_t retlen; - -if (!strcmp (mtd->name,"MAC-Address" )) { -mtd_read (mtd,0 ,ETH_ALEN , &retlen, mac_addr); -if (retlen ==ETH_ALEN ) -pr_info ("Read MAC addr from SPI Flash: %pM\n" , - mac_addr); - } -} - -static struct mtd_notifier da850evm_spi_notifier = { - .add = da850_evm_m25p80_notify_add, -}; - -static void da850_evm_setup_mac_addr (void ) -{ -register_mtd_user (&da850evm_spi_notifier); -} -#else -static void da850_evm_setup_mac_addr (void ) { } -#endif -static struct mtd_partition da850_evm_norflash_partition[] = { { .name ="bootloaders + env" ,
@@ -1494,8 +1468,6 @@ static __init void da850_evm_init(void)if (ret)pr_warn ("%s: SATA registration failed: %d\n" , __func__, ret); -da850_evm_setup_mac_addr (); - ret =da8xx_register_rproc ();if (ret) pr_warn("%s: dsp/rproc registration failed: %d\n",
Signature · 1 line
2.19.1
PATCH RESEND 2/12 ARM: davinci: mityomapl138: don't read the MAC address from machine code
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
This is now done by the emac driver using a registered nvmem cell.
--- arch/arm/mach-davinci/board-mityomapl138.c | 8 -------- 1 file changed, 8 deletions(-)
arch/arm/mach-davinci/board-mityomapl138.c +0 -8
@@ -121,7 +121,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) {int ret;const char *partnum =NULL ; -struct davinci_soc_info *soc_info = &davinci_soc_info;if (!IS_BUILTIN (CONFIG_NVMEM )) {pr_warn ("Factory Config not available without CONFIG_NVMEM\n" );
@@ -147,13 +146,6 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) goto bad_config; } -pr_info ("Found MAC = %pM\n" , factory_config.mac); -if (is_valid_ether_addr (factory_config.mac)) -memcpy (soc_info->emac_pdata->mac_addr, - factory_config.mac,ETH_ALEN ); -else -pr_warn ("Invalid MAC found in factory config block\n" ); - partnum = factory_config.partnum;pr_info ("Part Number = %s\n" , partnum);
Signature · 1 line
2.19.1
PATCH RESEND 3/12 ARM: davinci: dm365-evm: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-dm365-evm.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
arch/arm/mach-davinci/board-dm365-evm.c +5 -8
@@ -18,7 +18,7 @@#include <linux/i2c.h> #include <linux/io.h> #include <linux/clk.h> -#include <linux/platform_data/at24.h> +#include <linux/property.h> #include <linux/leds.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h>
@@ -225,18 +225,15 @@ static struct nvmem_cell_lookup davinci_nvmem_cell_lookup = { .con_id = "mac-address", }; -static struct at24_platform_data eeprom_info = { - .byte_len = (256 *1024 ) /8 , - .page_size =64 , - .flags =AT24_FLAG_ADDR16 , - .setup = davinci_get_mac_addr, - .context = (void *)0x7f00 , +static const struct property_entry eeprom_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,64 ), + { } };static struct i2c_board_info i2c_info[] = { {I2C_BOARD_INFO ("24c256" ,0x50 ), - .platform_data = &eeprom_info, + .properties = eeprom_properties, }, {I2C_BOARD_INFO ("tlv320aic3x" ,0x18 ),
Signature · 1 line
2.19.1
PATCH RESEND 4/12 ARM: davinci: da830-evm: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-da830-evm.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +5 -8
@@ -18,7 +18,7 @@#include <linux/platform_device.h> #include <linux/i2c.h> #include <linux/platform_data/pcf857x.h> -#include <linux/platform_data/at24.h> +#include <linux/property.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/spi/spi.h>
@@ -457,12 +457,9 @@ static struct nvmem_cell_lookup da830_evm_nvmem_cell_lookup = { .con_id = "mac-address", }; -static struct at24_platform_data da830_evm_i2c_eeprom_info = { - .byte_len =SZ_256K /8 , - .page_size =64 , - .flags =AT24_FLAG_ADDR16 , - .setup = davinci_get_mac_addr, - .context = (void *)0x7f00 , +static const struct property_entry da830_evm_i2c_eeprom_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,64 ), + { } }; static int __init da830_evm_ui_expander_setup(struct i2c_client *client,
@@ -496,7 +493,7 @@ static struct pcf857x_platform_data __initdata da830_evm_ui_expander_info = {static struct i2c_board_info __initdata da830_evm_i2c_devices[] = { {I2C_BOARD_INFO ("24c256" ,0x50 ), - .platform_data = &da830_evm_i2c_eeprom_info, + .properties = da830_evm_i2c_eeprom_properties, }, {I2C_BOARD_INFO ("tlv320aic3x" ,0x18 ),
Signature · 1 line
2.19.1
PATCH RESEND 5/12 ARM: davinci: dm644x-evm: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-dm644x-evm.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
arch/arm/mach-davinci/board-dm644x-evm.c +5 -8
@@ -16,8 +16,8 @@#include <linux/gpio/machine.h> #include <linux/i2c.h> #include <linux/platform_data/pcf857x.h> -#include <linux/platform_data/at24.h> #include <linux/platform_data/gpio-davinci.h> +#include <linux/property.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> #include <linux/mtd/partitions.h>
@@ -532,12 +532,9 @@ static struct nvmem_cell_lookup dm644evm_nvmem_cell_lookup = { .con_id = "mac-address", }; -static struct at24_platform_data eeprom_info = { - .byte_len = (256 *1024 ) /8 , - .page_size =64 , - .flags =AT24_FLAG_ADDR16 , - .setup = davinci_get_mac_addr, - .context = (void *)0x7f00 , +static const struct property_entry eeprom_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,64 ), + { } };/*
@@ -647,7 +644,7 @@ static struct i2c_board_info __initdata i2c_info[] = { }, { I2C_BOARD_INFO("24c256", 0x50), - .platform_data = &eeprom_info, + .properties = eeprom_properties, }, { I2C_BOARD_INFO("tlv320aic33", 0x1b),
Signature · 1 line
2.19.1
PATCH RESEND 6/12 ARM: davinci: dm646x-evm: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-dm646x-evm.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
arch/arm/mach-davinci/board-dm646x-evm.c +5 -8
@@ -22,7 +22,7 @@#include <linux/gpio.h> #include <linux/platform_device.h> #include <linux/i2c.h> -#include <linux/platform_data/at24.h> +#include <linux/property.h> #include <linux/platform_data/pcf857x.h> #include <linux/platform_data/ti-aemif.h>
@@ -364,12 +364,9 @@ static struct nvmem_cell_lookup dm646x_evm_nvmem_cell_lookup = { .con_id = "mac-address", }; -static struct at24_platform_data eeprom_info = { - .byte_len = (256 *1024 ) /8 , - .page_size =64 , - .flags =AT24_FLAG_ADDR16 , - .setup = davinci_get_mac_addr, - .context = (void *)0x7f00 , +static const struct property_entry eeprom_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,64 ), + { } };#endif
@@ -440,7 +437,7 @@ static void evm_init_cpld(void)static struct i2c_board_info __initdata i2c_info[] = { {I2C_BOARD_INFO ("24c256" ,0x50 ), - .platform_data = &eeprom_info, + .properties = eeprom_properties, }, {I2C_BOARD_INFO ("pcf8574a" ,0x38 ),
Signature · 1 line
2.19.1
PATCH RESEND 7/12 ARM: davinci: sffsdr: fix the at24 eeprom device name
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
The currently used 24lc64 i2c device name doesn't match against any of the devices supported by the at24 driver. Change it to the closest compatible chip.
--- arch/arm/mach-davinci/board-sffsdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-davinci/board-sffsdr.c +1 -1
@@ -100,7 +100,7 @@ static struct at24_platform_data eeprom_info = {static struct i2c_board_info __initdata i2c_info[] = { { -I2C_BOARD_INFO ("24lc64" ,0x50 ), +I2C_BOARD_INFO ("24c64" ,0x50 ), .platform_data = &eeprom_info, },/* Other I2C devices:
Signature · 1 line
2.19.1
PATCH RESEND 8/12 ARM: davinci: sffsdr: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-sffsdr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
arch/arm/mach-davinci/board-sffsdr.c +5 -6
@@ -26,7 +26,7 @@#include <linux/init.h> #include <linux/platform_device.h> #include <linux/i2c.h> -#include <linux/platform_data/at24.h> +#include <linux/property.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> #include <linux/mtd/partitions.h>
@@ -92,16 +92,15 @@ static struct platform_device davinci_sffsdr_nandflash_device = { .resource = davinci_sffsdr_nandflash_resource, }; -static struct at24_platform_data eeprom_info = { - .byte_len = (64 *1024 ) /8 , - .page_size =32 , - .flags =AT24_FLAG_ADDR16 , +static const struct property_entry eeprom_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,32 ), + { } };static struct i2c_board_info __initdata i2c_info[] = { {I2C_BOARD_INFO ("24c64" ,0x50 ), - .platform_data = &eeprom_info, + .properties = eeprom_properties, },/* Other I2C devices: * MSP430, addr 0x23 (not used)
Signature · 1 line
2.19.1
PATCH RESEND 9/12 ARM: davinci: remove dead code related to MAC address reading
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
There are no more users of davinci_get_mac_addr(). Remove it.
--- arch/arm/mach-davinci/common.c | 15 --------------- include/linux/davinci_emac.h | 1 - 2 files changed, 16 deletions(-)
arch/arm/mach-davinci/common.c +0 -15
@@ -26,21 +26,6 @@ EXPORT_SYMBOL(davinci_soc_info);void __iomem *davinci_intc_base;int davinci_intc_type; -void davinci_get_mac_addr (struct nvmem_device *nvmem,void *context) -{ -char *mac_addr = davinci_soc_info.emac_pdata->mac_addr; -off_t offset = (off_t )context; - -if (!IS_BUILTIN (CONFIG_NVMEM )) { -pr_warn ("Cannot read MAC addr from EEPROM without CONFIG_NVMEM\n" ); -return ; - } - -/* Read MAC addr from EEPROM */ -if (nvmem_device_read (nvmem, offset,ETH_ALEN , mac_addr) ==ETH_ALEN ) -pr_info ("Read MAC addr from EEPROM: %pM\n" , mac_addr); -} -static int __init davinci_init_id (struct davinci_soc_info *soc_info) {int i;
include/linux/davinci_emac.h +0 -1
@@ -46,5 +46,4 @@ enum { EMAC_VERSION_2, /* DM646x */ }; -void davinci_get_mac_addr (struct nvmem_device *nvmem,void *context);#endif
Signature · 1 line
2.19.1
PATCH RESEND 10/12 ARM: davinci: mityomapl138: use nvmem notifiers
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
Stop using the at24_platform_data setup callback in favor of nvmem notifiers.
--- arch/arm/mach-davinci/board-mityomapl138.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/board-mityomapl138.c +15 -3
@@ -15,6 +15,8 @@#include <linux/console.h> #include <linux/platform_device.h> #include <linux/mtd/partitions.h> +#include <linux/notifier.h> +#include <linux/nvmem-consumer.h> #include <linux/nvmem-provider.h> #include <linux/regulator/machine.h> #include <linux/i2c.h>
@@ -117,10 +119,15 @@ static void mityomapl138_cpufreq_init(const char *partnum)static void mityomapl138_cpufreq_init (const char *partnum) { }#endif -static void read_factory_config (struct nvmem_device *nvmem,void *context) +static int read_factory_config (struct notifier_block *nb, +unsigned long event,void *data) {int ret;const char *partnum =NULL ; +struct nvmem_device *nvmem = data; + +if (strcmp (nvmem_dev_name (nvmem),"1-00500" ) !=0 ) +return NOTIFY_DONE ;if (!IS_BUILTIN (CONFIG_NVMEM )) {pr_warn ("Factory Config not available without CONFIG_NVMEM\n" );
@@ -152,8 +159,14 @@ static void read_factory_config(struct nvmem_device *nvmem, void *context) bad_config:/* default maximum speed is valid for all platforms */ mityomapl138_cpufreq_init (partnum); + +return NOTIFY_STOP ; } +static struct notifier_block mityomapl138_nvmem_notifier = { + .notifier_call = read_factory_config, +}; +/* * We don't define a cell for factory config as it will be accessed from the * board file using the nvmem notifier chain.
@@ -183,8 +196,6 @@ static struct at24_platform_data mityomapl138_fd_chip = { .byte_len = 256, .page_size = 8, .flags = AT24_FLAG_READONLY | AT24_FLAG_IRUGO, - .setup = read_factory_config, - .context = NULL, };static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
@@ -561,6 +572,7 @@ static void __init mityomapl138_init(void)davinci_serial_init (da8xx_serial_device); +nvmem_register_notifier (&mityomapl138_nvmem_notifier);nvmem_add_cell_table (&mityomapl138_nvmem_cell_table);nvmem_add_cell_lookups (&mityomapl138_nvmem_cell_lookup,1 );
Signature · 1 line
2.19.1
PATCH RESEND 11/12 ARM: davinci: mityomapl138: use device properties for at24 eeprom
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code.
Remove the at24_platform_data structure and replace it with an array of property entries. Drop the byte_len/size property, as the model name already implies the EEPROM's size.
--- arch/arm/mach-davinci/board-mityomapl138.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-davinci/board-mityomapl138.c +6 -6
@@ -14,13 +14,13 @@#include <linux/init.h> #include <linux/console.h> #include <linux/platform_device.h> +#include <linux/property.h> #include <linux/mtd/partitions.h> #include <linux/notifier.h> #include <linux/nvmem-consumer.h> #include <linux/nvmem-provider.h> #include <linux/regulator/machine.h> #include <linux/i2c.h> -#include <linux/platform_data/at24.h> #include <linux/etherdevice.h> #include <linux/spi/spi.h> #include <linux/spi/flash.h>
@@ -192,10 +192,10 @@ static struct nvmem_cell_lookup mityomapl138_nvmem_cell_lookup = { .con_id = "mac-address", }; -static struct at24_platform_data mityomapl138_fd_chip = { - .byte_len =256 , - .page_size =8 , - .flags =AT24_FLAG_READONLY |AT24_FLAG_IRUGO , +static const struct property_entry mityomapl138_fd_chip_properties[] = { +PROPERTY_ENTRY_U32 ("pagesize" ,8 ), +PROPERTY_ENTRY_BOOL ("read-only" ), + { } };static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
@@ -324,7 +324,7 @@ static struct i2c_board_info __initdata mityomap_tps65023_info[] = { }, { I2C_BOARD_INFO("24c02", 0x50), - .platform_data = &mityomapl138_fd_chip, + .properties = mityomapl138_fd_chip_properties, }, };
Signature · 1 line
2.19.1
PATCH RESEND 12/12 eeprom: at24: remove at24_platform_data
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
There are no more users of at24_platform_data. Remove the relevant header and modify the driver code to not use it anymore.
--- MAINTAINERS | 1 - drivers/misc/eeprom/at24.c | 162 +++++++++++++---------------- include/linux/platform_data/at24.h | 60 ----------- 3 files changed, 75 insertions(+), 148 deletions(-) delete mode 100644 include/linux/platform_data/at24.h
MAINTAINERS +0 -1
@@ -2503,7 +2503,6 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git S: Maintained F: Documentation/devicetree/bindings/eeprom/at24.txt F: drivers/misc/eeprom/at24.c -F: include/linux/platform_data/at24.h ATA OVER ETHERNET (AOE) DRIVER M: "Ed L. Cashin" <[email protected]>
drivers/misc/eeprom/at24.c +75 -87
254 lines not on this page · raw message
include/linux/platform_data/at24.h deleted +0 -60
60 lines not on this page · raw message
Signature · 1 line
2.19.1
Hi Bartosz,
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Hi Sekhar,
now that all dependencies are in and v5.0-rc1 is tagged, please consider picking up the second batch of davinci-specific changes into your tree. Once that's done, please provide me with an immutable branch for me to apply the last patch to my at24 tree.
You can use branch v5.1/eeprom-for-bartosz in my tree for this (commit e430685f4969).
Quoted 7 lines
This is the second part of the effort to modernize the at24 driver and remove the legacy platform data structure in favor of device properties. It required getting rid of the at24 setup callback in favor of nvmem lookups.
Re-tested with da850-evm and dm365-evm.
Applied patches 1-11 for v5.1
Thanks,
Sekhar
Quoted 34 lines
Bartosz Golaszewski (12):
ARM: davinci: da850-evm: remove dead MTD code
ARM: davinci: mityomapl138: don't read the MAC address from machine
code
ARM: davinci: dm365-evm: use device properties for at24 eeprom
ARM: davinci: da830-evm: use device properties for at24 eeprom
ARM: davinci: dm644x-evm: use device properties for at24 eeprom
ARM: davinci: dm646x-evm: use device properties for at24 eeprom
ARM: davinci: sffsdr: fix the at24 eeprom device name
ARM: davinci: sffsdr: use device properties for at24 eeprom
ARM: davinci: remove dead code related to MAC address reading
ARM: davinci: mityomapl138: use nvmem notifiers
ARM: davinci: mityomapl138: use device properties for at24 eeprom
eeprom: at24: removeat24_platform_dataMAINTAINERS | 1 - arch/arm/mach-davinci/board-da830-evm.c | 13 +- arch/arm/mach-davinci/board-da850-evm.c | 28 ---- arch/arm/mach-davinci/board-dm365-evm.c | 13 +- arch/arm/mach-davinci/board-dm644x-evm.c | 13 +- arch/arm/mach-davinci/board-dm646x-evm.c | 13 +- arch/arm/mach-davinci/board-mityomapl138.c | 38 ++--- arch/arm/mach-davinci/board-sffsdr.c | 13 +- arch/arm/mach-davinci/common.c | 15 -- drivers/misc/eeprom/at24.c | 162 ++++++++++----------- include/linux/davinci_emac.h | 1 - include/linux/platform_data/at24.h | 60 -------- 12 files changed, 122 insertions(+), 248 deletions(-) delete mode 100644 include/linux/platform_data/at24.hSignature · 1 line
2.19.1
Greg Kroah-Hartman
maintainerQuoted 16 lines · Sekhar Nori
Hi Bartosz,
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Hi Sekhar,
now that all dependencies are in and v5.0-rc1 is tagged, please consider picking up the second batch of davinci-specific changes into your tree. Once that's done, please provide me with an immutable branch for me to apply the last patch to my at24 tree.
You can use branch v5.1/eeprom-for-bartosz in my tree for this (commit
e430685f4969).Quoted 1 line
Quoted 8 lines
Quoted 6 lines
This is the second part of the effort to modernize the at24 driver and remove the legacy platform data structure in favor of device properties. It required getting rid of the at24 setup callback in favor of nvmem lookups.
Re-tested with da850-evm and dm365-evm.
Applied patches 1-11 for v5.1
Feel free to take patch 12 as well :)
thanks,
greg k-h
wt., 22 sty 2019 o 13:22 Greg Kroah-Hartman
<[email protected]> napisał(a):
Quoted 23 lines · Sekhar Nori
Quoted 21 lines
Hi Bartosz,
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Hi Sekhar,
now that all dependencies are in and v5.0-rc1 is tagged, please consider picking up the second batch of davinci-specific changes into your tree. Once that's done, please provide me with an immutable branch for me to apply the last patch to my at24 tree.
You can use branch v5.1/eeprom-for-bartosz in my tree for this (commit
e430685f4969).Quoted 6 lines
This is the second part of the effort to modernize the at24 driver and remove the legacy platform data structure in favor of device properties. It required getting rid of the at24 setup callback in favor of nvmem lookups.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Re-tested with da850-evm and dm365-evm.
Applied patches 1-11 for v5.1
Feel free to take patch 12 as well :)
Hi Greg,
I took over the at24 driver from Wolfram Sang. I collect patches for it in my branch and then send pull-requests to Wolfram directly. I've applied this patch to my branch in case there's some more development for at24 in this cycle. Sekhar provided me with an immutable branch with the arch commits I merged in.
Best regards,
Bartosz Golaszewski
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel