5.4.255-rc1 review
Subsystems (3)
Greg Kroah-Hartman
maintainerPATCH 125/158 net: validate veth and vxcan peer ifindexes
In reply to Greg Kroah-Hartman5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jakub Kicinski <[email protected]>
[ Upstream commit f534f6581ec084fe94d6759f7672bd009794b07e ]
veth and vxcan need to make sure the ifindexes of the peer are not negative, core does not validate this.
Using iproute2 with user-space-level checking removed:
Before:
# ./ip link add index 10 type veth peer index -1
# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:74:b2:03 brd ff:ff:ff:ff:ff:ff
10: veth1@veth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 8a:90:ff:57:6d:5d brd ff:ff:ff:ff:ff:ff
-1: veth0@veth1: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether ae:ed:18:e6:fa:7f brd ff:ff:ff:ff:ff:ffNow:
$ ./ip link add index 10 type veth peer index -1 Error: ifindex can't be negative.
This problem surfaced in net-next because an explicit WARN() was added, the root cause is older.
--- drivers/net/can/vxcan.c | 7 +------ drivers/net/veth.c | 5 +---- include/net/rtnetlink.h | 4 ++-- net/core/rtnetlink.c | 22 ++++++++++++++++++---- 4 files changed, 22 insertions(+), 16 deletions(-)
drivers/net/can/vxcan.c +1 -6
@@ -179,12 +179,7 @@ static int vxcan_newlink(struct net *net, struct net_device *dev, nla_peer = data[VXCAN_INFO_PEER ]; ifmp =nla_data (nla_peer); - err =rtnl_nla_parse_ifla (peer_tb, -nla_data (nla_peer) + -sizeof (struct ifinfomsg ), -nla_len (nla_peer) - -sizeof (struct ifinfomsg ), -NULL ); + err =rtnl_nla_parse_ifinfomsg (peer_tb, nla_peer, extack);if (err <0 )return err;
drivers/net/veth.c +1 -4
@@ -1255,10 +1255,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev, nla_peer = data[VETH_INFO_PEER ]; ifmp =nla_data (nla_peer); - err =rtnl_nla_parse_ifla (peer_tb, -nla_data (nla_peer) +sizeof (struct ifinfomsg ), -nla_len (nla_peer) -sizeof (struct ifinfomsg ), -NULL ); + err =rtnl_nla_parse_ifinfomsg (peer_tb, nla_peer, extack);if (err <0 )return err;
include/net/rtnetlink.h +2 -2
@@ -166,8 +166,8 @@ struct net_device *rtnl_create_link(struct net *net, const char *ifname,int rtnl_delete_link (struct net_device *dev);int rtnl_configure_link (struct net_device *dev,const struct ifinfomsg *ifm); -int rtnl_nla_parse_ifla (struct nlattr **tb,const struct nlattr *head,int len, -struct netlink_ext_ack *exterr); +int rtnl_nla_parse_ifinfomsg (struct nlattr **tb,const struct nlattr *nla_peer, +struct netlink_ext_ack *exterr);struct net *rtnl_get_net_ns_capable (struct sock *sk,int netnsid);#define MODULE_ALIAS_RTNL_LINK (kind) MODULE_ALIAS("rtnl-link-" kind)
net/core/rtnetlink.c +18 -4
@@ -2034,13 +2034,27 @@ static int rtnl_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb)return err; } -int rtnl_nla_parse_ifla (struct nlattr **tb,const struct nlattr *head,int len, -struct netlink_ext_ack *exterr) +int rtnl_nla_parse_ifinfomsg (struct nlattr **tb,const struct nlattr *nla_peer, +struct netlink_ext_ack *exterr) { -return nla_parse_deprecated (tb,IFLA_MAX , head, len, ifla_policy, +const struct ifinfomsg *ifmp; +const struct nlattr *attrs; +size_t len; + + ifmp =nla_data (nla_peer); + attrs =nla_data (nla_peer) +sizeof (struct ifinfomsg ); + len =nla_len (nla_peer) -sizeof (struct ifinfomsg ); + +if (ifmp->ifi_index <0 ) { +NL_SET_ERR_MSG_ATTR (exterr, nla_peer, +"ifindex can't be negative" ); +return -EINVAL ; + } + +return nla_parse_deprecated (tb,IFLA_MAX , attrs, len, ifla_policy, exterr); } -EXPORT_SYMBOL (rtnl_nla_parse_ifla); +EXPORT_SYMBOL (rtnl_nla_parse_ifinfomsg);struct net *rtnl_link_get_net (struct net *src_net,struct nlattr *tb[]) {
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 157/158 pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}
In reply to Greg Kroah-Hartman5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Biju Das <[email protected]>
[ Upstream commit 8fcc1c40b747069644db6102c1d84c942c9d4d86 ]
The pinctrl group and function creation/remove calls expect caller to take care of locking. Add lock around these functions.
--- drivers/pinctrl/pinctrl-rza2.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
drivers/pinctrl/pinctrl-rza2.c +15 -2
@@ -14,6 +14,7 @@#include <linux/gpio/driver.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/mutex.h> #include <linux/of_device.h> #include <linux/pinctrl/pinmux.h>
@@ -46,6 +47,7 @@ struct rza2_pinctrl_priv {struct pinctrl_dev *pctl;struct pinctrl_gpio_range gpio_range;int npins; +struct mutex mutex;/* serialize adding groups and functions */ };#define RZA2_PDR (port) (0x0000 + (port) * 2)/* Direction 16-bit */
@@ -359,10 +361,14 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev, psel_val[i] =MUX_FUNC (value); } +mutex_lock (&priv->mutex); +/* Register a single pin group listing all the pins we read from DT */ gsel =pinctrl_generic_add_group (pctldev, np->name, pins, npins,NULL ); -if (gsel <0 ) -return gsel; +if (gsel <0 ) { + ret = gsel; + goto unlock; + }/* * Register a single group function where the 'data' is an array PSEL
@@ -391,6 +397,8 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev, (*map)->data.mux.function = np->name; *num_maps =1 ; +mutex_unlock (&priv->mutex); +return 0 ; remove_function:
@@ -399,6 +407,9 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev, remove_group:pinctrl_generic_remove_group (pctldev, gsel); +unlock: +mutex_unlock (&priv->mutex); +dev_err (priv->dev,"Unable to parse DT node %s\n" , np->name);return ret;
@@ -476,6 +487,8 @@ static int rza2_pinctrl_probe(struct platform_device *pdev)if (IS_ERR (priv->base))return PTR_ERR (priv->base); +mutex_init (&priv->mutex); +platform_set_drvdata (pdev, priv); priv->npins = (int)(uintptr_t)of_device_get_match_data(&pdev->dev) *
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 158/158 dma-buf/sw_sync: Avoid recursive lock during fence signal
In reply to Greg Kroah-Hartman5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rob Clark <[email protected]>
[ Upstream commit e531fdb5cd5ee2564b7fe10c8a9219e2b2fac61e ]
If a signal callback releases the sw_sync fence, that will trigger a deadlock as the timeline_fence_release recurses onto the fence->lock (used both for signaling and the the timeline tree).
To avoid that, temporarily hold an extra reference to the signalled fences until after we drop the lock.
(This is an alternative implementation of https://patchwork.kernel.org/patch/11664717/
which avoids some potential UAF issues with the original patch.)
v2: Remove now obsolete comment, use list_move_tail() and
list_del_init()
--- drivers/dma-buf/sw_sync.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/dma-buf/sw_sync.c +9 -9
@@ -191,6 +191,7 @@ static const struct dma_fence_ops timeline_fence_ops = {*/ static void sync_timeline_signal (struct sync_timeline *obj,unsigned int inc) { +LIST_HEAD (signalled);struct sync_pt *pt, *next;trace_sync_timeline (obj);
@@ -203,21 +204,20 @@ static void sync_timeline_signal(struct sync_timeline *obj, unsigned int inc)if (!timeline_fence_signaled (&pt->base))break ; -list_del_init (&pt->link); +dma_fence_get (&pt->base); + +list_move_tail (&pt->link, &signalled);rb_erase (&pt->node, &obj->pt_tree); -/* -* A signal callback may release the last reference to this -* fence, causing it to be freed. That operation has to be -* last to avoid a use after free inside this loop, and must -* be after we remove the fence from the timeline in order to -* prevent deadlocking on timeline->lock inside -* timeline_fence_release(). -*/ dma_fence_signal_locked (&pt->base); }spin_unlock_irq (&obj->lock); + +list_for_each_entry_safe (pt, next, &signalled, link) { +list_del_init (&pt->link); +dma_fence_put (&pt->base); + } }/**
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 156/158 clk: Fix undefined reference to `clk_rate_exclusive_{get,put}
In reply to Greg Kroah-Hartman5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Biju Das <[email protected]>
[ Upstream commit 2746f13f6f1df7999001d6595b16f789ecc28ad1 ]
The COMMON_CLK config is not enabled in some of the architectures. This causes below build issues:
pwm-rz-mtu3.c:(.text+0x114):
undefined reference to `clk_rate_exclusive_put'
pwm-rz-mtu3.c:(.text+0x32c):
undefined reference to `clk_rate_exclusive_get'
Fix these issues by moving clk_rate_exclusive_{get,put} inside COMMON_CLK code block, as clk.c is enabled by COMMON_CLK.
--- include/linux/clk.h | 80 ++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 40 deletions(-)
include/linux/clk.h +40 -40
@@ -172,6 +172,39 @@ int clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale);*/ bool clk_is_match (const struct clk *p,const struct clk *q); +/** +* clk_rate_exclusive_get - get exclusivity over the rate control of a +* producer +* @clk: clock source +* +* This function allows drivers to get exclusive control over the rate of a +* provider. It prevents any other consumer to execute, even indirectly, +* opereation which could alter the rate of the provider or cause glitches +* +* If exlusivity is claimed more than once on clock, even by the same driver, +* the rate effectively gets locked as exclusivity can't be preempted. +* +* Must not be called from within atomic context. +* +* Returns success (0) or negative errno. +*/ +int clk_rate_exclusive_get (struct clk *clk); + +/** +* clk_rate_exclusive_put - release exclusivity over the rate control of a +* producer +* @clk: clock source +* +* This function allows drivers to release the exclusivity it previously got +* from clk_rate_exclusive_get() +* +* The caller must balance the number of clk_rate_exclusive_get() and +* clk_rate_exclusive_put() calls. +* +* Must not be called from within atomic context. +*/ +void clk_rate_exclusive_put (struct clk *clk); +#else static inline int clk_notifier_register(struct clk *clk,
@@ -218,6 +251,13 @@ static inline bool clk_is_match(const struct clk *p, const struct clk *q) return p == q; } +static inline int clk_rate_exclusive_get (struct clk *clk) +{ +return 0 ; +} + +static inline void clk_rate_exclusive_put (struct clk *clk) {} +#endif /**
@@ -530,38 +570,6 @@ struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id);*/ struct clk *devm_get_clk_from_child (struct device *dev,struct device_node *np,const char *con_id); -/** -* clk_rate_exclusive_get - get exclusivity over the rate control of a -* producer -* @clk: clock source -* -* This function allows drivers to get exclusive control over the rate of a -* provider. It prevents any other consumer to execute, even indirectly, -* opereation which could alter the rate of the provider or cause glitches -* -* If exlusivity is claimed more than once on clock, even by the same driver, -* the rate effectively gets locked as exclusivity can't be preempted. -* -* Must not be called from within atomic context. -* -* Returns success (0) or negative errno. -*/ -int clk_rate_exclusive_get (struct clk *clk); - -/** -* clk_rate_exclusive_put - release exclusivity over the rate control of a -* producer -* @clk: clock source -* -* This function allows drivers to release the exclusivity it previously got -* from clk_rate_exclusive_get() -* -* The caller must balance the number of clk_rate_exclusive_get() and -* clk_rate_exclusive_put() calls. -* -* Must not be called from within atomic context. -*/ -void clk_rate_exclusive_put (struct clk *clk);/** * clk_enable - inform the system when the clock source should be running.
@@ -918,14 +926,6 @@ static inline void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks) {}static inline void devm_clk_put (struct device *dev,struct clk *clk) {} - -static inline int clk_rate_exclusive_get (struct clk *clk) -{ -return 0 ; -} - -static inline void clk_rate_exclusive_put (struct clk *clk) {} -static inline int clk_enable (struct clk *clk) {return 0 ;
Signature · 1 line
2.40.1
Hi Greg,
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
Build test (gcc version 11.4.1 20230829):
mips: 65 configs -> 3 failures
arm: 106 configs -> no failure
arm64: 2 configs -> no failurex86_64: 4 configs -> no failure
alpha allmodconfig -> no failure
powerpc allmodconfig -> no failure
riscv allmodconfig -> no failure
s390 allmodconfig -> no failure
xtensa allmodconfig -> no failure
Note:
mips builds are failing with the error:
arch/mips/alchemy/common/dbdma.c:33:10: fatal error: linux/dma-map-ops.h: No such file or directory
33 | #include <linux/dma-map-ops.h> /* for dma_default_coherent */
| ^~~~~~~~~~~~~~~~~~~~~
Boot test:x86_64: Booted on my test laptop. No regression.x86_64: Booted on qemu. No regression. [1]
[1]. https://openqa.qa.codethink.co.uk/tests/4837
Signature · 2 lines
Regards Sudip
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.255-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
## Build
* kernel: 5.4.255-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-5.4.y
* git commit: f1f9b3b66b45473d0deff05b1506393d60f850bb
* git describe: v5.4.254-159-gf1f9b3b66b45
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.4.y/build/v5.4.254-159-gf1f9b3b66b45
## Test Regressions (compared to v5.4.254)
## Metric Regressions (compared to v5.4.254)
## Test Fixes (compared to v5.4.254)
## Metric Fixes (compared to v5.4.254)
## Test result summary
total: 119930, pass: 97361, fail: 2421, skip: 20062, xfail: 86
## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 143 total, 143 passed, 0 failed
* arm64: 47 total, 45 passed, 2 failed
* i386: 29 total, 24 passed, 5 failed
* mips: 30 total, 29 passed, 1 failed
* parisc: 4 total, 0 passed, 4 failed
* powerpc: 33 total, 32 passed, 1 failed
* riscv: 15 total, 15 passed, 0 failed
* s390: 8 total, 8 passed, 0 failed
* sh: 14 total, 12 passed, 2 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 41 total, 41 passed, 0 failed
## Test suites summary
* boot
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers-dma-buf
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-filesystems-epoll
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kexec
* kselftest-kvm
* kselftest-lib
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-sigaltstack
* kselftest-size
* kselftest-tc-testing
* kselftest-timens
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-vm
* kselftest-watchdog
* kselftest-x86
* kselftest-zram
* kunit
* kvm-unit-tests
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-fsx
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* network-basic-tests
* perf
* rcutorture
* v4l2-compliance
--
Linaro LKFT
https://lkft.linaro.org
Hi Greg,
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 9 lines
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.255-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.
No problems seen on x86_64 and aarch64.
Thanks,
Harshit
Quoted 4 lines
thanks,
greg k-h
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.255-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
thanks,
-- Shuah
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.255-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:
Signature · 1 line
Florian
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
Build results:
total: 154 pass: 152 fail: 2
Failed builds:
mips:mtx1_defconfig
mips:db1xxx_defconfig
Qemu test results:
total: 455 pass: 455 fail: 0
Same mips build failures as with v4.14.y..v5.10.y. Not new, so
Guenter
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.255 release. There are 158 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 30 Aug 2023 10:11:30 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.255-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.4.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v5.4:
11 builds: 11 pass, 0 fail
26 boots: 26 pass, 0 fail
59 tests: 59 pass, 0 failLinux version: 5.4.255-rc1-gf1f9b3b66b45
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra20-ventana,
tegra210-p2371-2180, tegra210-p3450-0000,
tegra30-cardhu-a04Jon
Re: [PATCH 5.4 044/158] mmc: bcm2835: fix deferred probing
In reply to Greg Kroah-HartmanQuoted 15 lines · Greg Kroah-Hartman
5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sergey Shtylyov <[email protected]>
[ Upstream commit
71150ac12558bcd9d75e6e24cf7c872c2efd80f3]The driver overrides the error codes and IRQ0 returned by
platform_get_irq()to-EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Since commitce753ad1549c("platform: finally disallow IRQ0 inplatform_get_irq()and its ilk") IRQ0 is no longer returned by those APIs, so we now can safely ignore it...
Quoted 2 lines
Fixes 660fc733bd74 ("mmc: bcm2835: Add new driver for the sdhost controller.")Cc [email protected] # v5.19+
After a glance at the driver, the patch seems safe to be applied to 5.4.y,
despite I tried to limit it to 5.19.y and newer...
Quoted 4 lines
Signed-off-by Sergey Shtylyov <[email protected]>Signed-off-by Ulf Hansson <[email protected]>Signed-off-by Sasha Levin <[email protected]>
[...]
MBR, Sergey
Re: [PATCH 5.4 045/158] mmc: sunxi: fix deferred probing
In reply to Greg Kroah-HartmanQuoted 15 lines · Greg Kroah-Hartman
5.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sergey Shtylyov <[email protected]>
[ Upstream commit
c2df53c5806cfd746dae08e07bc8c4ad247c3b70]The driver overrides the error codes and IRQ0 returned by
platform_get_irq()to-EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Since commitce753ad1549c("platform: finally disallow IRQ0 inplatform_get_irq()and its ilk") IRQ0 is no longer returned by those APIs, so we now can safely ignore it...
Quoted 2 lines
Fixes 2408a08583d2 ("mmc: sunxi-mmc: Handle return value of platform_get_irq")Cc [email protected] # v5.19+
After a glance at the driver, the patch too seems safe to be applied to 5.4.y,
despite I tried to limit it to 5.19.y and newer...
Quoted 5 lines
Signed-off-by Sergey Shtylyov <[email protected]>Reviewed-by Jernej Skrabec <[email protected]>Signed-off-by Ulf Hansson <[email protected]>Signed-off-by Sasha Levin <[email protected]>
[...]
MBR, Sergey