u-boot/drivers/misc
Michel Alex 5ed1c55fb4 misc: i2c_eeprom: consider pagesize when writing to eeprom
Calculate the maximum length of the buffer when writing
across the page boundary. If the buffer length (len)
exceeds the page boundary (pagesize), split it. Use this
length instead of comparing the length with the pagesize,
because if the write start address (offset) is not at the
beginning of a page and the page_offset + len is greater
than the page boundary (pagesize), the write operation
would overflow the current page and the behaviour can be
undefined (e.g. at24).

Signed-off-by: Alex Michel <alex.michel@wiedemann-group.com>
2023-10-30 15:32:49 -04:00
..
imx8 imx: scu_api: update to version 1.16 and add more APIs 2023-07-13 11:29:40 +02:00
imx_ele imx: imx8ulp: start the ELE RNG at boot 2023-07-13 11:29:40 +02:00
altera_sysid.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
atsha204a-i2c.c misc: atsha204a: Don't check for error when waking up the device 2022-08-09 10:01:31 +02:00
cbmem_console.c x86: Update cbmem driver 2023-09-22 06:03:46 +08:00
cros_ec.c cros_ec: Fix an error code is cros_ec_get_sku_id() 2023-08-08 17:05:43 -04:00
cros_ec_i2c.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
cros_ec_lpc.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
cros_ec_sandbox.c sandbox: Init the EC properly even if no state file is available 2023-10-06 14:38:13 -04:00
cros_ec_spi.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ds4510.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
ds4510.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
esm_pmic.c k3: pmic: Clear ESM masks 2023-05-04 13:03:54 -04:00
fs_loader.c misc: fs_loader: Fix alignment of fs_loader driver 2023-10-11 13:22:32 -04:00
fsl_devdis.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
fsl_ifc.c Correct SPL use of A003399_NOR_WORKAROUND 2023-02-09 16:32:25 -05:00
fsl_iim.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_portals.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
fsl_sec_mon.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
gdsys_ioep.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
gdsys_ioep.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
gdsys_rxaui_ctrl.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
gdsys_soc.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
gdsys_soc.h misc: Add gdsys_soc driver 2018-11-14 09:16:27 -08:00
gpio_led.c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
gsc.c kbuild: Remove uncmd_spl logic 2022-12-23 10:15:13 -05:00
i2c_eeprom.c misc: i2c_eeprom: consider pagesize when writing to eeprom 2023-10-30 15:32:49 -04:00
i2c_eeprom_emul.c test: Load mac address with i2c eeprom 2022-06-08 14:00:22 -04:00
ihs_fpga.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ihs_fpga.h misc: Add IHS FPGA driver 2018-11-14 09:16:27 -08:00
irq-uclass.c treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
irq_sandbox.c irq: Tidy up of-platdata irq support 2021-09-25 09:46:15 -06:00
irq_sandbox_test.c irq: Tidy up of-platdata irq support 2021-09-25 09:46:15 -06:00
jz4780_efuse.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
k3_avs.c driver: misc: k3_avs: Add support for thermal shutdown 2023-10-27 21:02:08 -04:00
k3_esm.c misc: k3_esm: Add functionality to set and route error events within K3SoC 2022-04-04 19:02:04 -04:00
Kconfig Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
ls2_sfp.c misc: ls2_sfp: Fix regulator name 2023-02-01 14:17:29 +08:00
Makefile rockchip: Port IO-domain driver for RK3568 from linux 2023-10-07 16:49:41 +08:00
microchip_flexcom.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
misc-uclass.c misc: mark write buffer const 2022-01-24 10:35:10 -05:00
misc_sandbox.c test: Load mac address using misc device 2022-06-08 14:00:22 -04:00
mpc83xx_serdes.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mpc83xx_serdes.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mxc_ocotp.c Fix URLs to old freescale git repos 2022-03-28 08:22:17 -04:00
mxs_ocotp.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
npcm_host_intf.c misc: npcm_host_intf: change initialization sequence 2023-07-14 12:52:18 -04:00
npcm_otp.c misc: nuvoton: fix type error 2023-07-14 12:52:18 -04:00
nuvoton_nct6102d.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nvmem.c misc: Add support for nvmem cells 2022-06-08 14:00:22 -04:00
p2sb-uclass.c treewide: Try to avoid the preprocessor with OF_REAL 2021-09-25 09:46:15 -06:00
p2sb_emul.c x86: p2sb: Drop LOG_DEBUG 2021-03-27 13:59:36 +13:00
p2sb_sandbox.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pca9551_led.c common: Drop global inclusion of status_led.h 2019-12-02 18:23:06 -05:00
pwrseq-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
qcom-geni-se.c misc: add Qualcomm GENI SE QUP device driver 2023-05-02 14:23:58 -04:00
qfw.c x86: Record the start and end of the tables 2023-07-17 17:23:08 +08:00
qfw_mmio.c qemu: add MMIO driver for QFW 2021-04-12 17:45:40 -04:00
qfw_pio.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
qfw_sandbox.c sandbox: cast to pointer from integer of different size 2022-06-28 03:09:52 +01:00
rockchip-efuse.c rockchip: efuse: fix misc_read() return values 2023-04-21 15:16:01 +08:00
rockchip-io-domain.c rockchip: Port IO-domain driver for RK3568 from linux 2023-10-07 16:49:41 +08:00
rockchip-otp.c rockchip: otp: fix misc_read() return values 2023-04-21 15:16:01 +08:00
sandbox_adder.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
sifive-otp.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
sl28cpld.c misc: add sl28cpld base driver 2022-02-28 11:59:35 +05:30
smsc_lpc47m.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smsc_sio1007.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spltest_sandbox.c sandbox: Add a compatible string for spltest 2021-01-05 12:24:41 -07:00
status_led.c status_led: Tidy up the code style 2019-12-02 18:23:06 -05:00
stm32_rcc.c clk: stm32: add support compatible st, stm32mp1-rcc-secure 2022-07-12 11:46:32 +02:00
stm32mp_fuse.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
swap_case.c drivers: pci: sandbox: Add stub sandbox PCI MPS support 2023-03-30 15:09:59 -04:00
syscon_sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra186_bpmp.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
tegra_car.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
test_drv.c dm: core: Support accessing core tags 2022-06-28 03:09:52 +01:00
twl4030_led.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb251xb.c misc: ub251xb: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR 2023-04-08 03:53:23 +02:00
vexpress_config.c misc: vexpress_config: Use member .priv_auto to set the private data 2023-10-27 21:02:08 -04:00
winbond_w83627.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00