Re: [RFC, WIP, v4 06/11] media: vidtv: add wrappers for memcpy and memset

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 08:40:38 +0200 Mauro Carvalho Chehab escreveu: > Em Sat, 2 May 2020 00:22:11 -0300 > "Daniel W. S. Almeida" escreveu: > > > +u32 vidtv_memcpy(void *to, > > +const void *from, > > +size_t len, > > +u32 offset, > > +u32 buf_sz)

答复: [PATCH] [v3] kvm: x86: support APERF/MPERF registers

2020-05-03 Thread Li,Rongqing
> -邮件原件- > 发件人: Wei Huang [mailto:wei.hua...@amd.com] > 发送时间: 2020年5月2日 5:31 > 收件人: Li,Rongqing > 抄送: linux-kernel@vger.kernel.org; k...@vger.kernel.org; x...@kernel.org; > h...@zytor.com; b...@alien8.de; mi...@redhat.com; t...@linutronix.de; > jmatt...@google.com; wanpen...@tencent.com;

Re: [PATCH 5.6 000/106] 5.6.9-rc1 review

2020-05-03 Thread Greg Kroah-Hartman
On Sat, May 02, 2020 at 05:14:08PM -0600, shuah wrote: > On 5/1/20 7:22 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.9 release. > > There are 106 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with th

Possible memory leak in unxz()

2020-05-03 Thread Dongyang Zhan
Hi, I am a security researcher, my name is Dongyang Zhan. I found a potential bug. I hope you can help me to confirm it. Thank you. Possible memory leak in Linux 4.10.17. The function unxz() in /lib/decompress_unxz.c forgets to free the pointer 'in', when the statement if (fill == NULL && flus

Re: [PATCH] net: usb: qmi_wwan: add support for DW5816e

2020-05-03 Thread Bjørn Mork
Matt Jolly writes: > Add support for Dell Wireless 5816e to drivers/net/usb/qmi_wwan.c > > Signed-off-by: Matt Jolly > --- > drivers/net/usb/qmi_wwan.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c > index 6c738a271257..4bb8552a

Re: [PATCH] staging: wilc1000: Increase the size of wid_list array

2020-05-03 Thread Oscar Carter
On Fri, May 01, 2020 at 06:26:10PM +, ajay.kat...@microchip.com wrote: > > On 01/05/20 10:32 pm, Oscar Carter wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > Increase by one the size of wid_list array as index variable can reach

Possible null pointer dereference in smp_init_package_map()

2020-05-03 Thread Dongyang Zhan
Hi, I am a security researcher, my name is Dongyang Zhan. I found a potential bug. I hope you can help me to confirm it. Thank you. In Linux 4.10.17, smp_init_package_map() in /arch/x86/kernel/smpboot.c does not handle the failure of memory allocation, which may cause a null pointer dereference

Re: [PATCH] staging: gasket: Check the return value of gasket_get_bar_index()

2020-05-03 Thread Greg Kroah-Hartman
On Sat, May 02, 2020 at 05:59:18PM -0400, Richard Yeh wrote: > Hi, as a new maintainer, I thought I would try to handle this one. Great, as a start: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most an

Re: [RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:13 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > PSI packets contain general information about a MPEG Transport Stream. > A PSI generator is needed so userspace apps can retrieve information > about the Transport Stream and eventually tune i

[PATCH v2] staging: wilc1000: Increase the size of wid_list array

2020-05-03 Thread Oscar Carter
Increase by one the size of wid_list array as index variable can reach a value of 5. If this happens, an out-of-bounds access is performed. Addresses-Coverity-ID: 1451981 ("Out-of-bounds access") Fixes: f5a3cb90b802d ("staging: wilc1000: add passive scan support") Signed-off-by: Oscar Carter ---

Re: [PATCH] pinctrl: qcom: Add affinity callbacks to msmgpio IRQ chip

2020-05-03 Thread Stephen Boyd
Quoting Maulik Shah (2020-04-30 23:30:17) > From: Venkata Narendra Kumar Gutta > > Wakeup capable GPIO IRQs routed via PDC are not being migrated when a CPU > is hotplugged. Add affinity callbacks to msmgpio IRQ chip to update the > affinity of wakeup capable IRQs. > > Fixes: e35a6ae0eb3a ("pinc

Re: [PATCH] arm64: dts: qcom: sc7180: Add "no-map" to cmd_db reserved area

2020-05-03 Thread Stephen Boyd
Quoting Douglas Anderson (2020-04-24 08:51:29) > The example in the bindings and all the current users (except sc7180) > have "no-map". I'm pretty sure we need it on sc7180 too. Add it. > > Fixes: e0abc5eb526e ("arm64: dts: qcom: sc7180: Add cmd_db reserved area") > Signed-off-by: Douglas Anders

RE: [PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-03 Thread Avri Altman
> - if (!(hba->dev_info.b_wb_buffer_type && > - hba->dev_info.d_wb_alloc_units)) > - goto wb_disabled; > + if (hba->dev_info.b_wb_buffer_type == WB_BUF_MODE_SHARED) { > + hba->dev_info.d_wb_alloc_units = > + get_unaligned_be32(des

Re: [RFC, WIP, v4 09/11] media: vidtv: implement a PES packetizer

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:14 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Implement the PES logic to convert encoder data into MPEG TS packets. > These TS packets can then be fed into a TS multiplexer and eventually > into userspace. > > Signed-off-by: Daniel W. S.

[PATCH] sched/fair: Fix nohz.next_balance update

2020-05-03 Thread Peng Liu
commit c5afb6a87f23 ("sched/fair: Fix nohz.next_balance update") During idle load balance, this_cpu(ilb) do load balance for the other idle CPUs, also gather the earliest (nohz.)next_balance. Since commit: 'b7031a02ec75 ("sched/fair: Add NOHZ_STATS_KICK")' We update nohz.next_balance like this:

Re: [PATCH v6 5/5] iio: vcnl4000: Add buffer support for VCNL4010/20.

2020-05-03 Thread Jonathan Cameron
On Mon, 27 Apr 2020 11:55:59 +0200 Mathieu Othacehe wrote: > The VCNL4010 and VCNL4020 chips are able to raise interrupts on data ready. > Use it to provide triggered buffer support for proximity data. > > Those two chips also provide ambient light data. However, they are sampled > at different

Re: [RFC, WIP, v4 10/11] media: vidtv: Implement a SMPTE 302M encoder

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:15 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Implement a S302M encoder to make it possible to insert PCM audio data > in the generated MPEG Transport Stream. > > This shall enable passing an audio signal into userspace so it can be > de

Re: [PATCH v6 1/5] iio: vcnl4000: Fix i2c swapped word reading.

2020-05-03 Thread Jonathan Cameron
On Mon, 27 Apr 2020 11:55:55 +0200 Mathieu Othacehe wrote: > The bytes returned by the i2c reading need to be swapped > unconditionally. Otherwise, on be16 platforms, an incorrect value will be > returned. Missing sign off so I can't apply. Also, please add an appropriate fixes tag. Once that'

Re: [PATCH V3 4/4] iio: adc: Update error checks and debug prints

2020-05-03 Thread Jonathan Cameron
On Mon, 27 Apr 2020 18:54:05 +0530 Jishnu Prakash wrote: > Change pr_err/pr_debug statements to dev_err/dev_dbg for > increased clarity. Also clean up some return value checks. > > Signed-off-by: Jishnu Prakash I'm happy with the whole series. Just need a devicetree review before applying. T

Re: [PATCH v3 6/6] loop: be paranoid on exit and prevent new additions / removals

2020-05-03 Thread Luis Chamberlain
On Wed, Apr 29, 2020 at 11:50:34AM +0200, Greg KH wrote: > On Wed, Apr 29, 2020 at 07:46:27AM +, Luis Chamberlain wrote: > > Be pedantic on removal as well and hold the mutex. > > This should prevent uses of addition while we exit. > > > > Signed-off-by: Luis Chamberlain > > --- > > drivers/

Re: [RFC, WIP, v4 11/11] media: vidtv: Add a MPEG Transport Stream Multiplexer

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:16 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Add a MPEG Transport Stream multiplexer responsible for polling encoders, > interleaving packets, padding the resulting stream with NULL packets if > necessary and then delivering the resultin

Re: [PATCH 2/2] staging: vt6655: fix LONG_LINE warning

2020-05-03 Thread Matej Dujava
On Sat, May 02, 2020 at 10:11:43PM -0700, Joe Perches wrote: On Sun, 2020-05-03 at 00:16 +0200, Matej Dujava wrote: This patch will fix LONG_LINE error from checkpatch, by createing temporary variable so call to the function is not in if/else block. [] diff --git a/drivers/staging/vt6655/rxtx.

Re: [GIT PULL] Ressurect the atomisp staging driver

2020-05-03 Thread bosconovic
Hi ! Thanks for this, it is very appreciated !! I have a bay trail 2in1 (namely, the acer aspire swtich 10 sw5-012, with an OV2722 module, so supported by the driver) on top of which I run android-x86-q so I would be able to help a bit with testing the driver. I tried to pull in your changes o

Re: [PATCH 0/4] Introduce the Counter character device interface

2020-05-03 Thread Greg Kroah-Hartman
On Sat, May 02, 2020 at 05:55:36PM +0100, Jonathan Cameron wrote: > On Fri, 1 May 2020 11:46:10 -0400 > William Breathitt Gray wrote: > > > On Thu, Apr 30, 2020 at 10:13:45PM +0200, Alexandre Belloni wrote: > > > Hi, > > > > > > On 29/04/2020 14:11:34-0400, William Breathitt Gray wrote: > > >

[PATCH v7 2/5] iio: vcnl4000: Factorize data reading and writing.

2020-05-03 Thread Mathieu Othacehe
Factorize data reading in vcnl4000_measure into a vcnl4000_read_data function. Also add a vcnl4000_write_data function. Signed-off-by: Mathieu Othacehe --- drivers/iio/light/vcnl4000.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light

[PATCH v7 1/5] iio: vcnl4000: Fix i2c swapped word reading.

2020-05-03 Thread Mathieu Othacehe
The bytes returned by the i2c reading need to be swapped unconditionally. Otherwise, on be16 platforms, an incorrect value will be returned. Fixes: 62a1efb9f868 ("iio: add vcnl4000 combined ALS and proximity sensor") Signed-off-by: Mathieu Othacehe --- drivers/iio/light/vcnl4000.c | 6 ++ 1

[PATCH v7 5/5] iio: vcnl4000: Add buffer support for VCNL4010/20.

2020-05-03 Thread Mathieu Othacehe
The VCNL4010 and VCNL4020 chips are able to raise interrupts on data ready. Use it to provide triggered buffer support for proximity data. Those two chips also provide ambient light data. However, they are sampled at different rate than proximity data. As this is not handled by the IIO framework f

[PATCH v7 0/5] iio: vcnl: Add interrupts support for VCNL4010/20.

2020-05-03 Thread Mathieu Othacehe
Hello, Here's a v7 fixing Jonathan remarks. Thanks, Mathieu Changes from v6: * Add a missing Signed-off" tag in the first commit. * Clean exit pattern in vcnl4010_buffer_postenable. Changes from v5: * Fix i2c measure reads that are broken on the current driver for be16 platforms. * Use read_av

[PATCH v7 3/5] iio: vcnl4000: Add event support for VCNL4010/20.

2020-05-03 Thread Mathieu Othacehe
The VCNL4010 and VCNL4020 chips are able to raise interrupts on proximity threshold events. Add support for threshold rising and falling events for those two chips. Signed-off-by: Mathieu Othacehe --- drivers/iio/light/vcnl4000.c | 454 ++- 1 file changed, 392 ins

[PATCH v7 4/5] iio: vcnl4000: Add sampling frequency support for VCNL4010/20.

2020-05-03 Thread Mathieu Othacehe
Add sampling frequency support for proximity data on VCNL4010 and VCNL4020 chips. Signed-off-by: Mathieu Othacehe --- drivers/iio/light/vcnl4000.c | 118 ++- 1 file changed, 117 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/

Re: [PATCH v6 5/5] iio: vcnl4000: Add buffer support for VCNL4010/20.

2020-05-03 Thread Mathieu Othacehe
Hi Jonathan, > One odd bit of code structure. If you didn't need to respin to fix > patch 1's missing sign off I'd just fix it, but pleased tidy it up for v7. Ok, fixed that in v7! Thanks, Mathieu

Re: [RFC, WIP, v4 07/11] media: vidtv: add MPEG TS common code

2020-05-03 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 19:22:06 -0300 "Daniel W. S. Almeida" escreveu: > Hi Mauro, thanks for reviewing this! > > > Em Sat, 2 May 2020 00:22:12 -0300 > > "Daniel W. S. Almeida" escreveu: > > > >> From: "Daniel W. S. Almeida" > >> > >> Add code to work with MPEG TS packets, such as TS head

Re: [GIT PULL] Ressurect the atomisp staging driver

2020-05-03 Thread Mauro Carvalho Chehab
Hi Francescodario, Em Sun, 3 May 2020 09:19:55 + Francescodario Cuzzocrea escreveu: > Hi ! > > Thanks for this, it is very appreciated !! > > I have a bay trail 2in1 (namely, the acer aspire swtich 10 sw5-012, > with an OV2722 module, so supported by the driver) on top of which I > run a

Re: [PATCH v7 0/5] KUnit-KASAN Integration

2020-05-03 Thread Alan Maguire
On Thu, 23 Apr 2020, David Gow wrote: > This patchset contains everything needed to integrate KASAN and KUnit. > > KUnit will be able to: > (1) Fail tests when an unexpected KASAN error occurs > (2) Pass tests when an expected KASAN error occurs > > Convert KASAN tests to KUnit with the exceptio

Re: [PATCH] epoll: ensure ep_poll() doesn't miss wakeup events

2020-05-03 Thread Roman Penyaev
On 2020-05-02 00:09, Jason Baron wrote: On 5/1/20 5:02 PM, Roman Penyaev wrote: Hi Jason, That is indeed a nice catch. Seems we need smp_rmb() pair between list_empty_careful(&rp->rdllist) and READ_ONCE(ep->ovflist) for ep_events_available(), do we? Hi Roman, Good point, even if we order

[PATCH] x86/tlb/uv: Add a forward declaration for struct flush_tlb_info

2020-05-03 Thread Borislav Petkov
From: Borislav Petkov ... to fix these build warnings: In file included from ./arch/x86/include/asm/uv/uv_hub.h:22, from drivers/misc/sgi-gru/grukdump.c:16: ./arch/x86/include/asm/uv/uv.h:39:21: warning: ‘struct flush_tlb_info’ declared \ inside parameter list will n

Re: [PATCH v3 1/6] block: revert back to synchronous request_queue removal

2020-05-03 Thread Matthew Wilcox
On Fri, May 01, 2020 at 05:22:12PM -0700, Bart Van Assche wrote: > > expected behaviour before and it now fails as the device is still present >^ >behavior? That's UK/US spelling. We do not "correct" one to the other. Documentation/doc-guide/contributing.rst: - Bo

Re: [PATCH 3/3] iio: adc: ti_am335x_adc: convert rest of probe to devm_ functions

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 14:14:30 +0300 Alexandru Ardelean wrote: > This change converts the rest of the probe to use devm_ functions. > Consequently this allows us to remove the remove hook. > > It tries to preserve the initial order or probe & remove. > The devm_add_action() call hooks the cleanup

RE: [PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-03 Thread Stanley Chu
Hi Avri, On Sun, 2020-05-03 at 08:00 +, Avri Altman wrote: > > > - if (!(hba->dev_info.b_wb_buffer_type && > > - hba->dev_info.d_wb_alloc_units)) > > - goto wb_disabled; > > + if (hba->dev_info.b_wb_buffer_type == WB_BUF_MODE_SHARED) { > > +

[PATCH] usb: gadget: audio: Fix a missing error return value in audio_bind()

2020-05-03 Thread Christophe JAILLET
If 'usb_otg_descriptor_alloc()' fails, we must return an error code, not 0. Fixes: 56023ce0fd70 ("usb: gadget: audio: allocate and init otg descriptor by otg capabilities") Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/legacy/audio.c | 4 +++- 1 file changed, 3 insertions(+), 1 delet

Re: [PATCH v3 01/11] iio: light: cm32181: Switch to new style i2c-driver probe function

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 19:29:13 +0200 Hans de Goede wrote: > Switch to the new style i2c-driver probe_new probe function and drop the > unnecessary i2c_device_id table (we do not have any old style board files > using this). > > This is a preparation patch for adding ACPI binding support. > > Sign

[PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-05-03 Thread Miquel Raynal
The MAX7313 chip is fully compatible with the PCA9535 on its basic functions but can also manage the intensity on each of its ports with PWM. Each output is independent and may be tuned with 16 values (4 bits per output). The period is always 32kHz, only the duty-cycle may be changed. One can use a

Re: [PATCH 1/6] iio: chemical: scd30: add core driver

2020-05-03 Thread Tomasz Duszynski
On Sat, May 02, 2020 at 05:37:38PM +0100, Jonathan Cameron wrote: > On Tue, 28 Apr 2020 09:51:01 +0200 > Tomasz Duszynski wrote: > > > On Sat, Apr 25, 2020 at 07:55:34PM +0100, Jonathan Cameron wrote: > > > On Wed, 22 Apr 2020 16:11:30 +0200 > > > Tomasz Duszynski wrote: > > > > > > > Add Sensiri

Re: [PATCH v3 04/11] iio: light: cm32181: Add support for the CM3218

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 19:29:16 +0200 Hans de Goede wrote: > Add support for the CM3218 which is an older version of the > CM32181. > > This is based on a newer version of cm32181.c, with a copyright of: > > * Copyright (C) 2014 Capella Microsystems Inc. > * Author: Kevin Tsai > * > * This pr

Re: [PATCH v3 05/11] iio: light: cm32181: Clean up the probe function a bit

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 19:29:17 +0200 Hans de Goede wrote: > 3 small cleanups to cm32181_probe(): > > 1. Do not log an error when we fail to allocate memory (as a general > rule drivers do not log errors for this as the kernel will already > have complained loudly that it could not alloc the mem).

Re: [PATCH v3 06/11] iio: light: cm32181: Handle CM3218 ACPI devices with 2 I2C resources

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 19:29:18 +0200 Hans de Goede wrote: > Some ACPI systems list 2 I2C resources for the CM3218 sensor. On these > systems the first I2cSerialBus ACPI-resource points to the SMBus Alert > Response Address (ARA, 0x0c) and the second I2cSerialBus ACPI-resource > points to the actual

Re: [PATCH v3 10/11] iio: light: cm32181: Add support for parsing CPM0 and CPM1 ACPI tables

2020-05-03 Thread Jonathan Cameron
On Tue, 28 Apr 2020 19:29:22 +0200 Hans de Goede wrote: > On ACPI based systems the CPLM3218 ACPI device node describing the > CM3218[1] sensor typically will have some extra tables with register > init values for initializing the sensor and calibration info. > > This is based on a newer version

[tip: x86/urgent] x86/unwind/orc: Move ORC sorting variables under !CONFIG_MODULES

2020-05-03 Thread tip-bot2 for Josh Poimboeuf
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: fb9cbbc895eb6e986dc90c928a35c793d75f435a Gitweb: https://git.kernel.org/tip/fb9cbbc895eb6e986dc90c928a35c793d75f435a Author:Josh Poimboeuf AuthorDate:Tue, 28 Apr 2020 02:16:40 -05:00 Committ

Re: [PATCH] nfp: abm: fix a memory leak bug

2020-05-03 Thread Markus Elfring
… > Fix this issue by adding nfp_nsp_close(nsp) in the error path. How do you think about a wording variant like the following? Subject: [PATCH v2] nfp: abm: Fix incomplete release of system resources in nfp_abm_vnic_set_mac() Change description: … Thus add a call of the function

[PATCH v5 3/8] scsi: ufs: export ufs_fixup_device_setup() function

2020-05-03 Thread Stanley Chu
Export ufs_fixup_device_setup() to allow vendors to re-use it for fixing device quriks on specified UFS hosts. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 7 --- drivers/scsi/ufs/ufshcd.h | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/ufs

[PATCH v5 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-03 Thread Stanley Chu
According to UFS specification, there are two WriteBooster mode of operations: "LU dedicated buffer" mode and "shared buffer" mode. In the "LU dedicated buffer" mode, the WriteBooster Buffer is dedicated to a logical unit. If the device supports the "LU dedicated buffer" mode, this mode is configu

[PATCH v5 7/8] scsi: ufs-mediatek: enable WriteBooster capability

2020-05-03 Thread Stanley Chu
Enable WriteBooster capability on MediaTek UFS platforms. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs-mediatek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index ce7ba529e613..d503a9d8285

[PATCH v5 2/8] scsi: ufs: introduce fixup_dev_quirks vops

2020-05-03 Thread Stanley Chu
Some UFS deivces may have required device quirks or have non-standard features which are enabled only on specified UFS hosts or for special customers. To not "pollute" common device quirk list, i.e., ufs_fixups table for those devices mentioned above, introduce "fixup_dev_quirks" vops to allow ven

[PATCH v5 8/8] scsi: ufs: cleanup WriteBooster feature

2020-05-03 Thread Stanley Chu
Small cleanup as below items, 1. Use ufshcd_is_wb_allowed() directly instead of ufshcd_wb_sup() since ufshcd_wb_sup() just returns the result of ufshcd_is_wb_allowed(). 2. In ufshcd_suspend(), "else if (!ufshcd_is_runtime_pm(pm_op)) can be simplified to "else" since both have the same me

[PATCH v5 5/8] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-05-03 Thread Stanley Chu
For preparation of LU Dedicated buffer mode support on WriteBooster feature, "index" parameter shall be added and allowed to be specified by callers. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo Reviewed-by: Avri Altman Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 2 +- driver

[PATCH v5 1/8] scsi: ufs: enable WriteBooster on some pre-3.1 UFS devices

2020-05-03 Thread Stanley Chu
WriteBooster feature can be supported by some pre-3.1 UFS devices by upgrading firmware. To enable WriteBooster feature in such devices, introduce a device quirk to relax the entrance condition of ufshcd_wb_probe() to allow host driver to check those devices' WriteBooster capability. WriteBooster

[PATCH v5 4/8] scsi: ufs-mediatek: add fixup_dev_quirks vops

2020-05-03 Thread Stanley Chu
Add fixup_dev_quirk vops in MediaTek UFS platforms and provide an initial vendor-specific device quirk table. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufs-mediatek.c

[PATCH v5 0/8] scsi: ufs: support LU Dedicated buffer mode for WriteBooster

2020-05-03 Thread Stanley Chu
Hi, This patchset adds LU dedicated buffer mode support for WriteBooster. In the meanwhile, enable WriteBooster capability on MediaTek UFS platforms. v4 -> v5: - Check LUN ID for available WriteBooster buffer only from 0 to 7 according to spec (Avri Altman) - Skip checking any possible errors

Re: [PATCH] staging: iio: ad2s1210: Fix SPI reading

2020-05-03 Thread Jonathan Cameron
On Wed, 29 Apr 2020 10:21:29 +0300 Alexandru Ardelean wrote: > From: Dragos Bogdan > > If the serial interface is used, the 8-bit address should be latched using > the rising edge of the WR/FSYNC signal. > > This basically means that a CS change is required between the first byte > sent, and t

Re: [PATCH v3 6/7] ASoC: sun4i-i2s: Adjust regmap settings

2020-05-03 Thread Clément Péron
Hi, On Mon, 27 Apr 2020 at 13:03, Chen-Yu Tsai wrote: > > On Sun, Apr 26, 2020 at 6:41 PM Clément Péron wrote: > > > > From: Marcus Cooper > > > > Bypass the regmap cache when flushing or reading the i2s FIFOs. > > > > Signed-off-by: Marcus Cooper > > Signed-off-by: Clément Péron > > Acked-by

Re: [PATCH] iio: adc: ad7768-1: Fix channel endian spec

2020-05-03 Thread Jonathan Cameron
On Wed, 29 Apr 2020 13:45:35 +0300 Sergiu Cuciurean wrote: > This change removes the endian description from the iio channel spec. > In this way, the default (IIO_CPU) endian will be used, matching the > be32_to_cpu() conversion from ad7768_spi_reg_read(). > > Fixes: 8a15c73a9bcfe ("iio: adc: Ad

Re: [PATCH v2] iio: adc: stm32-adc: fix runtime autosuspend delay when slow polling

2020-05-03 Thread Jonathan Cameron
On Wed, 29 Apr 2020 14:29:08 +0200 Fabrice Gasnier wrote: > When the ADC is runtime suspended and starting a conversion, the stm32-adc > driver calls pm_runtime_get_sync() that gets cascaded to the parent > (e.g. runtime resume of stm32-adc-core driver). This also kicks the > autosuspend delay (e

Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format

2020-05-03 Thread Wang YanQing
On Sat, May 02, 2020 at 09:40:24PM +0200, Markus Elfring wrote: > > > > + $diagnostics .= "Missing a pair of parentheses > > '()' or a pair of double quotation marks (\"\").\n"; > > Can such a message trigger any more thoughts and development ideas? No, I don't think

[PATCH v2] checkpatch: fix can't check for too long invalid commit id

2020-05-03 Thread Wang YanQing
The current UNKNOWN_COMMIT_ID doesn't check for 41+ length commit id, and although GIT_COMMIT_ID will check for 41+ length commit id, but it willn't warn anything about it due to 41+ length commit will never be defined. This patch moves the unknown commit id check for normal commit description to

Re: [PATCH v2 3/4] iio: accel: wsen-itds accel documentation

2020-05-03 Thread Jonathan Cameron
On Wed, 29 Apr 2020 15:39:42 +0200 Saravanan Sekar wrote: > Add documentation about device operating mode and output data range > supported according to operating mode > > Signed-off-by: Saravanan Sekar > --- > .../ABI/testing/sysfs-bus-iio-wsen-itds | 23 +++ > 1 file ch

[PATCH v4 0/6] DVFS for IO devices on sdm845 and sc7180

2020-05-03 Thread Rajendra Nayak
Changes in v4: 1. Fixed all review feedback on v3 2. Dropped the dts patches, will post as a seperate series once driver changes are reviewed and merged. The driver changes without DT updates to include OPP tables will have zero functional change. 3. Dropped the mmc/sdhc patch, which is a standalon

[PATCH v4 1/6] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-05-03 Thread Rajendra Nayak
geni serial needs to express a perforamnce state requirement on CX powerdomain depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke

[PATCH v4 3/6] drm/msm/dpu: Use OPP API to set clk/perf state

2020-05-03 Thread Rajendra Nayak
On some qualcomm platforms DPU needs to express a performance state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Rob Clark Revie

[PATCH v4 2/6] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-05-03 Thread Rajendra Nayak
geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Cc: Mark Brown

[PATCH v4 4/6] drm/msm: dsi: Use OPP API to set clk/perf state

2020-05-03 Thread Rajendra Nayak
On SDM845 DSI needs to express a perforamnce state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Rob Clark Cc: Sean Paul Cc: dri-de...@li

Re: [PATCH] rtc: mc13xxx: fix a double-unlock issue

2020-05-03 Thread Markus Elfring
> … To fix this problem, > we need to call mc13xxx_lock() again in this error path. How do you think about a wording variant like the following? Change description: … Thus add a call of the function “mc13xxx_lock” in an if branch for the completion of the exception handling. Would y

[PATCH v4 6/6] spi: spi-qcom-qspi: Use OPP API to set clk/perf state

2020-05-03 Thread Rajendra Nayak
QSPI needs to vote on a performance state of a power domain depending on the clock rate. Add support for it by specifying the perf state/clock rate as an OPP table in device tree. Signed-off-by: Rajendra Nayak Cc: Mark Brown Cc: Alok Chauhan Cc: Akash Asthana Cc: linux-...@vger.kernel.org ---

[PATCH v4 5/6] media: venus: core: Add support for opp tables/perf voting

2020-05-03 Thread Rajendra Nayak
Add support to add OPP tables and perf voting on the OPP powerdomain. This is needed so venus votes on the corresponding performance state for the OPP powerdomain along with setting the core clock rate. Signed-off-by: Rajendra Nayak Cc: Stanimir Varbanov Cc: linux-me...@vger.kernel.org --- driv

[PATCH] i2c: uniphier: Remove superfluous error message in uniphier_i2c_probe()

2020-05-03 Thread Aishwarya Ramakrishnan
The function platform_get_irq can log an error by itself. This omit a redundant message for exception handling in the calling function. Suggested by Coccinelle. Signed-off-by: Aishwarya Ramakrishnan --- drivers/i2c/busses/i2c-uniphier.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

[PATCH 2/2] clk: at91: pmc: decrement node's refcount

2020-05-03 Thread Claudiu Beznea
of_find_matching_node() increment node's refcount. Call of_node_put() to decrement it after it was used. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/pmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index bf0570e66fc1..e164069c81bd 1

[PATCH 1/2] clk: at91: pmc: do not continue if compatible not located

2020-05-03 Thread Claudiu Beznea
pmc_register_ops() is called for all AT91 devices. Return -ENODEV in case of_find_matching_node() returns NULL. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/pmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index b71515acdec1..bf057

[git pull] IOMMU Fixes for Linux v5.7-rc3

2020-05-03 Thread Joerg Roedel
Hi Linus, The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c: Linux 5.7-rc3 (2020-04-26 13:51:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.7-rc3 for you to fetch changes up to b5

Re: [v4] checkpatch: add support to check 'Fixes:' tag format

2020-05-03 Thread Markus Elfring
>>> + $diagnostics .= "Missing a pair of parentheses >>> '()' or a pair of double quotation marks (\"\").\n"; >> >> Can such a message trigger any more thoughts and development ideas? > > No, I don't think so. '(" ... ")' is the minimum interface between analyser > (check

[PATCH net v3] net: macb: fix an issue about leak related system resources

2020-05-03 Thread Dejin Zheng
A call of the function macb_init() can fail in the function fu540_c000_init. The related system resources were not released then. use devm_platform_ioremap_resource() to replace ioremap() to fix it. Fixes: c218ad559020ff9 ("macb: Add support for SiFive FU540-C000") Cc: Andy Shevchenko Reviewed-by

[PATCH] i2c: lpc2k: Remove superfluous error message in i2c_lpc2k_probe()

2020-05-03 Thread Aishwarya Ramakrishnan
The function platform_get_irq can log an error by itself. This omit a redundant message for exception handling in the calling function. Suggested by Coccinelle. Signed-off-by: Aishwarya Ramakrishnan --- drivers/i2c/busses/i2c-lpc2k.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) dif

Re: [PATCH v23 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-03 Thread Dan Murphy
Jacek On 5/2/20 4:51 PM, Jacek Anaszewski wrote: Dan, I've converted drivers/leds/leds-an30259a.c to LED mc framework and tested it on Samsung Galaxy S3 (exysnos4412-trats2 board). Works as expected. And now the framework usability is indeed neater. One thing to improve: LED mc based drivers'

[PATCH v24 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-03 Thread Dan Murphy
Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.yaml | 71 +++ dri

[PATCH v24 03/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-05-03 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to o

[PATCH v24 04/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-05-03 Thread Dan Murphy
Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs LP5012 can control 12 LEDs LP5009 can control 9 LEDs The device has

[PATCH v24 15/16] leds: lp5523: Fix checkpatch issues in the code

2020-05-03 Thread Dan Murphy
Fix checkpatch errors and warnings for the LP5523.c device driver. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/leds/leds-lp5523.c b/dr

[PATCH v24 00/16] Multicolor Framework v24

2020-05-03 Thread Dan Murphy
Hello This is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are controlled via a single file that is an array of LED

[PATCH v24 10/16] leds: lp55xx: Convert LED class registration to devm_*

2020-05-03 Thread Dan Murphy
Convert the LED class registration calls to the LED devm_* registration calls. Acked-by: Jacek Anaszewski Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c| 9 +++-- drivers/leds/leds-lp5523.c| 9 +++-- drivers/leds/leds-lp5562.c|

[PATCH v24 05/16] dt: bindings: lp55xx: Be consistent in the document with LED acronym

2020-05-03 Thread Dan Murphy
Update the document to be consistent in case when using "LED". This acronym should be capital throughout the document. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/leds/leds-lp55xx.txt | 6 +++--- 1 file changed, 3 insertions

[PATCH v24 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-03 Thread Dan Murphy
Introduce a multicolor class that groups colored LEDs within a LED node. The multi color class groups monochrome LEDs and allows controlling two aspects of the final combined color: hue and lightness. The former is controlled via the intensity file and the latter is controlled via brightness file.

[PATCH v24 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node

2020-05-03 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accomodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy Acked-by: Ton

[PATCH v24 11/16] leds: lp55xx: Add multicolor framework support to lp55xx

2020-05-03 Thread Dan Murphy
Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds/leds-lp5521.c| 14 +- drivers/leds/leds-lp5523.c| 14 +- dri

[PATCH v24 13/16] leds: lp5521: Add multicolor framework multicolor brightness support

2020-05-03 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This function allows setting the brightness across grouped LED channels in a single call. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c | 20 +++

[PATCH] checkpatch: add support for title acrosses three lines in commit id description

2020-05-03 Thread Wang YanQing
The current GIT_COMMIT_ID will report error when the title in commit id description acrosses three lines, take changelog of commit 87b0f983f66f ("net: mscc: ocelot: fix untagged packet drops when enslaving to vlan aware bridge") as a example. It make senses to support three lines title, because th

[PATCH v24 08/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

2020-05-03 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accomodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Acked-by: Pavel Machek Signed-off-by: D

[PATCH v24 14/16] leds: lp55xx: Fix checkpatch file permissions issues

2020-05-03 Thread Dan Murphy
Fix the checkpatch warnings for the use of the file permission macros. In converting the file permissions to the DEVICE_ATTR_XX macros the call back function names needed to be updated within the code. This means that the lp55xx_ needed to be dropped in the name to keep in harmony with the ABI doc

[PATCH v5] checkpatch: add support to check 'Fixes:' tag format

2020-05-03 Thread Wang YanQing
According to submitting-patches.rst, 'Fixes:' tag has a little stricter condition about the one line summary than normal git commit description: “... Do not split the tag across multiple lines, tags are exempt from the "wrap at 75 columns" rule in order to simplify parsing scripts ...” And there i

[PATCH v24 12/16] leds: lp5523: Update the lp5523 code to add multicolor brightness function

2020-05-03 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This call back allows setting brightness on grouped channels in a single function. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 20

Re: [PATCH v2 2/4] iio: accel: Add driver for wsen-itds accelerometer sensor

2020-05-03 Thread Jonathan Cameron
On Wed, 29 Apr 2020 15:39:41 +0200 Saravanan Sekar wrote: > Add an iio driver for the wurth elektronic wsen-itds 3-axis accelerometer. > The driver supports the acceleration, temperature data reading and > supports configuring of output data rate, operating mode and scale. > > Signed-off-by: Sar

[PATCH v24 06/16] dt: bindings: lp55xx: Update binding for Multicolor Framework

2020-05-03 Thread Dan Murphy
Update the DT binding to include the properties to use the multicolor framework for the devices that use the LP55xx framework. Acked-by: Jacek Anaszewski Reviewed-by: Linus Walleij Signed-off-by: Dan Murphy CC: Tony Lindgren CC: "Benoît Cousson" CC: Linus Walleij CC: Shawn Guo CC: Sascha Ha

[PATCH v24 09/16] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

2020-05-03 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accomodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy CC: Linus Wal

  1   2   3   4   5   >