linux/drivers/soc
Manikanta Mylavarapu 128fdbf36c soc: qcom: socinfo: fix revision check in qcom_socinfo_probe()
In success case, the revision holds a non-null pointer. The current
logic incorrectly returns an error for a non-null pointer, whereas
it should return an error for a null pointer.

The socinfo driver for IPQ9574 and IPQ5332 is currently broken,
resulting in the following error message
qcom-socinfo qcom-socinfo: probe with driver qcom-socinfo failed with
error -12

Add a null check for the revision to ensure it returns an error only in
failure case (null pointer).

Fixes: e694d2b5c5 ("soc: qcom: Add check devm_kasprintf() returned value")
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241016144852.2888679-1-quic_mmanikan@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2024-10-24 09:46:20 -05:00
..
amlogic soc: amlogic: meson-gx-socinfo: add new SoCs id 2024-08-20 17:27:27 +02:00
apple soc: apple: mailbox: error pointers are negative integers 2024-01-30 11:34:49 -08:00
aspeed soc/aspeed: Convert to platform remove callback returning void 2023-10-13 15:04:12 +10:30
atmel ARM: at91: add support in SoC driver for new sam9x7 2024-08-07 19:24:46 +03:00
bcm SoC driver updates for 6.7 2023-11-01 14:46:51 -10:00
canaan soc: canaan: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 for K210 2024-04-05 16:42:50 +01:00
cirrus soc: ep93xx: drop reference to removed EP93XX_SOC_COMMON config 2024-09-26 12:58:18 +00:00
dove soc: dove: add missing of_node_put 2023-09-20 11:28:02 +02:00
fsl soc: fsl: qe: ucc: Export ucc_mux_set_grant_tsa_bkpt 2024-09-05 14:12:15 +00:00
fujitsu soc/fujitsu: a64fx-diag: Convert to platform remove callback returning void 2023-10-14 23:27:01 +02:00
gemini
hisilicon soc: hisilicon: kunpeng_hccs: replace MAILBOX dependency with PCC 2024-04-25 02:09:46 +00:00
imx soc: add missing MODULE_DESCRIPTION() macros 2024-06-27 16:42:50 +02:00
ixp4xx soc: add missing MODULE_DESCRIPTION() macros 2024-06-27 16:42:50 +02:00
lantiq
litex drivers/soc/litex: drop obsolete dependency on COMPILE_TEST 2024-06-27 16:33:39 +02:00
loongson Convert drivers/soc to struct platform_driver::remove_new() 2023-10-16 22:51:31 +02:00
mediatek soc: mediatek: mtk-mutex: Reduce type size for mtk_mutex_data members 2024-07-30 10:58:46 +02:00
microchip soc: microchip: Fix POLARFIRE_SOC_SYS_CTRL input prompt 2024-01-22 16:39:40 +00:00
nuvoton soc: nuvoton: Add SoC info driver for WPCM450 2023-02-01 17:11:36 +01:00
pxa spi: pxa2xx: Use proper SSP header in soc/pxa/ssp.c 2024-03-25 00:49:17 +00:00
qcom soc: qcom: socinfo: fix revision check in qcom_socinfo_probe() 2024-10-24 09:46:20 -05:00
renesas soc: renesas: Enable TMU support on R-Car Gen2 2024-03-26 09:25:06 +01:00
rockchip soc: rockchip: grf: Add rk3576 default GRF values 2024-08-23 12:33:58 +02:00
samsung - New Drivers 2024-07-17 17:42:20 -07:00
sunxi soc: sunxi: sram: Constify struct regmap_config 2024-07-11 00:47:13 +08:00
tegra soc/tegra: pmc: Simplify with scoped for each OF child loop 2024-08-29 17:43:43 +02:00
ti soc: ti: pm33xx: do device_node auto cleanup 2024-08-28 12:18:02 -05:00
ux500
versatile soc: versatile: enable compile testing 2024-08-30 15:40:11 +02:00
xilinx drivers: soc: xilinx: check return status of get_api_version() 2024-06-03 13:07:57 +02:00
Kconfig soc: Add SoC driver for Cirrus ep93xx 2024-09-12 14:33:10 +00:00
Makefile soc: convert ep93xx to devicetree 2024-09-26 12:00:25 -07:00