[PATCH RESEND 1/4] media: i2c: imx214: Calculate link bit rate from clock frequency

2025-03-08 Thread André Apitzsch via B4 Relay
From: André Apitzsch Replace the magic link bit rate number (4800) by its calculation based on the used parameters and the provided external clock frequency. The link bit rate is output bitrate multiplied by the number lanes. The output bitrate is the OPPXCK clock frequency multiplied by the num

[PATCH RESEND 0/4] media: i2c: imx214: Add support for 23.88MHz clock

2025-03-08 Thread André Apitzsch via B4 Relay
The imx214 driver currently supports only a 24MHz external clock. But there are devices, like Qualcomm-MSM8916-based phones, which cannot provide this frequency. To make the sensor usable by those devices, add support for 23.88MHz clock. Signed-off-by: André Apitzsch --- André Apitzsch (4):

[PATCH v3 6/7] Input: synaptics-rmi4 - read product ID on aftermarket touch ICs

2025-03-08 Thread David Heidelberg via B4 Relay
From: methanal Some replacement displays include third-party touch ICs which do not report the product ID correctly unless we read directly from the product ID register. Add a check and a fallback read to handle this. Signed-off-by: methanal Signed-off-by: Caleb Connolly --- drivers/input/rmi

Re: [PATCH net] ipvs: prevent integer overflow in do_ip_vs_get_ctl()

2025-03-08 Thread kernel test robot
Hi Dan, kernel test robot noticed the following build warnings: [auto build test WARNING on net/main] url: https://github.com/intel-lab-lkp/linux/commits/Dan-Carpenter/ipvs-prevent-integer-overflow-in-do_ip_vs_get_ctl/20250307-214537 base: net/main patch link: https://lore.kernel.org/r

[PATCH RESEND 2/4] media: i2c: imx214: Prepare for variable clock frequency

2025-03-08 Thread André Apitzsch via B4 Relay
From: André Apitzsch Move clock frequency related parameters out of the constant register sequences, such that the hard coded external clock frequency can be replaced by a variable in the next commit. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 64 +++

[PATCH RESEND 3/4] media: i2c: imx214: Read clock frequency from device tree

2025-03-08 Thread André Apitzsch via B4 Relay
From: André Apitzsch Replace the hard coded external clock frequency by the one read from device tree. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 99 -- 1 file changed, 79 insertions(+), 20 deletions(-) diff --git a/drivers/media

[PATCH RESEND 4/4] media: i2c: imx214: Add support for 23.88MHz clock

2025-03-08 Thread André Apitzsch via B4 Relay
From: André Apitzsch Qualcomm MSM8916 devices only provide an external clock of 23.88MHz. Make the sensor usable by those devices by adding support for this frequency. Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(

[PATCH v4 1/2] dt-bindings: input: goodix,gt9916: Document gt9897 compatible

2025-03-08 Thread Jens Reidel
Document the Goodix GT9897 which is a Berlin-A series touchscreen controller IC by Goodix. Acked-by: Rob Herring (Arm) Signed-off-by: Jens Reidel --- .../devicetree/bindings/input/touchscreen/goodix,gt9916.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bi

[PATCH v4 0/2] Add Goodix Berlin-A series support

2025-03-08 Thread Jens Reidel
This series adds support for the Goodix Berlin-A series touch ICs (gt9897). This was tested on a Xiaomi 11 Lite 5G NE (xiaomi-lisa), which uses the gt9897 IC connected over SPI. I am not aware of any device that has gt9897 connected over I2C and therefore could not test it, so I didn't add a compat

Re: [PATCH] sev-snp: parse MP tables for VMware hypervisor

2025-03-08 Thread Ajay Kaher
On Sat, Jan 18, 2025 at 4:26 AM Kevin Loughlin wrote: > > > > > For VMware hypervisor, SEV-SNP enabled VM's could boot without UEFI. > > > > In this case, mpparse_find_mptable() has to be called to parse MP > > > > tables which contains boot information. > > > > > > > > Fixes: 0f4a1e80989a ("x86/s

Re: [PATCHv5 net 1/3] bonding: fix calling sleeping function in spin lock and some race conditions

2025-03-08 Thread Simon Horman
On Fri, Mar 07, 2025 at 03:19:01AM +, Hangbin Liu wrote: ... > @@ -616,9 +615,22 @@ static void bond_ipsec_del_sa_all(struct bonding *bond) > return; > > mutex_lock(&bond->ipsec_lock); > - list_for_each_entry(ipsec, &bond->ipsec_list, list) { > - if (!ips

Re: [PATCH net] ipvs: prevent integer overflow in do_ip_vs_get_ctl()

2025-03-08 Thread Julian Anastasov
Hello, On Fri, 7 Mar 2025, Dan Carpenter wrote: > The get->num_services variable is an unsigned int which is controlled by > the user. The struct_size() function ensures that the size calculation > does not overflow an unsigned long, however, we are saving the result to > an int so the

[PATCH] module: Remove unnecessary size argument when calling strscpy()

2025-03-08 Thread Thorsten Blum
The size parameter is optional and strscpy() automatically determines the length of the destination buffer using sizeof() if the argument is omitted. This makes the explicit sizeof() unnecessary. Remove it to shorten and simplify the code. Signed-off-by: Thorsten Blum --- kernel/module/main.c |

Re: [PATCH v3 2/2] Input: goodix_berlin - Add support for Berlin-A series

2025-03-08 Thread kernel test robot
e: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next patch link: https://lore.kernel.org/r/20250307094823.478152-3-adrian%40mainlining.org patch subject: [PATCH v3 2/2] Input: goodix_berlin - Add support for Berlin-A series config: i386-buildonly-randconfig-003-20250308 (https://d

Re: [PATCH v3 2/2] Input: goodix_berlin - Add support for Berlin-A series

2025-03-08 Thread kernel test robot
e: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next patch link: https://lore.kernel.org/r/20250307094823.478152-3-adrian%40mainlining.org patch subject: [PATCH v3 2/2] Input: goodix_berlin - Add support for Berlin-A series config: i386-buildonly-randconfig-001-20250308 (https://d

Re: [PATCH v2] kunit: tool: Fix bug in parsing test plan

2025-03-08 Thread David Gow
On Fri, 7 Mar 2025 at 02:20, Rae Moar wrote: > > A bug was identified where the KTAP below caused an infinite loop: > > TAP version 13 > ok 4 test_case > 1..4 > > The infinite loop was caused by the parser not parsing a test plan > if following a test result line. > > Fix this bug to correctly

[PATCH v3 0/7] Subject: [PATCH v3 0/7] Input: synaptics-rmi4: add quirks for third party touchscreen controllers

2025-03-08 Thread David Heidelberg via B4 Relay
| 3 + 7 files changed, 258 insertions(+), 47 deletions(-) --- base-commit: 0a2f889128969dab41861b6e40111aa03dc57014 change-id: 20250308-synaptics-rmi4-c832b2f73ceb Best regards, -- David Heidelberg

[PATCH v3 2/7] Input: synaptics-rmi4 - handle duplicate/unknown PDT entries

2025-03-08 Thread David Heidelberg via B4 Relay
From: Caleb Connolly Some third party rmi4-compatible ICs don't expose their PDT entries very well. Add a few checks to skip duplicate entries as well as entries for unsupported functions. This is required to support some phones with third party displays. Validated on a stock OnePlus 6T (origin

[PATCH v3 4/7] Input: synaptics-rmi4 - f55: handle zero electrode count

2025-03-08 Thread David Heidelberg via B4 Relay
From: methanal Some third party ICs claim to support f55 but report an electrode count of 0. Catch this and bail out early so that we don't confuse the i2c bus with 0 sized reads. Signed-off-by: methanal [simplify code, adjust wording] Signed-off-by: Caleb Connolly --- drivers/input/rmi4/rmi_

[PATCH v3 7/7] Input: synaptics-rmi4 - support fallback values for PDT descriptor bytes

2025-03-08 Thread David Heidelberg via B4 Relay
From: methanal Some replacement displays include third-party touch ICs which do not expose the function number and the interrupt status in its PDT entries. OnePlus 6 (original touch IC) rmi4_i2c 12-0020: read 6 bytes at 0x00e3: 0 (2b 22 0d 06 01 01) OnePlus 6 (aftermarket touch IC) rmi4_i2c

[PATCH v3 1/7] dt-bindings: input: syna,rmi4: document syna,pdt-fallback-desc

2025-03-08 Thread David Heidelberg via B4 Relay
From: Caleb Connolly This new property allows devices to specify some register values which are missing on units with third party replacement displays. These displays use unofficial touch ICs which only implement a subset of the RMI4 specification. Signed-off-by: Caleb Connolly Signed-off-by: D

[PATCH v3 3/7] Input: synaptics-rmi4 - f12: use hardcoded values for aftermarket touch ICs

2025-03-08 Thread David Heidelberg via B4 Relay
From: methanal Some replacement displays include third-party touch ICs which are devoid of register descriptors. Create a fake data register descriptor for such ICs and provide hardcoded default values. It isn't possible to reliably determine if the touch IC is original or not, so these fallback

[PATCH v3 5/7] Input: synaptics-rmi4 - don't do unaligned reads in IRQ context

2025-03-08 Thread David Heidelberg via B4 Relay
From: methanal Some replacement displays include third-party touch ICs which incur a significant penalty (1-2 seconds) when doing certain unaligned reads. This is enough to break functionality when it happens in the hot path, so adjust the interrupt handler to not read from an unaligned address.

Re: [PATCH bpf-next 0/2] selftests/bpf: Move test_lwt_seg6local to test_progs

2025-03-08 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Fri, 07 Mar 2025 10:18:22 +0100 you wrote: > Hi all, > > This patch series continues the work to migrate the script tests into > prog_tests. > > test_lwt_seg6local.sh tests some bpf_lwt_* helpers. It contains

Re: [PATCH v3 0/2] scanf: convert self-test to KUnit

2025-03-08 Thread Tamir Duberstein
On Fri, Mar 7, 2025 at 11:51 PM Kees Cook wrote: > > On Tue, Feb 04, 2025 at 02:25:54PM -0500, Tamir Duberstein wrote: > > lib/scanf_kunit.c| 800 > > ++ > > lib/test_scanf.c | 814 > > --- >