u-boot/drivers/misc
John Keeping 9fea3696ef rockchip: otp: fix misc_read() return values
The documentation for misc_read() says:

    Return: number of bytes read if OK (may be 0 if EOF), -ve on error

The Rockchip efuse driver implements this so it should return the number
of bytes read rather than zero on success.  Fix this so that the driver
follows the usual contract for read operations.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-04-21 15:16:01 +08:00
..
imx8 imx8: scu_api: sync sc_rm_is_pad_owned api change 2023-01-31 19:44:23 +01:00
sentinel misc: sentinel: s400_api: Use new command request definitions 2023-03-29 22:27:38 +02:00
altera_sysid.c
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
cros_ec.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
cros_ec_i2c.c
cros_ec_lpc.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
cros_ec_sandbox.c doc: replace @return by Return: 2022-01-19 18:11:34 +01: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
esm_pmic.c
fs_loader.c misc: fs_loader: Add function to get the chosen loader 2023-01-12 14:06:15 -05: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
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
gdsys_ioep.h
gdsys_rxaui_ctrl.c
gdsys_soc.c
gdsys_soc.h
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: remove 24aa02e48 2022-06-28 10:09:45 +03:00
i2c_eeprom_emul.c test: Load mac address with i2c eeprom 2022-06-08 14:00:22 -04:00
ihs_fpga.c
ihs_fpga.h
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
k3_avs.c
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 misc: imx: remove DM dependency for ocotp driver in SPL 2023-03-30 08:40:27 +02:00
ls2_sfp.c misc: ls2_sfp: Fix regulator name 2023-02-01 14:17:29 +08:00
Makefile misc: Drop mc9sdz60 driver 2023-02-07 14:33:48 -05:00
microchip_flexcom.c
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
mpc83xx_serdes.h
mxc_ocotp.c Fix URLs to old freescale git repos 2022-03-28 08:22:17 -04:00
mxs_ocotp.c
npcm_host_intf.c misc: nuvoton: Add host interface configuration driver 2022-07-06 18:34:16 -04:00
npcm_otp.c misc: nuvoton: Add NPCM7xx otp controller driver 2022-06-22 21:30:05 -04:00
nuvoton_nct6102d.c
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
p2sb_sandbox.c
pca9551_led.c
pwrseq-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
qfw.c qemu: Add a bootdev for qfw 2023-02-06 13:04:53 -05: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-otp.c rockchip: otp: fix misc_read() return values 2023-04-21 15:16:01 +08:00
sandbox_adder.c
sifive-otp.c
sl28cpld.c misc: add sl28cpld base driver 2022-02-28 11:59:35 +05:30
smsc_lpc47m.c
smsc_sio1007.c
spltest_sandbox.c
status_led.c
stm32_rcc.c clk: stm32: add support compatible st, stm32mp1-rcc-secure 2022-07-12 11:46:32 +02:00
stm32mp_fuse.c
swap_case.c drivers: pci: sandbox: Add stub sandbox PCI MPS support 2023-03-30 15:09:59 -04:00
syscon_sandbox.c
tegra186_bpmp.c
tegra_car.c
test_drv.c dm: core: Support accessing core tags 2022-06-28 03:09:52 +01:00
twl4030_led.c
usb251xb.c misc: ub251xb: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR 2023-04-08 03:53:23 +02:00
vexpress_config.c
winbond_w83627.c