kernel: bump 6.6 to 6.6.95
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.95 Removed upstreamed: backport-6.6/201-v6.16-mips-Add-std-flag-specified.patch[1] mvebu/patches-6.6/0004-v6.16-pinctrl-armada-37xx-propagate-error-from-armada_37xx.patch[2] mvebu/patches-6.6/0005-v6.16-pinctrl-armada-37xx-propagate-error-from-armada_37xx.patch[3] mvebu/patches-6.6/0006-v6.16-pinctrl-armada-37xx-propagate-error-from-armada_37xx.patch[4] mvebu/patches-6.6/0007-v6.16-pinctrl-armada-37xx-propagate-error-from-armada_37xx.patch[5] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.95&id=231f6a1de15b3f62eb8d6163a8b1bc5935025c69 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.95&id=ae48bc0b8be8786fd0ceab4b5a95c09b5aa93816 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.95&id=8a15a5438c5816a1003b88ce20f25ccc92909ee7 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.95&id=02c966a8869becb29282403540c88ba33e19c347 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.95&id=14a26f6692062a529b612420adb6c0b9290b25d3 Build system: x86/64 Build-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Run-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/19248 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
9ddeb30499
commit
1831966406
18 changed files with 17 additions and 205 deletions
|
@ -751,7 +751,7 @@ SVN-Revision: 35130
|
||||||
EXPORT_SYMBOL(xfrm_parse_spi);
|
EXPORT_SYMBOL(xfrm_parse_spi);
|
||||||
--- a/net/ipv4/tcp_input.c
|
--- a/net/ipv4/tcp_input.c
|
||||||
+++ b/net/ipv4/tcp_input.c
|
+++ b/net/ipv4/tcp_input.c
|
||||||
@@ -4276,14 +4276,16 @@ static bool tcp_parse_aligned_timestamp(
|
@@ -4283,14 +4283,16 @@ static bool tcp_parse_aligned_timestamp(
|
||||||
{
|
{
|
||||||
const __be32 *ptr = (const __be32 *)(th + 1);
|
const __be32 *ptr = (const __be32 *)(th + 1);
|
||||||
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
From 0f4ae7c6ecb89bfda026d210dcf8216fb67d2333 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Sat, 29 Mar 2025 08:39:03 -0700
|
|
||||||
Subject: mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS
|
|
||||||
|
|
||||||
GCC 15 changed the default C standard dialect from gnu17 to gnu23,
|
|
||||||
which should not have impacted the kernel because it explicitly requests
|
|
||||||
the gnu11 standard in the main Makefile. However, mips/vdso code uses
|
|
||||||
its own CFLAGS without a '-std=' value, which break with this dialect
|
|
||||||
change because of the kernel's own definitions of bool, false, and true
|
|
||||||
conflicting with the C23 reserved keywords.
|
|
||||||
|
|
||||||
include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enumeration constant
|
|
||||||
11 | false = 0,
|
|
||||||
| ^~~~~
|
|
||||||
include/linux/stddef.h:11:9: note: 'false' is a keyword with '-std=c23' onwards
|
|
||||||
include/linux/types.h:35:33: error: 'bool' cannot be defined via 'typedef'
|
|
||||||
35 | typedef _Bool bool;
|
|
||||||
| ^~~~
|
|
||||||
include/linux/types.h:35:33: note: 'bool' is a keyword with '-std=c23' onwards
|
|
||||||
|
|
||||||
Add -std as specified in KBUILD_CFLAGS to the decompressor and purgatory
|
|
||||||
CFLAGS to eliminate these errors and make the C standard version of these
|
|
||||||
areas match the rest of the kernel.
|
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Cc: stable@vger.kernel.org
|
|
||||||
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
|
|
||||||
---
|
|
||||||
arch/mips/vdso/Makefile | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
(limited to 'arch/mips/vdso')
|
|
||||||
|
|
||||||
--- a/arch/mips/vdso/Makefile
|
|
||||||
+++ b/arch/mips/vdso/Makefile
|
|
||||||
@@ -30,6 +30,7 @@ endif
|
|
||||||
# offsets.
|
|
||||||
cflags-vdso := $(ccflags-vdso) \
|
|
||||||
$(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \
|
|
||||||
+ $(filter -std=%,$(KBUILD_CFLAGS)) \
|
|
||||||
-O3 -g -fPIC -fno-strict-aliasing -fno-common -fno-builtin -G 0 \
|
|
||||||
-mrelax-pic-calls $(call cc-option, -mexplicit-relocs) \
|
|
||||||
-fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \
|
|
|
@ -902,7 +902,7 @@ Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|
||||||
+ write_reg_dma(nandc, &nandc->regs->cmd1, NAND_DEV_CMD1, 1, NAND_BAM_NEXT_SGL);
|
+ write_reg_dma(nandc, &nandc->regs->cmd1, NAND_DEV_CMD1, 1, NAND_BAM_NEXT_SGL);
|
||||||
}
|
}
|
||||||
|
|
||||||
nandc->buf_count = len;
|
nandc->buf_count = 512;
|
||||||
@@ -2926,9 +2877,10 @@ static int qcom_param_page_type_exec(str
|
@@ -2926,9 +2877,10 @@ static int qcom_param_page_type_exec(str
|
||||||
nandc->buf_count, 0);
|
nandc->buf_count, 0);
|
||||||
|
|
||||||
|
|
|
@ -844,7 +844,7 @@ Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|
||||||
+ qcom_write_reg_dma(nandc, &nandc->regs->cmd1, NAND_DEV_CMD1, 1, NAND_BAM_NEXT_SGL);
|
+ qcom_write_reg_dma(nandc, &nandc->regs->cmd1, NAND_DEV_CMD1, 1, NAND_BAM_NEXT_SGL);
|
||||||
}
|
}
|
||||||
|
|
||||||
nandc->buf_count = len;
|
nandc->buf_count = 512;
|
||||||
@@ -2873,17 +2873,17 @@ static int qcom_param_page_type_exec(str
|
@@ -2873,17 +2873,17 @@ static int qcom_param_page_type_exec(str
|
||||||
|
|
||||||
config_nand_single_cw_page_read(chip, false, 0);
|
config_nand_single_cw_page_read(chip, false, 0);
|
||||||
|
|
|
@ -36,7 +36,7 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
||||||
|
|
||||||
--- a/include/linux/netdevice.h
|
--- a/include/linux/netdevice.h
|
||||||
+++ b/include/linux/netdevice.h
|
+++ b/include/linux/netdevice.h
|
||||||
@@ -3308,6 +3308,7 @@ static inline void dev_xmit_recursion_de
|
@@ -3309,6 +3309,7 @@ static inline void dev_xmit_recursion_de
|
||||||
__this_cpu_dec(softnet_data.xmit.recursion);
|
__this_cpu_dec(softnet_data.xmit.recursion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
--- a/include/linux/netdevice.h
|
--- a/include/linux/netdevice.h
|
||||||
+++ b/include/linux/netdevice.h
|
+++ b/include/linux/netdevice.h
|
||||||
@@ -4580,6 +4580,9 @@ static inline void netif_addr_unlock_bh(
|
@@ -4581,6 +4581,9 @@ static inline void netif_addr_unlock_bh(
|
||||||
|
|
||||||
void ether_setup(struct net_device *dev);
|
void ether_setup(struct net_device *dev);
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
if (ret)
|
if (ret)
|
||||||
dev_err(dev, "Device failed to enter READY state\n");
|
dev_err(dev, "Device failed to enter READY state\n");
|
||||||
}
|
}
|
||||||
@@ -1125,7 +1130,8 @@ int mhi_async_power_up(struct mhi_contro
|
@@ -1141,7 +1146,8 @@ int mhi_async_power_up(struct mhi_contro
|
||||||
if (state == MHI_STATE_SYS_ERR) {
|
if (state == MHI_STATE_SYS_ERR) {
|
||||||
mhi_set_mhi_state(mhi_cntrl, MHI_STATE_RESET);
|
mhi_set_mhi_state(mhi_cntrl, MHI_STATE_RESET);
|
||||||
ret = mhi_poll_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
|
ret = mhi_poll_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
|
||||||
|
@ -119,7 +119,7 @@ Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_info(dev, "Failed to reset MHI due to syserr state\n");
|
dev_info(dev, "Failed to reset MHI due to syserr state\n");
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
@@ -1216,14 +1222,18 @@ EXPORT_SYMBOL_GPL(mhi_power_down);
|
@@ -1232,14 +1238,18 @@ EXPORT_SYMBOL_GPL(mhi_power_down);
|
||||||
int mhi_sync_power_up(struct mhi_controller *mhi_cntrl)
|
int mhi_sync_power_up(struct mhi_controller *mhi_cntrl)
|
||||||
{
|
{
|
||||||
int ret = mhi_async_power_up(mhi_cntrl);
|
int ret = mhi_async_power_up(mhi_cntrl);
|
||||||
|
|
|
@ -115,7 +115,7 @@ Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
|
|
||||||
mutex_lock(&mhi_cntrl->pm_mutex);
|
mutex_lock(&mhi_cntrl->pm_mutex);
|
||||||
|
|
||||||
@@ -820,7 +829,10 @@ void mhi_pm_st_worker(struct work_struct
|
@@ -836,7 +845,10 @@ void mhi_pm_st_worker(struct work_struct
|
||||||
mhi_pm_sys_error_transition(mhi_cntrl);
|
mhi_pm_sys_error_transition(mhi_cntrl);
|
||||||
break;
|
break;
|
||||||
case DEV_ST_TRANSITION_DISABLE:
|
case DEV_ST_TRANSITION_DISABLE:
|
||||||
|
@ -127,7 +127,7 @@ Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -1174,7 +1186,8 @@ error_exit:
|
@@ -1190,7 +1202,8 @@ error_exit:
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mhi_async_power_up);
|
EXPORT_SYMBOL_GPL(mhi_async_power_up);
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
{
|
{
|
||||||
enum mhi_pm_state cur_state, transition_state;
|
enum mhi_pm_state cur_state, transition_state;
|
||||||
struct device *dev = &mhi_cntrl->mhi_dev->dev;
|
struct device *dev = &mhi_cntrl->mhi_dev->dev;
|
||||||
@@ -1210,15 +1223,32 @@ void mhi_power_down(struct mhi_controlle
|
@@ -1226,15 +1239,32 @@ void mhi_power_down(struct mhi_controlle
|
||||||
write_unlock_irq(&mhi_cntrl->pm_lock);
|
write_unlock_irq(&mhi_cntrl->pm_lock);
|
||||||
mutex_unlock(&mhi_cntrl->pm_mutex);
|
mutex_unlock(&mhi_cntrl->pm_mutex);
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
|
|
||||||
#include "gpiolib.h"
|
#include "gpiolib.h"
|
||||||
#include "gpiolib-of.h"
|
#include "gpiolib-of.h"
|
||||||
@@ -1129,3 +1131,73 @@ void of_gpiochip_remove(struct gpio_chip
|
@@ -1138,3 +1140,73 @@ void of_gpiochip_remove(struct gpio_chip
|
||||||
{
|
{
|
||||||
of_node_put(dev_of_node(&chip->gpiodev->dev));
|
of_node_put(dev_of_node(&chip->gpiodev->dev));
|
||||||
}
|
}
|
||||||
|
|
|
@ -396,7 +396,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||||
}
|
}
|
||||||
--- a/net/ipv4/route.c
|
--- a/net/ipv4/route.c
|
||||||
+++ b/net/ipv4/route.c
|
+++ b/net/ipv4/route.c
|
||||||
@@ -381,6 +381,9 @@ static struct pernet_operations ip_rt_pr
|
@@ -385,6 +385,9 @@ static struct pernet_operations ip_rt_pr
|
||||||
|
|
||||||
static int __init ip_rt_proc_init(void)
|
static int __init ip_rt_proc_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
LINUX_VERSION-6.6 = .94
|
LINUX_VERSION-6.6 = .95
|
||||||
LINUX_KERNEL_HASH-6.6.94 = 713981ea26b20b476ba4ce880b76b21294576788d5db1c2188b167bcb06ecc56
|
LINUX_KERNEL_HASH-6.6.95 = 18640ae9a2c952f8f8868324378df1a9e138ad29e6b93a9c38155764ea67ea85
|
||||||
|
|
|
@ -45,7 +45,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
goto out;
|
||||||
@@ -567,6 +573,17 @@ full_scan:
|
@@ -569,6 +575,17 @@ full_scan:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
||||||
|
|
||||||
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
||||||
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
||||||
@@ -432,9 +432,7 @@ static int armada_37xx_gpio_direction_ou
|
@@ -433,9 +433,7 @@ static int armada_37xx_gpio_direction_ou
|
||||||
reg = OUTPUT_EN;
|
reg = OUTPUT_EN;
|
||||||
armada_37xx_update_reg(®, &en_offset);
|
armada_37xx_update_reg(®, &en_offset);
|
||||||
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
From 57273ff8bb16f3842c2597b5bbcd49e7fa12edf7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Date: Wed, 14 May 2025 21:18:35 +0200
|
|
||||||
Subject: [PATCH 4/7] pinctrl: armada-37xx: propagate error from
|
|
||||||
armada_37xx_gpio_get()
|
|
||||||
|
|
||||||
The regmap_read() function can fail, so propagate its error up to
|
|
||||||
the stack instead of silently ignoring that.
|
|
||||||
|
|
||||||
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|
||||||
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
||||||
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Link: https://lore.kernel.org/20250514-pinctrl-a37xx-fixes-v2-4-07e9ac1ab737@gmail.com
|
|
||||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
||||||
---
|
|
||||||
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
@@ -440,11 +440,14 @@ static int armada_37xx_gpio_get(struct g
|
|
||||||
struct armada_37xx_pinctrl *info = gpiochip_get_data(chip);
|
|
||||||
unsigned int reg = INPUT_VAL;
|
|
||||||
unsigned int val, mask;
|
|
||||||
+ int ret;
|
|
||||||
|
|
||||||
armada_37xx_update_reg(®, &offset);
|
|
||||||
mask = BIT(offset);
|
|
||||||
|
|
||||||
- regmap_read(info->regmap, reg, &val);
|
|
||||||
+ ret = regmap_read(info->regmap, reg, &val);
|
|
||||||
+ if (ret)
|
|
||||||
+ return ret;
|
|
||||||
|
|
||||||
return (val & mask) != 0;
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
From bfa0ff804ffa8b1246ade8be08de98c9eb19d16f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Date: Wed, 14 May 2025 21:18:36 +0200
|
|
||||||
Subject: [PATCH 5/7] pinctrl: armada-37xx: propagate error from
|
|
||||||
armada_37xx_pmx_gpio_set_direction()
|
|
||||||
|
|
||||||
The armada_37xx_gpio_direction_{in,out}put() functions can fail, so
|
|
||||||
propagate their error values back to the stack instead of silently
|
|
||||||
ignoring those.
|
|
||||||
|
|
||||||
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|
||||||
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
||||||
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Link: https://lore.kernel.org/20250514-pinctrl-a37xx-fixes-v2-5-07e9ac1ab737@gmail.com
|
|
||||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
||||||
---
|
|
||||||
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 7 ++++---
|
|
||||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
@@ -472,16 +472,17 @@ static int armada_37xx_pmx_gpio_set_dire
|
|
||||||
{
|
|
||||||
struct armada_37xx_pinctrl *info = pinctrl_dev_get_drvdata(pctldev);
|
|
||||||
struct gpio_chip *chip = range->gc;
|
|
||||||
+ int ret;
|
|
||||||
|
|
||||||
dev_dbg(info->dev, "gpio_direction for pin %u as %s-%d to %s\n",
|
|
||||||
offset, range->name, offset, input ? "input" : "output");
|
|
||||||
|
|
||||||
if (input)
|
|
||||||
- armada_37xx_gpio_direction_input(chip, offset);
|
|
||||||
+ ret = armada_37xx_gpio_direction_input(chip, offset);
|
|
||||||
else
|
|
||||||
- armada_37xx_gpio_direction_output(chip, offset, 0);
|
|
||||||
+ ret = armada_37xx_gpio_direction_output(chip, offset, 0);
|
|
||||||
|
|
||||||
- return 0;
|
|
||||||
+ return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int armada_37xx_gpio_request_enable(struct pinctrl_dev *pctldev,
|
|
|
@ -1,35 +0,0 @@
|
||||||
From 6481c0a83367b0672951ccc876fbae7ee37b594b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Date: Wed, 14 May 2025 21:18:37 +0200
|
|
||||||
Subject: [PATCH 6/7] pinctrl: armada-37xx: propagate error from
|
|
||||||
armada_37xx_gpio_get_direction()
|
|
||||||
|
|
||||||
The regmap_read() function can fail, so propagate its error up to
|
|
||||||
the stack instead of silently ignoring that.
|
|
||||||
|
|
||||||
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|
||||||
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
||||||
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Link: https://lore.kernel.org/20250514-pinctrl-a37xx-fixes-v2-6-07e9ac1ab737@gmail.com
|
|
||||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
||||||
---
|
|
||||||
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
@@ -402,10 +402,13 @@ static int armada_37xx_gpio_get_directio
|
|
||||||
struct armada_37xx_pinctrl *info = gpiochip_get_data(chip);
|
|
||||||
unsigned int reg = OUTPUT_EN;
|
|
||||||
unsigned int val, mask;
|
|
||||||
+ int ret;
|
|
||||||
|
|
||||||
armada_37xx_update_reg(®, &offset);
|
|
||||||
mask = BIT(offset);
|
|
||||||
- regmap_read(info->regmap, reg, &val);
|
|
||||||
+ ret = regmap_read(info->regmap, reg, &val);
|
|
||||||
+ if (ret)
|
|
||||||
+ return ret;
|
|
||||||
|
|
||||||
if (val & mask)
|
|
||||||
return GPIO_LINE_DIRECTION_OUT;
|
|
|
@ -1,31 +0,0 @@
|
||||||
From 4229c28323db141eda69cb99427be75d3edba071 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Date: Wed, 14 May 2025 21:18:38 +0200
|
|
||||||
Subject: [PATCH 7/7] pinctrl: armada-37xx: propagate error from
|
|
||||||
armada_37xx_pmx_set_by_name()
|
|
||||||
|
|
||||||
The regmap_update_bits() function can fail, so propagate its error
|
|
||||||
up to the stack instead of silently ignoring that.
|
|
||||||
|
|
||||||
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
|
||||||
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
||||||
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
|
|
||||||
Link: https://lore.kernel.org/20250514-pinctrl-a37xx-fixes-v2-7-07e9ac1ab737@gmail.com
|
|
||||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
||||||
---
|
|
||||||
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 4 +---
|
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
||||||
|
|
||||||
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
|
|
||||||
@@ -358,9 +358,7 @@ static int armada_37xx_pmx_set_by_name(s
|
|
||||||
|
|
||||||
val = grp->val[func];
|
|
||||||
|
|
||||||
- regmap_update_bits(info->regmap, reg, mask, val);
|
|
||||||
-
|
|
||||||
- return 0;
|
|
||||||
+ return regmap_update_bits(info->regmap, reg, mask, val);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int armada_37xx_pmx_set(struct pinctrl_dev *pctldev,
|
|
|
@ -13,7 +13,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
|
|
||||||
--- a/drivers/media/usb/uvc/uvc_driver.c
|
--- a/drivers/media/usb/uvc/uvc_driver.c
|
||||||
+++ b/drivers/media/usb/uvc/uvc_driver.c
|
+++ b/drivers/media/usb/uvc/uvc_driver.c
|
||||||
@@ -3296,6 +3296,18 @@ static const struct usb_device_id uvc_id
|
@@ -3307,6 +3307,18 @@ static const struct usb_device_id uvc_id
|
||||||
.bInterfaceSubClass = 1,
|
.bInterfaceSubClass = 1,
|
||||||
.bInterfaceProtocol = 0,
|
.bInterfaceProtocol = 0,
|
||||||
.driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) },
|
.driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) },
|
||||||
|
|
Loading…
Reference in a new issue