[PATCH v3] soc: fsl: dpio: Get the cpumask through cpumask_of(cpu)

2020-10-19 Thread Yi Wang
ion ]--- Fix it by using 'cpumask_of(cpu)' to get the cpumask. Signed-off-by: Hao Si Signed-off-by: Lin Chen Signed-off-by: Yi Wang --- v3: Use cpumask_of(cpu) to get the pre-defined cpumask in the static cpu_bit_bitmap array. v2: Place 'cpumask_t mask' in the driver's private data and wh

[PATCH v2] soc: fsl: dpio: Change 'cpumask_t mask' to the driver's private data

2020-10-16 Thread Yi Wang
ion ]--- Fix it by changing 'cpumask_t mask' to the driver's private data. Signed-off-by: Hao Si Signed-off-by: Lin Chen Signed-off-by: Yi Wang --- v2: Place 'cpumask_t mask' in the driver's private data and while at it, rename it to cpu_mask. drivers/soc/fsl/dpio/dpio-driver.c | 9 + incl

[PATCH] soc: fsl: dpio: Change 'cpumask_t mask' to global variable

2020-10-14 Thread Yi Wang
ion ]--- Fix it by changing 'cpumask_t mask' to global variable. Signed-off-by: Hao Si Signed-off-by: Lin Chen Signed-off-by: Yi Wang --- drivers/soc/fsl/dpio/dpio-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/d

[PATCH] ASoC: fsl: mpc8610_hpcd: Add missing of_node_put()

2020-07-07 Thread Yi Wang
From: Liao Pingfang After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called. Signed-off-by: Liao Pingfang --- sound/soc/fsl/mpc8610_hpcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/mpc8610_hpcd.c

[PATCH] powerpc/nvram: Replace kmalloc with kzalloc in the error message

2020-05-28 Thread Yi Wang
From: Liao Pingfang Use kzalloc instead of kmalloc in the error message according to the previous kzalloc() call. Signed-off-by: Liao Pingfang --- arch/powerpc/kernel/nvram_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/nvram_64.c

Re: [PATCH RESEND v4] reboot: support offline CPUs before reboot

2020-01-16 Thread Hsin-Yi Wang
On Fri, Jan 17, 2020 at 12:16 PM Rob Landley wrote: > > On 1/14/20 5:06 AM, Hsin-Yi Wang wrote: > > This patch adds a config ARCH_OFFLINE_CPUS_ON_REBOOT, which would offline > > cpus in > > migrate_to_reboot_cpu(). If non reboot cpus are all offlined here, the loop >

Re: [PATCH v5] reboot: support offline CPUs before reboot

2020-01-16 Thread Hsin-Yi Wang
On Wed, Jan 15, 2020 at 7:41 PM Sudeep Holla wrote: > > On Wed, Jan 15, 2020 at 02:34:10PM +0800, Hsin-Yi Wang wrote: > > Currently system reboots uses architecture specific codes (smp_send_stop) > > to offline non reboot CPUs. Most architecture's implementation is looping &

Re: [PATCH v5] reboot: support offline CPUs before reboot

2020-01-16 Thread Hsin-Yi Wang
On Thu, Jan 16, 2020 at 8:30 AM Thomas Gleixner wrote: > > Hsin-Yi Wang writes: > > > Currently system reboots uses architecture specific codes (smp_send_stop) > > to offline non reboot CPUs. Most architecture's implementation is looping > > through all non rebo

Re: [PATCH v5] reboot: support offline CPUs before reboot

2020-01-15 Thread Hsin-Yi Wang
On Wed, Jan 15, 2020 at 5:49 PM Rafael J. Wysocki wrote: > > On Wed, Jan 15, 2020 at 7:35 AM Hsin-Yi Wang wrote: > > > > Currently system reboots uses architecture specific codes (smp_send_stop) > > to offline non reboot CPUs. Most architecture's implementation is loo

[PATCH v5] reboot: support offline CPUs before reboot

2020-01-14 Thread Hsin-Yi Wang
online cpus would be an empty loop. If architecture don't enable this config, or some cpus somehow fails to offline, it would fallback to ipi function. Opt in this config for architectures that support CONFIG_HOTPLUG_CPU. Signed-off-by: Hsin-Yi Wang --- Change from v4: * fix a few nits: naming

[PATCH RESEND v4] reboot: support offline CPUs before reboot

2020-01-14 Thread Hsin-Yi Wang
online cpus would be an empty loop. If architecture don't enable this config, or some cpus somehow fails to offline, it would fallback to ipi function. Opt in this config for architectures that support CONFIG_HOTPLUG_CPU. Signed-off-by: Hsin-Yi Wang --- Resend v4: * Cc more people and mailing lists

[PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-11-22 Thread Yi Wang
From: Wen Yang Currently there are 2 problems with the ucc_of_parse_tdm function: 1,a possible null pointer dereference in ucc_of_parse_tdm, detected by the semantic patch deref_null.cocci, with the following warning: drivers/soc/fsl/qe/qe_tdm.c:177:21-24: ERROR: pdev is NULL but dereferenced.