[PATCH 4/4] cpufreq: Make cpufreq_driver->exit() return void

2024-07-03 Thread Viresh Kumar
From: Lizhe The cpufreq core doesn't check the return type of the exit() callback and there is not much the core can do on failures at that point. Just drop the returned value and make it return void. Signed-off-by: Lizhe [ Viresh: Reworked the patches to fix all missing changes together. ] Sig

[PATCH 0/4] cpufreq: Make cpufreq_driver->exit() return void

2024-07-03 Thread Viresh Kumar
Make exit() return void, since it isn't used by the core. Based on initial patches sent by Lizhe [1]. Rafael, I will take this through my tree for 6.11. -- Viresh [1] https://lore.kernel.org/all/20240410132132.3526-1-sensor1...@163.com/ Lizhe (1): cpufreq: Make cpufreq_driver->exit() return

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Christian Zigotzky
On 02.07.24 18:54, Marc Zyngier wrote: On Sun, 30 Jun 2024 11:21:55 +0100, Christian Zigotzky wrote: Hello, There is an issue with the identification of ATA drives with our P.A. Semi Nemo boards [1] after the commit "of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_p

Re: [PATCH v2 07/10] soc: fsl: cpm1: qmc: Introduce functions to get a channel from a phandle list

2024-07-03 Thread Michael Ellerman
Mark Brown writes: > On Mon, Jul 01, 2024 at 01:30:34PM +0200, Herve Codina wrote: >> qmc_chan_get_byphandle() and the resource managed version retrieve a >> channel from a simple phandle. >> >> Extend the API and introduce qmc_chan_get_byphandles_index() and the >> resource managed version in or

Re: [PATCH 04/20] clk: sunxi: clk-simple-gates: convert to of_property_for_each_u32_new()

2024-07-03 Thread Andre Przywara
On Wed, 03 Jul 2024 12:36:48 +0200 Luca Ceresoli wrote: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > Signed-off-by: Luca Ceresoli Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/clk/su

Re: [PATCH 05/20] clk: sunxi: clk-sun8i-bus-gates: convert to of_property_for_each_u32_new()

2024-07-03 Thread Andre Przywara
On Wed, 03 Jul 2024 12:36:49 +0200 Luca Ceresoli wrote: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > Signed-off-by: Luca Ceresoli Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/clk/su

Re: [PATCH] perf report: Calling available function for stats printing

2024-07-03 Thread Namhyung Kim
On Fri, 28 Jun 2024 14:32:24 -0400, Abhishek Dubey wrote: > For printing dump_trace, just use existing stats_print() > function. > > Applied to perf-tools-next, thanks! Best regards, Namhyung

[PATCH v2 8/8] mm/mprotect: fix dax pud handlings

2024-07-03 Thread Peter Xu
This is only relevant to the two archs that support PUD dax, aka, x86_64 and ppc64. PUD THPs do not yet exist elsewhere, and hugetlb PUDs do not count in this case. DAX have had PUD mappings for years, but change protection path never worked. When the path is triggered in any form (a simple test

[PATCH v2 7/8] mm/x86: Add missing pud helpers

2024-07-03 Thread Peter Xu
These new helpers will be needed for pud entry updates soon. Introduce these helpers by referencing the pmd ones. Namely: - pudp_invalidate() - pud_modify() Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x...@kernel.org Signed-off-by: Peter Xu --- arch/x86/inc

[PATCH v2 6/8] mm/x86: arch_check_zapped_pud()

2024-07-03 Thread Peter Xu
Introduce arch_check_zapped_pud() to sanity check shadow stack on PUD zaps. It has the same logic of the PMD helper. One thing to mention is, it might be a good idea to use page_table_check in the future for trapping wrong setups of shadow stack pgtable entries [1]. That is left for the future as

[PATCH v2 5/8] mm/x86: Make pud_leaf() only cares about PSE bit

2024-07-03 Thread Peter Xu
An entry should be reported as PUD leaf even if it's PROT_NONE, in which case PRESENT bit isn't there. I hit bad pud without this when testing dax 1G on zapping a PROT_NONE PUD. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x...@kernel.org Acked-by: Dave Hansen S

[PATCH v2 4/8] mm/powerpc: Add missing pud helpers

2024-07-03 Thread Peter Xu
These new helpers will be needed for pud entry updates soon. Introduce them by referencing the pmd ones. Namely: - pudp_invalidate() - pud_modify() Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Cc: Aneesh Kumar K.V Signed-off-by: Peter Xu -

[PATCH v2 3/8] mm/mprotect: Push mmu notifier to PUDs

2024-07-03 Thread Peter Xu
mprotect() does mmu notifiers in PMD levels. It's there since 2014 of commit a5338093bfb4 ("mm: move mmu notifier call from change_protection to change_pmd_range"). At that time, the issue was that NUMA balancing can be applied on a huge range of VM memory, even if nothing was populated. The not

[PATCH v2 2/8] mm/mprotect: Remove NUMA_HUGE_PTE_UPDATES

2024-07-03 Thread Peter Xu
In 2013, commit 72403b4a0fbd ("mm: numa: return the number of base pages altered by protection changes") introduced "numa_huge_pte_updates" vmstat entry, trying to capture how many huge ptes (in reality, PMD thps at that time) are marked by NUMA balancing. This patch proposes to remove it for some

[PATCH v2 1/8] mm/dax: Dump start address in fault handler

2024-07-03 Thread Peter Xu
Currently the dax fault handler dumps the vma range when dynamic debugging enabled. That's mostly not useful. Dump the (aligned) address instead with the order info. Signed-off-by: Peter Xu --- drivers/dax/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH v2 0/8] mm/mprotect: Fix dax puds

2024-07-03 Thread Peter Xu
[Based on mm-unstable, commit 31334cf98dbd, July 2nd] v2: - Added tags - Fix wrong pmd helper used in powerpc - Added patch "mm/x86: arch_check_zapped_pud()" [Rick] - Do proper dirty bit shifts for shadow stack on puds [Dave] - Add missing page_table_check hooks in pudp_establish() [Dave] v1: htt

Re: [PATCH 13/20] pwm: samsung: convert to of_property_for_each_u32_new()

2024-07-03 Thread Uwe Kleine-König
Hello, On Wed, Jul 03, 2024 at 12:36:57PM +0200, Luca Ceresoli wrote: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > Signed-off-by: Luca Ceresoli > --- > drivers/pwm/pwm-samsung.c | 4 +--- > 1 file ch

Re: [PATCH v2 07/10] soc: fsl: cpm1: qmc: Introduce functions to get a channel from a phandle list

2024-07-03 Thread Mark Brown
On Mon, Jul 01, 2024 at 01:30:34PM +0200, Herve Codina wrote: > qmc_chan_get_byphandle() and the resource managed version retrieve a > channel from a simple phandle. > > Extend the API and introduce qmc_chan_get_byphandles_index() and the > resource managed version in order to retrieve a channel f

[PATCH 2/2] arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon

2024-07-03 Thread Frank Li
Add platform specific compatiable string 'fsl,ls1028-reset' for syscon and move reboot node under reset syscon node to fix below warning. syscon@1e6: compatible: 'anyOf' conditional failed, one must be fixed: ['syscon'] is too short 'syscon' is not one of ['al,alpine-sysfabric-

[PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node

2024-07-03 Thread Frank Li
ls1028a has a reset module that includes reboot, reset control word, and service processor control. Add platform specific compatible string to fix the below warning. syscon@1e6: compatible: 'anyOf' conditional failed, one must be fixed: ['syscon'] is too short 'syscon' is not

[PATCH 0/2] dt-bindings: soc: add reset syscon for reboot node

2024-07-03 Thread Frank Li
--- 2 files changed, 64 insertions(+), 9 deletions(-) --- base-commit: 0b58e108042b0ed28a71cd7edf517555b233 change-id: 20240703-ls_reset_syscon-9507b9750397 Best regards, --- Frank Li

Re: [PATCH 00/20] Simplify of_property_for_each_u32()

2024-07-03 Thread Rob Herring
On Wed, Jul 03, 2024 at 12:36:44PM +0200, Luca Ceresoli wrote: > [Note: to reduce the noise I have trimmed the get_maintainers list > manually. Should you want to be removed, or someone else added, to future > versions, just tell me. Sorry for the noise.] > > This series aims at simplifying of_pro

Re: [PATCH 20/20] of: deprecate and rename of_property_for_each_u32()

2024-07-03 Thread Rob Herring
On Wed, Jul 03, 2024 at 12:37:04PM +0200, Luca Ceresoli wrote: > of_property_for_each_u32() is meant to disappear. All the call sites not > using the 3rd and 4th arguments have already been replaced by > of_property_for_each_u32_new(). > > Deprecate the old macro. Also rename it to minimize the nu

[PATCH 2/2] arm64: dts: fsl-ls1043a: change uqe to uqe-bus and remove #address-cells

2024-07-03 Thread Frank Li
Change node name 'uqe' to 'uqe-bus'. Remove #address-cells and #size-cells for nodes, which have not child node. Fix below CHECK_DTBS warning: arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: uqe@240: si@700: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'

[PATCH 1/2] dt-bindings: soc: fsl: cpm_qe: convert to yaml format

2024-07-03 Thread Frank Li
Convert binding doc qe.txt to yaml format. Split it to fsl,qe-firmware.yaml, fsl,qe-ic.yaml, fsl,qe-muram.yaml, fsl,qe-si.yaml fsl,qe-siram.yaml, fsl,qe.yaml. Additional Changes: - Fix error in example. - Change to low case for hex value. - Remove fsl,qe-num-riscs and fsl,qe-snums from required li

[PATCH 0/2] dt-bindings: soc: fsl: convert fsl,qe to yaml

2024-07-03 Thread Frank Li
change-id: 20240703-ls_qe_warning-f8a81f53ea23 Best regards, --- Frank Li

Re: [PATCH v2] printk: Add a short description string to kmsg_dump()

2024-07-03 Thread Jocelyn Falempe
On 03/07/2024 18:27, Kees Cook wrote: On Wed, Jul 03, 2024 at 10:22:11AM +0200, Petr Mladek wrote: On Wed 2024-07-03 09:57:26, Jocelyn Falempe wrote: On 02/07/2024 22:29, Kees Cook wrote: On Tue, Jul 02, 2024 at 02:26:04PM +0200, Jocelyn Falempe wrote: kmsg_dump doesn't forward the panic

Re: [PATCH] ASoC: fsl_xcvr: Improve suspend/resume flow in fsl_xcvr_trigger()

2024-07-03 Thread Mark Brown
On Fri, 28 Jun 2024 18:43:54 +0900, Chancel Liu wrote: > In the current flow all interrupts are disabled in runtime suspend > phase. However interrupts enablement only exists in fsl_xcvr_prepare(). > After resume fsl_xcvr_prepare() may not be called so it will cause all > interrupts still disabled

Re: [PATCH v2] printk: Add a short description string to kmsg_dump()

2024-07-03 Thread Kees Cook
On Wed, Jul 03, 2024 at 10:22:11AM +0200, Petr Mladek wrote: > On Wed 2024-07-03 09:57:26, Jocelyn Falempe wrote: > > > > > > On 02/07/2024 22:29, Kees Cook wrote: > > > On Tue, Jul 02, 2024 at 02:26:04PM +0200, Jocelyn Falempe wrote: > > > > kmsg_dump doesn't forward the panic reason string to t

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Christian Zigotzky
On 03.07.24 12:41, Marc Zyngier wrote: On Wed, 03 Jul 2024 11:26:17 +0100, Christian Zigotzky wrote: On 3. Jul 2024, at 08:40, Marc Zyngier wrote: This isn't a DTS. This is a listing of all the nodes, not something I can use to feed the kernel. I explained how to generate it. Download the co

Re: [PATCH 12/20] iio: adc: ti_am335x_adc: convert to of_property_for_each_u32_new()

2024-07-03 Thread Jonathan Cameron
On Wed, 03 Jul 2024 12:36:56 +0200 Luca Ceresoli wrote: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > Signed-off-by: Luca Ceresoli Acked-by: Jonathan Cameron

[PATCH] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-03 Thread Amit Machhiwal
With CONFIG_PCI_DYNAMIC_OF_NODES [1], a hot-plug and hot-unplug sequence of a PCI device attached to a PCI-bridge causes following kernel Oops on a pseries KVM guest: RTAS: event: 2, Type: Hotplug Event (229), Severity: 1 Kernel attempted to read user page (10ec0048) - exploit attempt? (uid:

Re: [PATCH V5 04/17] tools/perf: Add disasm_line__parse to parse raw instruction for powerpc

2024-07-03 Thread Athira Rajeev
> On 3 Jul 2024, at 6:46 AM, Namhyung Kim wrote: > > On Mon, Jul 01, 2024 at 10:04:17AM +0530, Athira Rajeev wrote: >> Currently, the perf tool infrastructure disasm_line__parse function to >> parse disassembled line. >> >> Example snippet from objdump: >> objdump --start-address= --stop-add

Re: [PATCH 11/20] irqchip/atmel-aic: convert to of_property_for_each_u32_new()

2024-07-03 Thread Nicolas Ferre
On 03/07/2024 at 12:36, Luca Ceresoli wrote: Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli Acked-by: Nicolas Ferre --- drivers/irqchip/irq-atmel-aic-common.c | 4 +--- 1 f

Re: [PATCH 17/20] ASoC: arizona: convert to of_property_for_each_u32_new()

2024-07-03 Thread Richard Fitzgerald
On 03/07/2024 11:37, Luca Ceresoli wrote: Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- sound/soc/codecs/arizona.c | 12 +--- 1 file changed, 5 insertions(+), 7 del

Re: [PATCH 17/20] ASoC: arizona: convert to of_property_for_each_u32_new()

2024-07-03 Thread Mark Brown
On Wed, Jul 03, 2024 at 12:37:01PM +0200, Luca Ceresoli wrote: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: linux-next: manual merge of the powerpc tree with the mm tree

2024-07-03 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the powerpc tree got a conflict in: > > arch/powerpc/mm/nohash/Makefile > ... > diff --cc arch/powerpc/mm/nohash/Makefile > index 90e846f0c46c,86d0fe434824.. > --- a/arch/powerpc/mm/nohash/Makefile > +++ b/arch/powerp

Re: [PATCH] tpm: atmel: Drop PPC64 specific MMIO setup

2024-07-03 Thread Michael Ellerman
"Rob Herring (Arm)" writes: > The PPC64 specific MMIO setup open codes DT address functions rather > than using standard address parsing functions. The open-coded version > fails to handle any address translation and is not endian safe. > > I haven't found any evidence of what platform used this.

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Marc Zyngier
Hi Michael, On Wed, 03 Jul 2024 12:30:38 +0100, Michael Ellerman wrote: > > Rob Herring writes: > > On Tue, Jul 2, 2024 at 10:54 AM Marc Zyngier wrote: > >> > >> On Sun, 30 Jun 2024 11:21:55 +0100, > >> Christian Zigotzky wrote: > >> > > >> > Hello, > >> > > >> > There is an issue with the id

Re: [PATCH V5 05/17] tools/perf: Add support to capture and parse raw instruction in powerpc using dso__data_read_offset utility

2024-07-03 Thread Athira Rajeev
> On 3 Jul 2024, at 6:54 AM, Namhyung Kim wrote: > > On Mon, Jul 01, 2024 at 10:04:18AM +0530, Athira Rajeev wrote: >> Add support to capture and parse raw instruction in powerpc. >> Currently, the perf tool infrastructure uses two ways to disassemble >> and understand the instruction. One is

Re: [PATCH 19/20] powerpc/xive: convert to of_property_for_each_u32_new()

2024-07-03 Thread Michael Ellerman
Luca Ceresoli writes: > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > In this case only the 'prop' variable can be removed and not 'reg', > because 'reg' is used in _previous_ lines of the same function. T

Re: [PATCH 09/20] gpio: brcmstb: convert to of_property_for_each_u32_new()

2024-07-03 Thread Bartosz Golaszewski
On Wed, Jul 3, 2024 at 12:38 PM Luca Ceresoli wrote: > > Simplify code using of_property_for_each_u32_new() as the two additional > parameters in of_property_for_each_u32() are not used here. > > Signed-off-by: Luca Ceresoli > --- > drivers/gpio/gpio-brcmstb.c | 5 + > 1 file changed, 1 inse

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Michael Ellerman
Rob Herring writes: > On Tue, Jul 2, 2024 at 10:54 AM Marc Zyngier wrote: >> >> On Sun, 30 Jun 2024 11:21:55 +0100, >> Christian Zigotzky wrote: >> > >> > Hello, >> > >> > There is an issue with the identification of ATA drives with our >> > P.A. Semi Nemo boards [1] after the >> > commit "of/ir

Re: [RFC PATCH v3 00/11] powerpc: Add support for ftrace direct and BPF trampolines

2024-07-03 Thread Vishal Chourasia
On Fri, Jun 21, 2024 at 12:24:03AM +0530, Naveen N Rao wrote: > This is v3 of the patches posted here: > http://lkml.kernel.org/r/cover.1718008093.git.nav...@kernel.org > > Since v2, I have addressed review comments from Steven and Masahiro > along with a few fixes. Patches 7-11 are new in this s

[PATCH 15/20] usb: usb251xb: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/usb/misc/usb251xb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb251xb.c b/d

[PATCH 13/20] pwm: samsung: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/pwm/pwm-samsung.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-samsung.c b/drive

[PATCH 14/20] tty: sysrq: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/tty/sysrq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq

[PATCH 12/20] iio: adc: ti_am335x_adc: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/iio/adc/ti_am335x_adc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/adc/ti_am335x_a

[PATCH 11/20] irqchip/atmel-aic: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/irqchip/irq-atmel-aic-common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-

[PATCH 10/20] pinctrl: s32cc: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/pinctrl/nxp/pinctrl-s32cc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/nxp/pin

[PATCH 09/20] gpio: brcmstb: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/gpio/gpio-brcmstb.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-brcmstb.c b/

[PATCH 08/20] lk: clk-conf: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clk/clk-conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-conf.c b/drivers/clk

[PATCH 07/20] bus: ti-sysc: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/bus/ti-sysc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/t

[PATCH 06/20] clocksource/drivers/samsung_pwm: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clocksource/samsung_pwm_timer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource

[PATCH 05/20] clk: sunxi: clk-sun8i-bus-gates: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clk/sunxi/clk-sun8i-bus-gates.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi/c

[PATCH 04/20] clk: sunxi: clk-simple-gates: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clk/sunxi/clk-simple-gates.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi/clk-

[PATCH 00/20] Simplify of_property_for_each_u32()

2024-07-03 Thread Luca Ceresoli
[Note: to reduce the noise I have trimmed the get_maintainers list manually. Should you want to be removed, or someone else added, to future versions, just tell me. Sorry for the noise.] This series aims at simplifying of_property_for_each_u32() as well as making it more difficult to misuse it in

[PATCH 03/20] clk: qcom: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clk/qcom/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/qcom/common.c b/drive

[PATCH 02/20] clk: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/clk/clk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c ind

[PATCH 01/20] of: add of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
The of_property_for_each_u32() macro needs five parameters, two of which are often only used internally by the macro itself (in the for() clause). Now that the kernel uses C11 to build these two parameters can be avoided by declaring them internally. Add a new macro for that, which is meant to eve

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Marc Zyngier
On Wed, 03 Jul 2024 11:26:17 +0100, Christian Zigotzky wrote: > > On 3. Jul 2024, at 08:40, Marc Zyngier wrote: > > This isn't a DTS. This is a listing of all the nodes, not something I > can use to feed the kernel. I explained how to generate it. > > Download the compiled device tree for the

[PATCH 20/20] of: deprecate and rename of_property_for_each_u32()

2024-07-03 Thread Luca Ceresoli
of_property_for_each_u32() is meant to disappear. All the call sites not using the 3rd and 4th arguments have already been replaced by of_property_for_each_u32_new(). Deprecate the old macro. Also rename it to minimize the number of new usages and encourage conversion to the of_property_for_each_u

[PATCH 19/20] powerpc/xive: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. In this case only the 'prop' variable can be removed and not 'reg', because 'reg' is used in _previous_ lines of the same function. There is no side effect because t

[PATCH 18/20] powerpc/xive: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- arch/powerpc/sysdev/xive/native.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/xive/

[PATCH 16/20] mfd: ti_am335x_tscadc: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- drivers/mfd/ti_am335x_tscadc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/ti_am335x_tscadc

[PATCH 17/20] ASoC: arizona: convert to of_property_for_each_u32_new()

2024-07-03 Thread Luca Ceresoli
Simplify code using of_property_for_each_u32_new() as the two additional parameters in of_property_for_each_u32() are not used here. Signed-off-by: Luca Ceresoli --- sound/soc/codecs/arizona.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/arizo

Re: [PowerPC] [PASEMI] Issue with the identification of ATA drives after the of/irq updates 2024-05-29

2024-07-03 Thread Christian Zigotzky
On 3. Jul 2024, at 08:40, Marc Zyngier wrote: This isn't a DTS. This is a listing of all the nodes, not something I can use to feed the kernel. I explained how to generate it. Download the compiled device tree for the Nemo board: http://www.xenosoft.de/fdt-nemo-board.zip No, thank you. ———

Re: [PATCH] ASoC: fsl_xcvr: Improve suspend/resume flow in fsl_xcvr_trigger()

2024-07-03 Thread Shengjiu Wang
On Fri, Jun 28, 2024 at 5:44 PM Chancel Liu wrote: > > In the current flow all interrupts are disabled in runtime suspend > phase. However interrupts enablement only exists in fsl_xcvr_prepare(). > After resume fsl_xcvr_prepare() may not be called so it will cause all > interrupts still disabled e

Re: [PATCH v2] printk: Add a short description string to kmsg_dump()

2024-07-03 Thread Petr Mladek
On Wed 2024-07-03 09:57:26, Jocelyn Falempe wrote: > > > On 02/07/2024 22:29, Kees Cook wrote: > > On Tue, Jul 02, 2024 at 02:26:04PM +0200, Jocelyn Falempe wrote: > > > kmsg_dump doesn't forward the panic reason string to the kmsg_dumper > > > callback. > > > This patch adds a new struct kmsg_du

Re: [PATCH v2] printk: Add a short description string to kmsg_dump()

2024-07-03 Thread Petr Mladek
On Tue 2024-07-02 14:26:04, Jocelyn Falempe wrote: > kmsg_dump doesn't forward the panic reason string to the kmsg_dumper > callback. > This patch adds a new struct kmsg_dump_detail, that will hold the > reason and description, and pass it to the dump() callback. > > To avoid updating all kmsg_dum

Re: [PATCH v2] printk: Add a short description string to kmsg_dump()

2024-07-03 Thread Jocelyn Falempe
On 02/07/2024 22:29, Kees Cook wrote: On Tue, Jul 02, 2024 at 02:26:04PM +0200, Jocelyn Falempe wrote: kmsg_dump doesn't forward the panic reason string to the kmsg_dumper callback. This patch adds a new struct kmsg_dump_detail, that will hold the reason and description, and pass it to the du