Yang Yingliang
043465b665
i2c: qcom-geni: fix missing clk_disable_unprepare() and geni_se_resources_off()
...
Add missing clk_disable_unprepare() and geni_se_resources_off() in the error
path in geni_i2c_probe().
Fixes: 14d02fbadb ("i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant")
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Andi Shyti <[email protected] >
Signed-off-by: Wolfram Sang <[email protected] >
2023-12-19 18:14:17 +01:00
Yang Yingliang
1004c346a2
clk: sp7021: fix return value check in sp7021_clk_probe()
...
devm_platform_ioremap_resource() never returns NULL pointer,
it will return ERR_PTR() when it fails, so replace the check
with IS_ERR().
Fixes: d54c1fd4a5 ("clk: Add Sunplus SP7021 clock driver")
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected] >
2023-12-16 17:10:17 -08:00
Yang Yingliang
4ac9ed81aa
spi: ljca: switch to use devm_spi_alloc_host()
...
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:16 +00:00
Yang Yingliang
a23271718e
spi: cs42l43: switch to use devm_spi_alloc_host()
...
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:15 +00:00
Yang Yingliang
ca6f114372
spi: zynqmp-gqspi: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:14 +00:00
Yang Yingliang
178ebb0c50
spi: zynq-qspi: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:13 +00:00
Yang Yingliang
061851a0cc
spi: xtensa-xtfpga: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:12 +00:00
Yang Yingliang
1633ffd290
spi: xlp: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:11 +00:00
Yang Yingliang
709b785a37
spi: xilinx: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:10 +00:00
Yang Yingliang
4e4856e721
spi: xcomm: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:09 +00:00
Yang Yingliang
4c2ee09910
spi: uniphier: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:08 +00:00
Yang Yingliang
40daed1470
spi: topcliff-pch: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:07 +00:00
Yang Yingliang
d1d8b09d0a
spi: wpcm-fiu: switch to use devm_spi_alloc_host()
...
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:06 +00:00
Yang Yingliang
9d93c8d97b
spi: spi-ti-qspi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:06 +00:00
Yang Yingliang
767e45324b
spi: tegra210-quad: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:05 +00:00
Yang Yingliang
db34aad4d6
spi: tegra20-slink: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:04 +00:00
Yang Yingliang
5ee8cd26d8
spi: tegra20-sflash: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:03 +00:00
Yang Yingliang
fe2e1c2225
spi: tegra114: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:02 +00:00
Yang Yingliang
8726bdcef6
spi: geni-qcom: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:01 +00:00
Yang Yingliang
3524d1b727
spi: synquacer: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:55:00 +00:00
Yang Yingliang
90bbb007a0
spi: sunplus-sp7021: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:59 +00:00
Yang Yingliang
9f55bb7989
spi: sun6i: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:58 +00:00
Yang Yingliang
6d232cc8a7
spi: sun4i: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:57 +00:00
Yang Yingliang
a5c1fa1318
spi: stm32: switch to use modern name
...
Change legacy name master/slave to modern name host/target.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:56 +00:00
Yang Yingliang
d9ea4bcf24
spi: stm32-qspi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:55 +00:00
Yang Yingliang
e6b7e64cb1
spi: st-ssc4: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:54 +00:00
Yang Yingliang
8c53784757
spi: sprd: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:53 +00:00
Yang Yingliang
0a3d087d09
spi: sprd-adi: switch to use spi_alloc_host()
...
Switch to use modern name function spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-11 12:54:53 +00:00
Yang Yingliang
bffa7218dc
dmaengine: fsl-edma: fix wrong pointer check in fsl_edma3_attach_pd()
...
device_link_add() returns NULL pointer not PTR_ERR() when it fails,
so replace the IS_ERR() check with NULL pointer check.
Fixes: 72f5801a4e ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-12-11 17:36:54 +05:30
Yang Yingliang
429fec81d1
hwrng: stm32 - add missing clk_disable_unprepare() in stm32_rng_init()
...
Add clk_disable_unprepare() in the error path in stm32_rng_init().
Fixes: 6b85a7e141 ("hwrng: stm32 - implement STM32MP13x support")
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Gatien Chevallier <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
2023-12-08 11:59:44 +08:00
Yang Yingliang
7a2464fac8
drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
...
check the alloc_workqueue return value in radeon_crtc_init()
to avoid null-ptr-deref.
Fixes: fa7f517cb2 ("drm/radeon: rework page flip handling v4")
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2023-12-06 15:22:36 -05:00
Yang Yingliang
5cb475174c
spi: cadence-quadspi: add missing clk_disable_unprepare() in cqspi_probe()
...
cqspi_jh7110_clk_init() is called after clk_prepare_enable(cqspi->clk),
if it fails, it should goto label 'probe_reset_failed' to disable
cqspi->clk.
In the error path after calling cqspi_jh7110_clk_init(),
cqspi_jh7110_disable_clk() need be called.
Fixes: 33f1ef6d4e ("spi: cadence-quadspi: Add clock configuration for StarFive JH7110 QSPI")
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-12-04 12:38:39 +00:00
Yang Yingliang
891e0eab32
firewire: core: fix possible memory leak in create_units()
...
If device_register() fails, the refcount of device is not 0, the name
allocated in dev_set_name() is leaked. To fix this by calling put_device(),
so that it will be freed in callback function kobject_cleanup().
unreferenced object 0xffff9d99035c7a90 (size 8):
comm "systemd-udevd", pid 168, jiffies 4294672386 (age 152.089s)
hex dump (first 8 bytes):
66 77 30 2e 30 00 ff ff fw0.0...
backtrace:
[<00000000e1d62bac>] __kmem_cache_alloc_node+0x1e9/0x360
[<00000000bbeaff31>] __kmalloc_node_track_caller+0x44/0x1a0
[<00000000491f2fb4>] kvasprintf+0x67/0xd0
[<000000005b960ddc>] kobject_set_name_vargs+0x1e/0x90
[<00000000427ac591>] dev_set_name+0x4e/0x70
[<000000003b4e447d>] create_units+0xc5/0x110
fw_unit_release() will be called in the error path, move fw_device_get()
before calling device_register() to keep balanced with fw_device_put() in
fw_unit_release().
Cc: [email protected]
Fixes: 1fa5ae857b ("driver core: get rid of struct device's bus_id string array")
Fixes: a1f64819fe ("firewire: struct device - replace bus_id with dev_name(), dev_set_name()")
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Takashi Sakamoto <[email protected] >
2023-11-30 09:16:35 +09:00
Yang Yingliang
fb18fe0fdf
drm/panel: nt36523: fix return value check in nt36523_probe()
...
mipi_dsi_device_register_full() never returns NULL pointer, it
will return ERR_PTR() when it fails, so replace the check with
IS_ERR().
Fixes: 0993234a00 ("drm/panel: Add driver for Novatek NT36523")
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Neil Armstrong <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-11-29 16:54:23 +01:00
Yang Yingliang
6db51ff905
macintosh/macio-adb: add missing iounmap() on error in macio_init()
...
Add missing iounmap(), if request_irq() fails.
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Michael Ellerman <[email protected] >
Link: https://msgid.link/[email protected]
2023-10-19 17:16:20 +11:00
Yang Yingliang
273f74a2e7
interconnect: fix error handling in qnoc_probe()
...
Add missing clk_disable_unprepare() and clk_bulk_disable_unprepare()
in the error path in qnoc_probe(). And when qcom_icc_qos_set() fails,
it needs remove nodes and disable clks.
Fixes: 2e2113c8a6 ("interconnect: qcom: rpm: Handle interface clocks")
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Georgi Djakov <[email protected] >
2023-10-10 14:10:36 +03:00
Yang Yingliang
426e05ce12
phy: qcom: phy-qcom-m31: change m31_ipq5332_regs to static
...
m31_ipq5332_regs is only used in phy-qcom-m31.c now, change
it to static.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Varadarajan Narayanan <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-09-21 16:05:30 +02:00
Yang Yingliang
5f7cd740a6
phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
...
It should be 'qphy->vreg' passed to PTR_ERR() when devm_regulator_get() fails.
Fixes: 08e49af507 ("phy: qcom: Introduce M31 USB PHY driver")
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Varadarajan Narayanan <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-09-21 16:04:59 +02:00
Yang Yingliang
5b69b5f209
power: reset: syscon-poweroff: use builtin_platform_driver() to simplify code
...
The syscon_poweroff_register() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected] >
2023-09-12 20:25:54 +02:00
Yang Yingliang
6a7f7f27e2
power: reset: axxia-reset: use builtin_platform_driver() to simplify code
...
The axxia_reset_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected] >
2023-09-12 20:25:54 +02:00
Yang Yingliang
764db16149
power: reset: xgene-reboot: use builtin_platform_driver() to simplify code
...
The xgene_reboot_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected] >
2023-09-12 20:25:54 +02:00
Yang Yingliang
4e579a5c68
power: reset: msm: use builtin_platform_driver() to simplify code
...
The msm_restart_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected] >
2023-09-12 20:25:54 +02:00
Yang Yingliang
70c81c37cf
power: reset: st-poweroff: use builtin_platform_driver() to simplify code
...
The st_reset_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected] >
2023-09-12 20:25:54 +02:00
Yang Yingliang
f3ea14c6a2
clk: renesas: r9a06g032: Use for_each_compatible_node()
...
Use for_each_compatible_node() instead of open-coding it.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected] >
2023-09-11 13:18:30 +02:00
Yang Yingliang
ee0f793cc1
spi: omap2-mcspi: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:47 +01:00
Yang Yingliang
0d81c46e70
spi: omap-uwire: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:46 +01:00
Yang Yingliang
ba0dada2ba
spi: oc-tiny: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:45 +01:00
Yang Yingliang
8af8a27b78
spi: nxp-fspi: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:44 +01:00
Yang Yingliang
2b0aa563b3
spi: npcm-pspi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:43 +01:00
Yang Yingliang
7647a16b68
spi: mxs: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:42 +01:00
Yang Yingliang
fc42bb55c0
spi: mxic: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:42 +01:00
Yang Yingliang
0fc8a1a431
spi: mux: switch to use spi_alloc_host()
...
Switch to use modern name function spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:41 +01:00
Yang Yingliang
efdf4c9934
spi: mtk-snfi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:40 +01:00
Yang Yingliang
a3a77a4268
spi: mtk-nor: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:39 +01:00
Yang Yingliang
e56e3de003
spi: mt7621: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:38 +01:00
Yang Yingliang
cae1578847
spi: mt65xx: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:37 +01:00
Yang Yingliang
d6503d1192
spi: mpc52xx: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:37 +01:00
Yang Yingliang
171639f845
spi: mpc52xx-psc: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:36 +01:00
Yang Yingliang
a21db73963
spi: mpc512x-psc: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:35 +01:00
Yang Yingliang
8f8bf52ed5
spi: microchip-core: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:34 +01:00
Yang Yingliang
5d97a3abbb
spi: microchip-core-qspi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:33 +01:00
Yang Yingliang
55591ac481
spi: meson-spifc: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:33 +01:00
Yang Yingliang
68bf3288c7
spi: meson-spicc: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:32 +01:00
Yang Yingliang
48815830a9
spi: lp-8841: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:31 +01:00
Yang Yingliang
7c5d1d9787
spi: lm70llp: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-09-11 01:31:30 +01:00
Yang Yingliang
99e1241049
pcmcia: ds: fix possible name leak in error path in pcmcia_device_add()
...
Afer commit 1fa5ae857b ("driver core: get rid of struct device's
bus_id string array"), the name of device is allocated dynamically.
Therefore, it needs to be freed, which is done by the driver core for
us once all references to the device are gone. Therefore, move the
dev_set_name() call immediately before the call device_register(), which
either succeeds (then the freeing will be done upon subsequent remvoal),
or puts the reference in the error call. Also, it is not unusual that the
return value of dev_set_name is not checked.
Fixes: 1fa5ae857b ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang <[email protected] >
[[email protected] : simplification, commit message modified]
Signed-off-by: Dominik Brodowski <[email protected] >
2023-09-03 10:27:19 +02:00
Yang Yingliang
402ab979b2
pcmcia: ds: fix refcount leak in pcmcia_device_add()
...
As the comment of device_register() says, it should use put_device()
to give up the reference in the error path. Then, insofar resources
will be freed in pcmcia_release_dev(), the error path is no longer
needed. In particular, this means that the (previously missing) dropping
of the reference to &p_dev->function_config->ref is now handled by
pcmcia_release_dev().
Fixes: 360b65b95b ("[PATCH] pcmcia: make config_t independent, add reference counting")
Signed-off-by: Yang Yingliang <[email protected] >
[[email protected] : simplification, commit message rewrite]
Signed-off-by: Dominik Brodowski <[email protected] >
2023-09-03 10:14:48 +02:00
Yang Yingliang
e3ea1b4847
pcmcia: cs: fix possible hung task and memory leak pccardd()
...
If device_register() returns error in pccardd(), it leads two issues:
1. The socket_released has never been completed, it will block
pcmcia_unregister_socket(), because of waiting for completion
of socket_released.
2. The device name allocated by dev_set_name() is leaked.
Fix this two issues by calling put_device() when device_register() fails.
socket_released can be completed in pcmcia_release_socket(), the name can
be freed in kobject_cleanup().
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Dominik Brodowski <[email protected] >
2023-09-03 09:46:00 +02:00
Yang Yingliang
084ba46fc4
ksmbd: switch to use kmemdup_nul() helper
...
Use kmemdup_nul() helper instead of open-coding to
simplify the code.
Acked-by: Namjae Jeon <[email protected] >
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Steve French <[email protected] >
2023-08-29 12:30:19 -05:00
Yang Yingliang
749a660b39
wifi: ath11k: simplify the code with module_platform_driver
...
The init/exit() of driver only calls platform_driver_register/unregister,
it can be simpilfied with module_platform_driver.
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2023-08-23 17:08:10 +03:00
Yang Yingliang
1a6e1004f3
thermal: intel: int340x: simplify the code with module_platform_driver()
...
The init/exit() of the driver only calls platform_driver_{un}register(),
so it can be simpilfied by using module_platform_driver().
Signed-off-by: Yang Yingliang <[email protected] >
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected] >
2023-08-22 21:46:13 +02:00
Yang Yingliang
8d1de0ebce
usb: dwc3: remove unnecessary platform_set_drvdata()
...
Remove unnecessary platform_set_drvdata(..., NULL) in ->remove(),
the driver_data will be cleared in device_unbind_cleanup() after
calling ->remove() in driver call code.
Signed-off-by: Yang Yingliang <[email protected] >
Acked-by: Thinh Nguyen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2023-08-22 14:45:19 +02:00
Yang Yingliang
979ca1ca1f
uio: pruss: fix missing iounmap() in pruss_probe()
...
platform_get_irq() is called after ioremap(), if it fails,
iounmap() needs be called in error the path.
Fixes: 2fd84b9b83 ("uio: pruss: fix to check return value of platform_get_irq() in pruss_probe()")
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2023-08-22 13:41:55 +02:00
Yang Yingliang
70befedaf5
irqchip/orion: Use of_address_count() helper
...
After commit 16988c7429 ("of/address: introduce of_address_count() helper"),
Use of_address_count() to instead of open-coding it, it's no functional change.
Signed-off-by: Yang Yingliang <[email protected] >
Signed-off-by: Marc Zyngier <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2023-08-21 17:48:59 +01:00
Yang Yingliang
66311106b2
wifi: rtlwifi: use eth_broadcast_addr() to assign broadcast address
...
Use eth_broadcast_addr() to assign broadcast address instead
of memcpy().
Signed-off-by: Yang Yingliang <[email protected] >
Acked-by: Ping-Ke Shih <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2023-08-21 19:13:00 +03:00
Yang Yingliang
2d12d18f14
vfio/pds: fix return value in pds_vfio_get_lm_file()
...
anon_inode_getfile() never returns NULL pointer, it will return
ERR_PTR() when it fails, so replace the check with IS_ERR().
Fixes: bb500dbe2a ("vfio/pds: Add VFIO live migration support")
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Brett Creeley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected] >
2023-08-21 08:50:33 -06:00
Yang Yingliang
557efcf4c6
spi: spi-sn-f-ospi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:39 +01:00
Yang Yingliang
8d9ae783fb
spi: sifive: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:38 +01:00
Yang Yingliang
0ec6a15091
spi: sh: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:37 +01:00
Yang Yingliang
91a940bb10
spi: sh-sci: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:36 +01:00
Yang Yingliang
1cb3ebc417
spi: sh-msiof: switch to use modern name
...
Change legacy name master/slave to modern name host/target.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:35 +01:00
Yang Yingliang
0c8e5afc87
spi: sh-hspi: switch to use modern name
...
Change legacy name master to modern name host.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:34 +01:00
Yang Yingliang
82a7792318
spi: sc18is602: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:33 +01:00
Yang Yingliang
f4bc49eda2
spi: s3c64xx: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:32 +01:00
Yang Yingliang
6536da62e4
spi: rzv2m-csi: switch to use devm_spi_alloc_host()
...
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:31 +01:00
Yang Yingliang
1405efe76f
spi: rspi: switch to use spi_alloc_host()
...
Switch to use modern name function spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:30 +01:00
Yang Yingliang
1a3ccff3bc
spi: rockchip: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Acked-by: Heiko Stuebner <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:30 +01:00
Yang Yingliang
7d5db72519
spi: rockchip-sfc: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:29 +01:00
Yang Yingliang
c84036243c
spi: realtek-rtl: switch to use devm_spi_alloc_host()
...
Switch to use modern name function devm_spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:28 +01:00
Yang Yingliang
e6302d00d9
spi: rb4xx: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:27 +01:00
Yang Yingliang
597442ff4f
spi: qup: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:26 +01:00
Yang Yingliang
8d3ad99ad8
spi: spi-qcom-qspi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:25 +01:00
Yang Yingliang
60ba4431c8
spi: pxa2xx: switch to use modern name
...
Change legacy name master/slave to modern name host/target or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:24 +01:00
Yang Yingliang
7134583057
spi: ppc4xx: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:23 +01:00
Yang Yingliang
c97a43a546
spi: spl022: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:22 +01:00
Yang Yingliang
0273727c3b
spi: pic32: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:21 +01:00
Yang Yingliang
cc64ab491b
spi: pic32-sqi: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:20 +01:00
Yang Yingliang
f9977bb164
spi: mchp-pci1xxxx: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:19 +01:00
Yang Yingliang
08e6c5038f
spi: orion: switch to use modern name
...
Change legacy name master to modern name host or controller.
No functional changed.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2023-08-21 14:29:18 +01:00
Yang Yingliang
eb501c2d96
iommufd/selftest: Don't leak the platform device memory when unloading the module
...
It should call platform_device_unregister() instead of
platform_device_del() to unregister and free the device.
Fixes: 23a1b46f15 ("iommufd/selftest: Make the mock iommu driver into a real driver")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yang Yingliang <[email protected] >
Reviewed-by: Kevin Tian <[email protected] >
Signed-off-by: Jason Gunthorpe <[email protected] >
2023-08-18 12:56:24 -03:00