Re: [PATCH 07/13] powerpc/kprobes: Unpoison instruction in kprobe struct

2023-12-14 Thread Naveen N Rao
On Thu, Dec 14, 2023 at 05:55:33AM +, Nicholas Miehlbradt wrote: > KMSAN does not unpoison the ainsn field of a kprobe struct correctly. > Manually unpoison it to prevent false positives. > > Signed-off-by: Nicholas Miehlbradt > --- > arch/powerpc/kernel/kprobes.c | 2 ++ > 1 file changed,

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-14 Thread Sourabh Jain
Hello Baoquan, On 15/12/23 07:58, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: The commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses this flag to indicate kernel that it is safe to modify the

[PATCH RFC v4-bis] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
From: George Stark Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no own devm wrapping.

Re: [PATCH v14 6/6] powerpc: add crash memory hotplug support

2023-12-14 Thread Sourabh Jain
On 15/12/23 06:53, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: .. diff --git a/arch/powerpc/include/asm/kexec_ranges.h b/arch/powerpc/include/asm/kexec_ranges.h index f83866a19e87..802abf580cf0 100644 --- a/arch/powerpc/include/asm/kexec_ranges.h +++

Re: [PATCH v14 2/6] crash: make CPU and Memory hotplug support reporting flexible

2023-12-14 Thread Sourabh Jain
Hello Baoquan, On 14/12/23 19:43, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: Architectures' specific functions `arch_crash_hotplug_cpu_support()` and `arch_crash_hotplug_memory_support()` advertise the kernel's capability to update the kdump image on CPU and Memory hotplug

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 22:48, Waiman Long a écrit : > On 12/14/23 14:53, Christophe Leroy wrote: >> >> Le 14/12/2023 à 19:48, Waiman Long a écrit : >>> On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which

Re: [PATCH v5 1/5] powerpc/smp: Enable Asym packing for cores on shared processor

2023-12-14 Thread Aneesh Kumar K . V
Srikar Dronamraju writes: > If there are shared processor LPARs, underlying Hypervisor can have more > virtual cores to handle than actual physical cores. > > Starting with Power 9, a big core (aka SMT8 core) has 2 nearly > independent thread groups. On a shared processors LPARs, it helps to >

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-14 Thread Baoquan He
On 12/11/23 at 02:00pm, Sourabh Jain wrote: > The commit a72bbec70da2 ("crash: hotplug support for kexec_load()") > introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses > this flag to indicate kernel that it is safe to modify the elfcorehdr > of kdump image loaded using

Re: [PATCH v14 6/6] powerpc: add crash memory hotplug support

2023-12-14 Thread Baoquan He
On 12/11/23 at 02:00pm, Sourabh Jain wrote: .. > diff --git a/arch/powerpc/include/asm/kexec_ranges.h > b/arch/powerpc/include/asm/kexec_ranges.h > index f83866a19e87..802abf580cf0 100644 > --- a/arch/powerpc/include/asm/kexec_ranges.h > +++ b/arch/powerpc/include/asm/kexec_ranges.h > @@

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Waiman Long
On 12/14/23 14:53, Christophe Leroy wrote: Le 14/12/2023 à 19:48, Waiman Long a écrit : On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to

Re: [PATCH] powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

2023-12-14 Thread Gaurav Batra
On 12/14/23 4:18 AM, Aneesh Kumar K.V wrote: Gaurav Batra writes: When kdump kernel tries to copy dump data over SR-IOV, LPAR panics due to NULL pointer execption. Here is the complete stack [ 19.944378] Kernel attempted to read user page (0) - exploit attempt? (uid: 0)^M [

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 19:48, Waiman Long a écrit : > > On 12/14/23 12:36, George Stark wrote: >> Using of devm API leads to a certain order of releasing resources. >> So all dependent resources which are not devm-wrapped should be deleted >> with respect to devm-release order. Mutex is one of such

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 18:36, George Stark a écrit : > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Using of devm API leads to a certain order of releasing resources. > So all

Re: [PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread Waiman Long
On 12/14/23 12:36, George Stark wrote: Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no

[PATCH v5 5/5] powerpc/smp: Dynamically build Powerpc topology

2023-12-14 Thread Srikar Dronamraju
Currently there are four Powerpc specific sched topologies. These are all statically defined. However not all these topologies are used by all Powerpc systems. To avoid unnecessary degenerations by the scheduler, masks and flags are compared. However if the sched topologies are build

[PATCH v5 3/5] powerpc/smp: Add __ro_after_init attribute

2023-12-14 Thread Srikar Dronamraju
There are some variables that are only updated at boot time. So add __ro_after_init attribute to such variables Signed-off-by: Srikar Dronamraju --- Changelog: v2 -> v3: Use __ro_after_init instead of __read_mostly Suggested by : Peter Zijlstra and Michael Ellerman arch/powerpc/kernel/smp.c |

[PATCH v5 4/5] powerpc/smp: Avoid asym packing within thread_group of a core

2023-12-14 Thread Srikar Dronamraju
PowerVM Hypervisor will schedule at a core granularity. However each core can have more than one thread_groups. For better utilization in case of a shared processor, its preferable for the scheduler to pack to the lowest core. However there is no benefit of moving a thread between two thread

[PATCH v5 2/5] powerpc/smp: Disable MC domain for shared processor

2023-12-14 Thread Srikar Dronamraju
Like L2-cache info, coregroup information which is used to determine MC sched domains is only present on dedicated LPARs. i.e PowerVM doesn't export coregroup information for shared processor LPARs. Hence disable creating MC domains on shared LPAR Systems. Signed-off-by: Srikar Dronamraju ---

[PATCH v5 0/5] powerpc/smp: Topology and shared processor optimizations

2023-12-14 Thread Srikar Dronamraju
PowerVM systems configured in shared processors mode have some unique challenges. Some device-tree properties will be missing on a shared processor. Hence some sched domains may not make sense for shared processor systems. Most shared processor systems are over-provisioned. Underlying PowerVM

[PATCH v5 1/5] powerpc/smp: Enable Asym packing for cores on shared processor

2023-12-14 Thread Srikar Dronamraju
If there are shared processor LPARs, underlying Hypervisor can have more virtual cores to handle than actual physical cores. Starting with Power 9, a big core (aka SMT8 core) has 2 nearly independent thread groups. On a shared processors LPARs, it helps to pack threads to lesser number of cores

[PATCH v4 06/10] leds: lm3532: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v4 08/10] leds: mlxreg: use devm_mutex_init for mutex initializtion

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses mutex which was destroyed already in module's

[PATCH v4 10/10] leds: powernv: use LED_RETAIN_AT_SHUTDOWN flag for leds

2023-12-14 Thread George Stark
This driver wants to keep its LEDs state after module is removed and implemented it in its own way. LED subsystem supports dedicated flag LED_RETAIN_AT_SHUTDOWN for the same purpose so use the flag instead of custom implementation. Signed-off-by: George Stark --- drivers/leds/leds-powernv.c |

[PATCH v4 07/10] leds: nic78bx: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v4 03/10] leds: aw2013: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v4 05/10] leds: lp3952: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v4 01/10] leds: aw2013: unlock mutex before destroying it

2023-12-14 Thread George Stark
In the probe() callback in case of error mutex is destroyed being locked which is not allowed so unlock the mutex before destroying. Fixes: 59ea3c9faf32 ("leds: add aw2013 driver") Signed-off-by: George Stark Reviewed-by: Andy Shevchenko --- drivers/leds/leds-aw2013.c | 1 + 1 file changed, 1

[PATCH v4 00/10] devm_led_classdev_register() usage problem

2023-12-14 Thread George Stark
This patch series fixes the problem of devm_led_classdev_register misusing. The basic problem is described in [1]. Shortly when devm_led_classdev_register() is used then led_classdev_unregister() called after driver's remove() callback. led_classdev_unregister() calls driver's brightness_set

[PATCH v4 09/10] leds: an30259a: use devm_mutext_init for mutext initialization

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses mutex which was destroyed already in module's

[PATCH v4 02/10] locking: introduce devm_mutex_init

2023-12-14 Thread George Stark
Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no own devm wrapping. Since mutex_destroy()

[PATCH v4 04/10] leds: aw200xx: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

Re: [PATCH v14 2/6] crash: make CPU and Memory hotplug support reporting flexible

2023-12-14 Thread Baoquan He
On 12/11/23 at 02:00pm, Sourabh Jain wrote: > Architectures' specific functions `arch_crash_hotplug_cpu_support()` and > `arch_crash_hotplug_memory_support()` advertise the kernel's capability > to update the kdump image on CPU and Memory hotplug events to userspace > via the sysfs interface.

Re: [PATCH v3 04/11] leds: aw2013: use devm API to cleanup module's resources

2023-12-14 Thread Andy Shevchenko
On Thu, Dec 14, 2023 at 03:58:56PM +0300, George Stark wrote: > On 12/14/23 08:42, Nikita Travkin wrote: > > George Stark писал(а) 14.12.2023 03:30: ... > > Btw, seems like (5..11)/11 never arrived to the lists... > > Yeah there was a delay, but now all patches from series #3 are online.

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread Andy Shevchenko
On Thu, Dec 14, 2023 at 3:00 PM Christophe Leroy wrote: > Le 14/12/2023 à 13:48, George Stark a écrit : > > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > > Découvrez pourquoi ceci est important à > > https://aka.ms/LearnAboutSenderIdentification ] > > On 12/14/23

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 13:48, George Stark a écrit : > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Hello Christophe > > On 12/14/23 13:06, Christophe Leroy wrote: >> >> > ...

Re: [PATCH v3 04/11] leds: aw2013: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
Hello Nikita Thanks for the review and testing. On 12/14/23 08:42, Nikita Travkin wrote: George Stark писал(а) 14.12.2023 03:30: In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done.

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread George Stark
Hello Christophe On 12/14/23 13:06, Christophe Leroy wrote: ... So you abandonned the idea of using mutex.h ? I'm not the one who make a choice here. The patch [1] you're talking about was seen by everyone but it seems like no one had shown interest. For me personally approach with

Re: [RESEND PATCH] powerpc/fsl: fix the schema check errors for fsl,tmu-calibration

2023-12-14 Thread David Heidelberg
On 13/12/2023 06:17, Michael Ellerman wrote: David Heidelberg writes: fsl,tmu-calibration is in u32-matrix. Use matching property syntax. No functional changes. Fixes warnings as: $ make dtbs_check ... arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dt.yaml: tmu@3026:

Re: [PATCH] powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

2023-12-14 Thread kernel test robot
Hi Gaurav, kernel test robot noticed the following build warnings: [auto build test WARNING on powerpc/next] [also build test WARNING on powerpc/fixes linus/master v6.7-rc5 next-20231214] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread Hans de Goede
Hi, On 12/14/23 11:06, Christophe Leroy wrote: > > > Le 13/12/2023 à 23:30, George Stark a écrit : >> [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. >> Découvrez pourquoi ceci est important à >> https://aka.ms/LearnAboutSenderIdentification ] >> >> Using of devm API

[PATCH v2 5/5] powerpc: Stop using of_root

2023-12-14 Thread Michael Ellerman
From: Christophe Leroy Replace all usages of of_root by of_find_node_by_path("/") Signed-off-by: Christophe Leroy Reviewed-by: Rob Herring Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/secure_boot.c| 8 ++-- arch/powerpc/kexec/ranges.c | 8 +---

[PATCH v2 4/5] powerpc/machdep: Define 'compatibles' property in ppc_md and use it

2023-12-14 Thread Michael Ellerman
From: Christophe Leroy Most probe functions that do not use the 'compatible' string do nothing else than checking whether the machine is compatible with one of the strings in a NULL terminated table of strings. Define that table of strings in ppc_md structure and check it directly from

[PATCH v2 3/5] of: Reimplement of_machine_is_compatible() using of_machine_compatible_match()

2023-12-14 Thread Michael Ellerman
From: Christophe Leroy of_machine_compatible_match() works with a table of strings. of_machine_is_compatible() is a simplier version with only one string. Re-implement of_machine_is_compatible() by setting a table of strings with a single string then using of_machine_compatible_match().

[PATCH v2 2/5] of: Change of_machine_is_compatible() to return bool

2023-12-14 Thread Michael Ellerman
of_machine_is_compatible() currently returns a positive integer if it finds a match. However none of the callers ever check the value, they all treat it as a true/false. So change of_machine_is_compatible() to return bool, which will allow the implementation to be changed in a subsequent patch.

[PATCH v2 1/5] of: Add of_machine_compatible_match()

2023-12-14 Thread Michael Ellerman
We have of_machine_is_compatible() to check if a machine is compatible with a single compatible string. However some code is able to support multiple compatible boards, and so wants to check for one of many compatible strings. So add of_machine_compatible_match() which takes a NULL terminated

Re: [PATCH] powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

2023-12-14 Thread Aneesh Kumar K . V
Gaurav Batra writes: > When kdump kernel tries to copy dump data over SR-IOV, LPAR panics due to > NULL pointer execption. > > Here is the complete stack > > [ 19.944378] Kernel attempted to read user page (0) - exploit attempt? > (uid: 0)^M > [ 19.944388] BUG: Kernel NULL pointer

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread Christophe Leroy
Le 13/12/2023 à 23:30, George Stark a écrit : > [Vous ne recevez pas souvent de courriers de gnst...@salutedevices.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Using of devm API leads to a certain order of releasing resources. > So all

Re: [PATCH 13/13] powerpc: Enable KMSAN on powerpc

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > Enable KMSAN in the Kconfig. > > Signed-off-by: Nicholas Miehlbradt > --- > arch/powerpc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index e33e3250c478..71cc7d2a0a72

Re: [PATCH 12/13] powerpc/string: Add KMSAN support

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > KMSAN expects functions __mem{set,cpy,move} so add aliases pointing to > the respective functions. > > Disable use of architecture specific memset{16,32,64} to ensure that > metadata is correctly updated and strn{cpy,cmp} and mem{chr,cmp}

Re: [PATCH 11/13] powerpc: Implement architecture specific KMSAN interface

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > arch_kmsan_get_meta_or_null finds the metadata addresses for addresses > in the ioremap region which is mapped separately on powerpc. > > kmsan_vir_addr_valid is the same as virt_addr_valid except excludes the > check that addr is less than

Re: [PATCH 10/13] powerpc: Define KMSAN metadata address ranges for vmalloc and ioremap

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > Splits the vmalloc region into four. The first quarter is the new > vmalloc region, the second is used to store shadow metadata and the > third is used to store origin metadata. The fourth quarter is unused. > > Do the same for the ioremap

Re: [PATCH v3 03/11] devm-helpers: introduce devm_mutex_init

2023-12-14 Thread Hans de Goede
Hi, On 12/13/23 23:38, Andy Shevchenko wrote: > On Thu, Dec 14, 2023 at 12:36 AM Andy Shevchenko > wrote: >> On Thu, Dec 14, 2023 at 12:30 AM George Stark >> wrote: >>> >>> Using of devm API leads to a certain order of releasing resources. >>> So all dependent resources which are not

Re: [PATCH 09/13] powerpc: Disable KMSAN checks on functions which walk the stack

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > Functions which walk the stack read parts of the stack which cannot be > instrumented by KMSAN e.g. the backchain. Disable KMSAN sanitization of > these functions to prevent false positives. Do other architectures have to do it as well ? I

Re: [PATCH 04/13] powerpc: Disable CONFIG_DCACHE_WORD_ACCESS when KMSAN is enabled

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > Word sized accesses may read uninitialized data when optimizing loads. > Disable this optimization when KMSAN is enabled to prevent false > positives. > > Signed-off-by: Nicholas Miehlbradt > --- > arch/powerpc/Kconfig | 2 +- > 1 file

Re: [PATCH 02/13] hvc: Fix use of uninitialized array in udbg_hvc_putc

2023-12-14 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > All elements of bounce_buffer are eventually read and passed to the > hypervisor so it should probably be fully initialized. should or shall ? > > Signed-off-by: Nicholas Miehlbradt Should be a Fixed: tag ? > --- >

[PATCH v3 08/11] leds: nic78bx: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v3 09/11] leds: mlxreg: use devm_mutex_init for mutex initializtion

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses mutex which was destroyed already in module's

[PATCH v3 10/11] leds: an30259a: use devm_mutext_init for mutext initialization

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses mutex which was destroyed already in module's

[PATCH v3 06/11] leds: lp3952: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v3 05/11] leds: aw200xx: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v3 07/11] leds: lm3532: use devm API to cleanup module's resources

2023-12-14 Thread George Stark
In this driver LEDs are registered using devm_led_classdev_register() so they are automatically unregistered after module's remove() is done. led_classdev_unregister() calls module's led_set_brightness() to turn off the LEDs and that callback uses resources which were destroyed already in module's

[PATCH v3 11/11] leds: powernv: use LED_RETAIN_AT_SHUTDOWN flag for leds

2023-12-14 Thread George Stark
This driver wants to keep its LEDs state after module is removed and implemented it in its own way. LED subsystem supports dedicated flag LED_RETAIN_AT_SHUTDOWN for the same purpose so use the flag instead of custom implementation. Signed-off-by: George Stark --- drivers/leds/leds-powernv.c |