u-boot/drivers
Igor Prusov 54d7da7730 clk: Check that composite clock's div has set_rate()
It's possible for composite clocks to have a divider that does not
implement set_rate() operation. For example, sandbox_clk_composite()
registers composite clock with a divider that only has get_rate().
Currently clk_composite_set_rate() only checks thate rate_ops are
present, so for sandbox it will cause NULL dereference during
clk_set_rate().

This patch adds rate_ops->set_rate check tp clk_composite_set_rate().

Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20231205232334.2931-2-ivprusov@salutedevices.com
2023-12-15 12:32:00 -05:00
..
adc dm: adc: imx93-adc depends on ADC (fix boot) 2023-10-18 10:02:49 +02:00
ata bootstd: Skip over bad device during bootflows scanning 2023-11-10 11:01:50 -05:00
axi axi: fix definition of axi_sandbox_get_emul() 2023-06-01 12:32:03 -04:00
bios_emulator common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
block rockchip: block: blk-uclass: add bounce buffer flag to blk_desc 2023-10-24 15:55:17 +08:00
bootcount bootcount: Add driver model I2C driver 2023-10-31 09:09:04 +01:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button dm: button: add support for linux_code in button-gpio.c driver 2023-02-10 12:50:01 -05:00
cache drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
clk clk: Check that composite clock's div has set_rate() 2023-12-15 12:32:00 -05:00
core dm: Do not enable debug messages by default 2023-11-14 20:04:01 -07:00
cpu cpu: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
crypto Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
ddr ddr: imx: Add 3600 MTps rate support 2023-12-14 15:29:08 -03:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu dfu: mmc: Add support for exposing whole mmc device 2023-10-31 14:53:05 +01:00
dma tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
extcon extcon: add MAX14526 MUIC support 2023-05-02 14:23:58 -04:00
fastboot common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
firmware tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
fpga arm64: zynqmp: Fix Siva's email address format 2023-10-09 10:25:32 +02:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for MTD storage regions 2023-06-09 13:52:40 -04:00
gpio tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
hwspinlock hwspinlock: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
i2c i2c: Bugfix in i2c_get_chip_by_phandle() 2023-11-27 18:54:56 -05:00
input input: avoid NULL dereference 2023-10-11 10:35:24 -04:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led drivers: led: bcm6858: do not use null label to find the top 2023-07-25 12:44:46 -04:00
mailbox tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
memory tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc drivers: misc: Kconfig: Fix SPL_FS_LOADER prompt 2023-12-13 09:57:02 -05:00
mmc Merge branch 'master-mmc-clock' of https://source.denx.de/u-boot/custodians/u-boot-sh 2023-11-18 10:25:48 -05:00
mtd mtd: spi-nor: Add support for zBIT ZB25VQ128 2023-12-06 23:09:01 +00:00
mux tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
net net: sun8i_emac: Drop DM_GPIO checks 2023-11-12 16:45:03 +00:00
nvme blk: Use a macro for the typical block size 2023-10-10 16:19:29 -04:00
pch x86: Convert some debug statements to use logging 2023-07-17 17:23:14 +08:00
pci Merge tag 'u-boot-rockchip-20231007' of https://source.denx.de/u-boot/custodians/u-boot-rockchip 2023-10-08 09:58:55 -04:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
pinctrl pinctrl: sunxi: Avoid using .bss for SPL 2023-11-12 16:46:46 +00:00
power sunxi: H616: remove default AXP305 selection 2023-12-06 23:09:17 +00:00
pwm pwm: mtk: add support for MediaTek MT7988 SoC 2023-08-03 09:40:49 -04:00
qe global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ram tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
reset tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
rng rng: Add StarFive JH7110 RNG driver 2023-11-02 17:45:53 +08:00
rtc drivers: rtc: max313xx: provide read8/write8 2023-07-25 12:44:46 -04:00
scsi scsi: set dma direction to NONE for TEST UNIT READY 2023-11-20 08:34:08 -05:00
serial serial: s5p: Use dev_read_addr_ptr() to get base address 2023-11-27 18:04:11 +09:00
sm drivers: sm: bind child sm devices in the device tree 2023-11-06 09:45:47 +01:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo sysinfo: gpio: fix loop over DT "revisions" array 2023-03-30 15:09:59 -04:00
sysreset tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
tee drivers: tee: sandbox: Fix SCP03 control emulator 2023-04-28 11:30:17 -06:00
thermal tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
timer riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode 2023-10-04 18:23:54 +08:00
tpm tpm: sandbox: Update for needed TPM2 capabilities 2023-10-27 13:08:25 +03:00
ufs tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
usb usb: USB_XHCI_PCI depends on PCI 2023-12-01 16:01:59 +01:00
video Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi 2023-10-23 11:39:33 -04:00
virtio virtio: rng: gracefully handle 0 byte returns 2023-11-17 11:58:26 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog watchdog: Add StarFive Watchdog driver 2023-12-05 16:40:16 +08:00
xen xen: Limit execution to EL1 only 2023-04-25 15:31:28 -04:00
Kconfig drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
Makefile sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00