Re: [PATCH 4/4] x86/cpu: Use SERIALIZE in sync_core() when available

2020-07-27 Thread hpa
On July 26, 2020 10:55:15 PM PDT, h...@zytor.com wrote: >On July 26, 2020 9:31:32 PM PDT, Ricardo Neri > wrote: >>The SERIALIZE instruction gives software a way to force the processor >>to >>complete all modifications to flags, registers and memory from >previous >>instructions and drain all

[PATCH] drm/dp_mst: Support remote i2c writes

2020-07-27 Thread Sam McNally
For DP MST outputs, the i2c device currently only supports transfers that can be implemented using remote i2c reads. Such transfers must consist of zero or more write transactions followed by one read transaction. DDC/CI commands require standalone write transactions and hence aren't supported.

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread Al Viro
On Mon, Jul 27, 2020 at 07:46:25AM +0200, Christoph Hellwig wrote: > On Mon, Jul 27, 2020 at 04:05:34AM +0100, Al Viro wrote: > > On Tue, Jul 14, 2020 at 09:04:22PM +0200, Christoph Hellwig wrote: > > > Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, but > > > instead open a

Re: [PATCH v5 2/2] Add PWM fan controller driver for LGM SoC

2020-07-27 Thread Tanwar, Rahul
Hi Uwe, On 24/7/2020 12:15 am, Uwe Kleine-König wrote: > Hello, > > On Thu, Jul 23, 2020 at 03:44:18PM +0800, Rahul Tanwar wrote: >> +static int lgm_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, >> + const struct pwm_state *state) >> +{ >> +struct lgm_pwm_chip

Re: [PATCH 2/6] rtlwifi: Remove unnecessary parenthese in rtl_dbg uses

2020-07-27 Thread Pkshih
On Sat, 2020-07-25 at 12:55 -0700, Joe Perches wrote: > Make these statements a little simpler. > > Signed-off-by: Joe Perches > --- >  drivers/net/wireless/realtek/rtlwifi/base.c   | 14 +-- >  .../rtlwifi/btcoexist/halbtc8192e2ant.c   | 23 ++- >  

[PATCH] coresight: etm4x: Fix etm4_count race using atomic variable

2020-07-27 Thread Sai Prakash Ranjan
etm4_count keeps track of number of ETMv4 registered and on some systems, a race is observed on etm4_count variable which can lead to multiple calls to cpuhp_setup_state_nocalls_cpuslocked(). This function internally calls cpuhp_store_callbacks() which prevents multiple registrations of callbacks

Re: [PATCH] checkpatch: disable commit log length check warning for signature tag

2020-07-27 Thread Joe Perches
On Mon, 2020-07-27 at 11:24 +0530, Nachiket Naganure wrote: > Disable commit log length check in case of signature tag. If the commit > log line has valid signature tags such as "Reported-and-tested-by" with > more than 75 characters, suppress the long length warning. > > For instance in commit

[PATCH V3 0/1] irqchip: intmux: implement intmux PM

2020-07-27 Thread Joakim Zhang
This patch intends to implement intmux PM. ChangeLogs: V2->V3: 1. allocate u32 saved_reg for a per channel. V1->V2: 1. add more detailed commit message. 2. use u32 for 32bit HW registers. 3. fix kbuild failures. 4. move trivial functions into their

[PATCH V3 1/1] irqchip: imx-intmux: implement intmux PM

2020-07-27 Thread Joakim Zhang
When system suspended, we could explicitly disable clock to save power. And we need save registers' state since it could be lost after power off. Implement PM which will: 1) Without CONFIG_PM, clock is always on after probe stage. 2) With CONFIG_PM, clock is off after probe stage. 3) Disable

Re: [PATCH 1/2] KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled

2020-07-27 Thread Wanpeng Li
On Tue, 21 Jul 2020 at 23:25, Sean Christopherson wrote: > > On Tue, Jul 21, 2020 at 12:35:01PM +0200, Vitaly Kuznetsov wrote: > > Wanpeng Li writes: > > > > > From: Wanpeng Li > > > > > > Prevent setting the tscdeadline timer if the lapic is hw disabled. > > > > > > Signed-off-by: Wanpeng Li

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread hpa
On July 26, 2020 8:05:34 PM PDT, Al Viro wrote: >On Tue, Jul 14, 2020 at 09:04:22PM +0200, Christoph Hellwig wrote: >> Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, >but >> instead open a struct file for /dev/console and then install it as FD >> 0/1/2 manually. > >I really

Re: [RFC PATCH] iwlwifi: yoyo: don't print failure if debug firmware is missing

2020-07-27 Thread Luciano Coelho
On Sun, 2020-07-26 at 21:11 +0300, Kalle Valo wrote: > Wolfram Sang writes: > > > On Thu, Jun 25, 2020 at 06:52:10PM +0200, Wolfram Sang wrote: > > > Missing this firmware is not fatal, my wifi card still works. Even more, > > > I couldn't find any documentation what it is or where to get it.

Re: [PATCH v6 2/5] scsi: ufs: Add UFS-feature layer

2020-07-27 Thread Daejun Park
> > I am also not sold on the whole "bus" thing. > > How about implementing HPB as a kernel module that calls the functions > in the UFS core directly, or in other words, get rid completely of the > new ufsf_bus introduced by this patch? OK, I will remove the ufsf_bus and indirect calling

Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Oleksij Rempel
On Fri, Jul 24, 2020 at 04:08:06PM +0800, Peng Fan wrote: > We might need to map an region multiple times, becaue the region might > be shared between remote processors, such i.MX8QM with dual M4 cores. > So use devm_ioremap, not devm_ioremap_resource. Can you please give an example of this kind

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 11:20:41PM -0700, h...@zytor.com wrote: > On July 26, 2020 8:05:34 PM PDT, Al Viro wrote: > >On Tue, Jul 14, 2020 at 09:04:22PM +0200, Christoph Hellwig wrote: > >> Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, > >but > >> instead open a struct file

Re: [PATCH v10 04/13] iommu/arm-smmu-qcom: Add implementation for the adreno GPU SMMU

2020-07-27 Thread Bjorn Andersson
On Mon 20 Jul 08:40 PDT 2020, Jordan Crouse wrote: > diff --git a/drivers/iommu/arm-smmu-qcom.c b/drivers/iommu/arm-smmu-qcom.c [..] > +static int qcom_adreno_smmu_alloc_context_bank(struct arm_smmu_domain > *smmu_domain, > + struct device *dev, int start, int count) > +{ > +

RE: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Peng Fan
Hi Oleksij, > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > On Fri, Jul 24, 2020 at 04:08:06PM +0800, Peng Fan wrote: > > We might need to map an region multiple times, becaue the region might > > be shared between remote processors, such i.MX8QM with dual M4 cores. > > So use

[PATCH] spi: imx: enable runtime pm support

2020-07-27 Thread Clark Wang
Enable runtime pm support for spi-imx driver. Signed-off-by: Clark Wang --- drivers/spi/spi-imx.c | 121 ++ 1 file changed, 88 insertions(+), 33 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index fdc25f549378..38a5f1304cec

Re: [PATCH] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-07-27 Thread Shengjiu Wang
On Mon, Jul 27, 2020 at 8:58 AM Nicolin Chen wrote: > > On Sun, Jul 26, 2020 at 07:20:17PM +0800, Shengjiu Wang wrote: > > With this case: > > aplay -Dhw:x 16khz.wav 24khz.wav > > There is sound distortion for 24khz.wav. The reason is that setting > > PLL of WM8962 with set_bias_level function,

Re: [PATCH v4 00/10] Coregroup support on Powerpc

2020-07-27 Thread Srikar Dronamraju
* Srikar Dronamraju [2020-07-27 10:47:55]: > Changelog v3 ->v4: > v3: > https://lore.kernel.org/lkml/20200723085116.4731-1-sri...@linux.vnet.ibm.com/t/#u > > powerpc/smp: Create coregroup domain > if coregroup_support doesn't exist, update MC mask to the next > smaller domain

Re: WARNING in xfrm_policy_insert

2020-07-27 Thread Xin Long
On Mon, Jul 27, 2020 at 4:11 AM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit ed17b8d377eaf6b4a01d46942b4c647378a79bdd > Author: Xin Long > Date: Mon May 25 05:53:37 2020 + > > xfrm: fix a warning in xfrm_policy_insert_list > > bisection log:

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread hpa
On July 26, 2020 11:24:25 PM PDT, Christoph Hellwig wrote: >On Sun, Jul 26, 2020 at 11:20:41PM -0700, h...@zytor.com wrote: >> On July 26, 2020 8:05:34 PM PDT, Al Viro >wrote: >> >On Tue, Jul 14, 2020 at 09:04:22PM +0200, Christoph Hellwig wrote: >> >> Don't rely on the implicit

Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-27 Thread Oleksij Rempel
Hi, On Fri, Jul 24, 2020 at 04:08:03PM +0800, Peng Fan wrote: > This patchset is to support i.MX8MQ/M coproc booted before linux. > Since i.MX8MQ/M was not supported, several patches are needed > to first support the platform, then support early boot case. > > I intended to included i.MX8QM/QXP,

Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Oleksij Rempel
On Mon, Jul 27, 2020 at 06:28:20AM +, Peng Fan wrote: > Hi Oleksij, > > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > On Fri, Jul 24, 2020 at 04:08:06PM +0800, Peng Fan wrote: > > > We might need to map an region multiple times, becaue the region might > > > be

Re: [PATCH 18/21] iommu/mediatek: Add support for multi domain

2020-07-27 Thread Yong Wu
On Thu, 2020-07-23 at 14:47 -0600, Rob Herring wrote: > On Sat, Jul 11, 2020 at 02:48:43PM +0800, Yong Wu wrote: > > Some HW IP(ex: CCU) require the special iova range. That means the > > iova got from dma_alloc_attrs for that devices must locate in his > > special range. In this patch, we

RE: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-27 Thread Peng Fan
Hi Oleksij, > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > boot > > Hi, > > On Fri, Jul 24, 2020 at 04:08:03PM +0800, Peng Fan wrote: > > This patchset is to support i.MX8MQ/M coproc booted before linux. > > Since i.MX8MQ/M was not supported, several patches are

Re: [PATCH 1/6] arm64/vdso: use the fault callback to map vvar pages

2020-07-27 Thread Andrei Vagin
On Fri, Jul 24, 2020 at 06:26:23PM +0100, Catalin Marinas wrote: > On Wed, 24 Jun 2020 01:33:16 -0700, Andrei Vagin wrote: > > Currently the vdso has no awareness of time namespaces, which may > > apply distinct offsets to processes in different namespaces. To handle > > this within the vdso,

Re: [PATCH] i2c: xiic: Fix reference count leaks.

2020-07-27 Thread Michal Simek
Hi, On 27. 07. 20 8:16, Qiushi Wu wrote: > Hi Michal, > > Thanks for your reply! > I checked the mailing list for the related emails against this API, but > I didn't find any specific timeline they mentioned. > Maybe we can patch this bug to prevent potential issues at this time > point if you

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread Christoph Hellwig
On Mon, Jul 27, 2020 at 07:03:22AM +0100, Al Viro wrote: > On Mon, Jul 27, 2020 at 07:46:25AM +0200, Christoph Hellwig wrote: > > On Mon, Jul 27, 2020 at 04:05:34AM +0100, Al Viro wrote: > > > On Tue, Jul 14, 2020 at 09:04:22PM +0200, Christoph Hellwig wrote: > > > > Don't rely on the implicit

Re: [PATCH 18/23] init: open code setting up stdin/stdout/stderr

2020-07-27 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 11:36:15PM -0700, h...@zytor.com wrote: > >Err, why? The changes have been pretty simple, and I'd rather not come > >up with new crazy ways just to make things complicated. > > Why? To avoid this neverending avalanche of special interfaces and layering > violations.

[PATCH v2] lib: Verify array index is correct before using it

2020-07-27 Thread Huang Guobin
This code reads from the array before verifying that "c" is a valid index. Move test array offset code before use to fix it. Fixes: 2da572c959dd ("lib: add software 842 compression/decompression") Signed-off-by: Huang Guobin --- lib/842/842_compress.c | 9 +++-- 1 file changed, 7

Re: [PATCH V2] arm64: dts: qcom: sc7180: Add bandwidth votes for eMMC and SDcard

2020-07-27 Thread sbhanu
On 2020-07-24 22:40, Matthias Kaehlcke wrote: Hi Shaik, On Tue, Jul 21, 2020 at 04:16:21PM +0530, Shaik Sajida Bhanu wrote: From: Pradeep P V K Add the bandwidth domain supporting performance state and the corresponding OPP tables for the sdhc device on sc7180. Signed-off-by: Pradeep P V K

RE: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Peng Fan
> Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > On Mon, Jul 27, 2020 at 06:28:20AM +, Peng Fan wrote: > > Hi Oleksij, > > > > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > > > On Fri, Jul 24, 2020 at 04:08:06PM +0800, Peng Fan wrote: > > > > We

Re: [PATCH 0/9] powerpc: delete duplicated words

2020-07-27 Thread Joe Perches
On Sun, 2020-07-26 at 12:08 -0700, Randy Dunlap wrote: > v0.1 of this script also found lots of repeated numbers and strings of > special characters (ASCII art etc.), so now it ignores duplicated numbers > or special characters -- since it is really looking for duplicate words. > > Anyway, I

Re: [PATCH v2] lib: Verify array index is correct before using it

2020-07-27 Thread Herbert Xu
On Mon, Jul 27, 2020 at 02:59:10AM -0400, Huang Guobin wrote: > This code reads from the array before verifying that "c" is a valid > index. Move test array offset code before use to fix it. > > Fixes: 2da572c959dd ("lib: add software 842 compression/decompression") > Signed-off-by: Huang Guobin

Re: checkpatch: support deprecated terms checking

2020-07-27 Thread SeongJae Park
On Sun, 26 Jul 2020 22:33:28 +0200 "Michał Mirosław" wrote: > On Sun, Jul 26, 2020 at 08:07:48PM +0200, SeongJae Park wrote: > > On Sun, 26 Jul 2020 09:42:06 -0700 Joe Perches wrote: > > > > > On Sun, 2020-07-26 at 17:36 +0200, SeongJae Park wrote: > > > > On Sun, 26 Jul 2020 07:50:54 -0700

linux-next: build failure after merge of the driver-core tree

2020-07-27 Thread Stephen Rothwell
Hi all, After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/dmi.h:5, from drivers/firmware/efi/embedded-firmware.c:8: drivers/firmware/efi/embedded-firmware.c:25:38: error: static declaration of

Re: [PATCH v9 02/12] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-07-27 Thread Philipp Zabel
Hi Jim, On Fri, 2020-07-24 at 16:33 -0400, Jim Quinlan wrote: > From: Jim Quinlan > > A reset controller "rescal" is shared between the AHCI driver and the PCIe > driver for the BrcmSTB 7216 chip. Use > devm_reset_control_get_optional_shared() to handle this sharing. > > Signed-off-by: Jim

[PATCH] perf record: Set PERF_RECORD_SAMPLE if attr->freq is set.

2020-07-27 Thread Ian Rogers
From: David Sharp evsel__config() would only set PERF_RECORD_SAMPLE if it set attr->freq from perf record options. When it is set by libpfm events, it would not get set. This changes evsel__config to see if attr->freq is set outside of whether or not it changes attr->freq itself. Signed-off-by:

Re: [PATCH v5 2/2] Add PWM fan controller driver for LGM SoC

2020-07-27 Thread Uwe Kleine-König
On Mon, Jul 27, 2020 at 02:04:56PM +0800, Tanwar, Rahul wrote: > > Hi Uwe, > > On 24/7/2020 12:15 am, Uwe Kleine-König wrote: > > Hello, > > > > On Thu, Jul 23, 2020 at 03:44:18PM +0800, Rahul Tanwar wrote: > >> +static int lgm_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, > >> +

[PATCH] PCI: Move pci_info() after pci_fixup_device() in pci_setup_device()

2020-07-27 Thread Tiezhu Yang
In the current code, we can not see the PCI info after fixup which is correct to reflect the reality, it is better to move pci_info() after pci_fixup_device() in pci_setup_device(). Signed-off-by: Tiezhu Yang --- drivers/pci/probe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH v1] spi: spi-topcliff-pch: use generic power management

2020-07-27 Thread Vaibhav Gupta
On Sat, Jul 25, 2020 at 01:44:44PM +0300, Andy Shevchenko wrote: > On Sat, Jul 25, 2020 at 1:42 PM Andy Shevchenko > wrote: > > On Sat, Jul 25, 2020 at 1:37 AM Bjorn Helgaas wrote: > > > On Fri, Jul 24, 2020 at 11:16:55PM +0300, Andy Shevchenko wrote: > > ... > > > > If it's a bug that

Re: [PATCH] tpm: Fix the description error of the help information in Kconfig

2020-07-27 Thread Arnd Bergmann
On Mon, Jul 27, 2020 at 4:54 AM Tianjia Zhang wrote: > > Obviously, the TPM version number in the help message is wrong, which > will cause confusion. This patch fixes it. How is this "obvious"? I tried finding the specification and could not see anything to back up TIS 1.3 being only supported

Re: [PATCH] checkpatch: disable commit log length check warning for signature tag

2020-07-27 Thread Nachiket Naganure
On Sun, Jul 26, 2020 at 11:14:42PM -0700, Joe Perches wrote: > On Mon, 2020-07-27 at 11:24 +0530, Nachiket Naganure wrote: > > Disable commit log length check in case of signature tag. If the commit > > log line has valid signature tags such as "Reported-and-tested-by" with > > more than 75

Re: [PATCH] ocfs2: fix unbalanced locking

2020-07-27 Thread Joseph Qi
On 2020/7/24 20:44, Pavel Machek wrote: > > Based on what fails, function can return with nfs_sync_rwlock either > locked or unlocked. That can not be right. > > Always return with lock unlocked on error. > > Signed-off-by: Pavel Machek (CIP) Looks good. Fixes: 4cd9973f9ff6 ("ocfs2: avoid

Greeting,

2020-07-27 Thread Vernitha Maynard
My Dear, With warm heart I offer my friendship, and my greetings to you in the name of our lord, and I hope this letter meets you in good time, I Propose with my free mind and as a person of integrity from God, I know that this message will appear as a surprise to you that we barely Know but the

[PATCH 01/11] usb: mtu3: remove unnecessary pointer checks

2020-07-27 Thread Chunfeng Yun
The class driver will ensure the parameters are valid pointers before call the hook function of usb_ep_ops, so no need check them again. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git

[PATCH 07/11] usb: mtu3: remove repeated error log

2020-07-27 Thread Chunfeng Yun
The caller already print error log. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 3d13129..2bc9a95 100644 ---

[PATCH 11/11] usb: mtu3: simplify mtu3_req_complete()

2020-07-27 Thread Chunfeng Yun
Use argument req directly instead of mreq->request, they are the same usb request. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_gadget.c

[PATCH 03/11] usb: mtu3: reinitialize CSR registers

2020-07-27 Thread Chunfeng Yun
The CSR registers will be reset as default value if the ports are disabled, so reinitialize them when the ports are enabled again. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_core.c | 61 +++- 1 file changed, 32 insertions(+), 29 deletions(-)

[PATCH 08/11] usb: mtu3: remove useless member @busy in mtu3_ep struct

2020-07-27 Thread Chunfeng Yun
The member @busy in mtu3_ep struct is unnecessary, so remove it. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h| 1 - drivers/usb/mtu3/mtu3_gadget.c | 6 -- 2 files changed, 7 deletions(-) diff --git a/drivers/usb/mtu3/mtu3.h b/drivers/usb/mtu3/mtu3.h index

[PATCH 10/11] usb: mtu3: clear dual mode of u3port when disable device

2020-07-27 Thread Chunfeng Yun
If not clear u3port's dual mode when disable device, the IP will fail to enter sleep mode when suspend. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_core.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/mtu3/mtu3_core.c

[PATCH 09/11] usb: mtu3: use MTU3_EP_WEDGE flag

2020-07-27 Thread Chunfeng Yun
Use MTU3_EP_WEDGE flag instead of the member @wedged in mtu3_ep struct, then @wedged can be removed. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h| 1 - drivers/usb/mtu3/mtu3_gadget.c | 9 - drivers/usb/mtu3/mtu3_gadget_ep0.c | 2 +- 3 files changed, 5

[PATCH 06/11] usb: mtu3: add ->udc_set_speed()

2020-07-27 Thread Chunfeng Yun
Make use of the method to make sure connect on speeds supported by the gadget driver. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h| 4 ++- drivers/usb/mtu3/mtu3_core.c | 68 +- drivers/usb/mtu3/mtu3_gadget.c | 14 + 3 files

[PATCH 04/11] usb: mtu3: clear interrupts status when disable interrupts

2020-07-27 Thread Chunfeng Yun
When disable interrupts, will also want to clear their status, ensure it by calling mtu3_intr_status_clear() in mtu3_intr_disable(). Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_core.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git

[PATCH 02/11] usb: mtu3: fix macro for maximum number of packets

2020-07-27 Thread Chunfeng Yun
The bits field for maximum number of packets is 8 bits. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_hw_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_hw_regs.h b/drivers/usb/mtu3/mtu3_hw_regs.h index bf34f78..072db1f 100644 ---

[PATCH 05/11] usb: mtu3: introduce a funtion to check maximum speed

2020-07-27 Thread Chunfeng Yun
The max_speed got from DTS may be not supported by the hardware, so need check it, and assign a proper default value. And make it clear by introducing a funtion. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_core.c | 48 ++-- 1 file changed, 28

[PATCH v4] PCI: hv: Fix a timing issue which causes kdump to fail occasionally

2020-07-27 Thread Wei Hu
Kdump could fail sometime on Hyper-V guest over Accelerated Network interface. This is because the retry in hv_pci_enter_d0() releases child device strurctures in hv_pci_bus_exit(). Although there is a second asynchronous device relations message sending from the host, if this message arrives

Re: [PATCH v18 11/14] Documentation: Add documents for DAMON

2020-07-27 Thread Greg Thelen
SeongJae Park wrote: > From: SeongJae Park > > This commit adds documents for DAMON under > `Documentation/admin-guide/mm/damon/` and `Documentation/vm/damon/`. > > Signed-off-by: SeongJae Park > --- > Documentation/admin-guide/mm/damon/guide.rst | 157 ++ >

Re: [PATCH v1] ata: use generic power management

2020-07-27 Thread Vaibhav Gupta
On Sat, Jul 25, 2020 at 09:00:12AM +0800, kernel test robot wrote: > Hi Vaibhav, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on block/for-next] > [also build test WARNING on v5.8-rc6 next-20200724] > [If your patch is applied to the wrong git tree,

[PATCH] spi: sun4i: update max transfer size reported

2020-07-27 Thread Jonathan Liu
The spi-sun4i driver already has the ability to do large transfers. However, the max transfer size reported is still fifo depth - 1. Update the max transfer size reported to the max value possible. Fixes: 196737912da5 ("spi: sun4i: Allow transfers larger than FIFO size") Signed-off-by: Jonathan

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-27 Thread Arnd Bergmann
On Mon, Jul 27, 2020 at 12:28 AM Peilin Ye wrote: > > video_put_user() is copying uninitialized stack memory to userspace due > to the compiler not initializing holes in the structures declared on the > stack. Fix it by initializing `ev32` and `vb32` using memset(). > > Reported-and-tested-by:

Re: [PATCH -next] powerpc/papr_scm: Make some symbols static

2020-07-27 Thread Michael Ellerman
On Sat, 25 Jul 2020 17:19:49 +0800, Wei Yongjun wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/pseries/papr_scm.c:97:1: warning: > symbol 'papr_nd_regions' was not declared. Should it be static? > arch/powerpc/platforms/pseries/papr_scm.c:98:1: warning: > symbol

Re: [PATCH 0/9] powerpc: delete duplicated words

2020-07-27 Thread Michael Ellerman
On Sat, 25 Jul 2020 17:38:00 -0700, Randy Dunlap wrote: > Drop duplicated words in arch/powerpc/ header files. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: linuxppc-...@lists.ozlabs.org > > [...] Applied to powerpc/next. [1/9] powerpc/book3s/mmu-hash.h:

Re: [PATCH 0/9] Macintosh II ADB driver fixes

2020-07-27 Thread Michael Ellerman
On Sun, 28 Jun 2020 14:23:12 +1000, Finn Thain wrote: > Various issues with the via-macii driver have become apparent over the > years. Some examples: > > - A Talk command response can be lost. This can result in phantom devices > being probed or an incorrect device handler ID being retrieved. >

Re: [PATCH v2 1/2] powerpc/ptdump: Refactor update of st->last_pa

2020-07-27 Thread Michael Ellerman
On Mon, 29 Jun 2020 11:17:18 + (UTC), Christophe Leroy wrote: > st->last_pa is always updated in note_page() so it can > be done outside the if/elseif/else block. Applied to powerpc/next. [1/2] powerpc/ptdump: Refactor update of st->last_pa

Re: [PATCH v2] tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes

2020-07-27 Thread Michael Chan
On Fri, Jul 24, 2020 at 5:19 PM David Christensen wrote: > In the working case, tg3_init_hw() returns successfully, resulting in > every instance of napi_disable() being followed by an instance of > napi_enable(). > > In the failing case, tg3_hw_init() returns an error. (This is not > surprising

Re: [PATCH v5 00/10] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm

2020-07-27 Thread Michael Ellerman
On Thu, 23 Jul 2020 14:38:03 +0530, Ravi Bangoria wrote: > Last series[1] was to add basic infrastructure support for more than > one watchpoint on Book3S powerpc. This series actually enables the 2nd > DAWR for baremetal and powervm. Kvm guest is still not supported. > > v4: >

Re: [PATCH v2 0/6] powerpc/32s: Allocate modules outside of vmalloc space for STRICT_KERNEL_RWX

2020-07-27 Thread Michael Ellerman
On Mon, 29 Jun 2020 11:15:19 + (UTC), Christophe Leroy wrote: > On book3s32 (hash), exec protection is set per 256Mb segments with NX bit. > Instead of clearing NX bit on vmalloc space when CONFIG_MODULES is selected, > allocate modules in a dedicated segment (0xb000-0xbfff by

Re: [PATCH 0/8] Mac ADB IOP driver fixes

2020-07-27 Thread Michael Ellerman
On Sun, 31 May 2020 09:17:03 +1000, Finn Thain wrote: > The adb-iop driver was never finished. Some deficiencies have become > apparent over the years. For example, > > - Mouse and/or keyboard may stop working if used together > > - SRQ autopoll list cannot be changed > > [...] Applied to

Re: linux-next: Signed-off-by missing for commits in the arm-soc tree

2020-07-27 Thread Arnd Bergmann
On Sun, Jul 26, 2020 at 11:35 PM Stephen Rothwell wrote: > > Hi all, > > Commits > > 16730dda542e ("ARM: mstar: Add dts for 70mai midrive d08") > 22a30e8035c6 ("ARM: mstar: Add dts for msc313(e) based BreadBee boards") > b6d785a8410e ("ARM: mstar: Add mercury5 series dtsis") >

Re: [PATCH] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-07-27 Thread Nicolin Chen
On Mon, Jul 27, 2020 at 02:33:18PM +0800, Shengjiu Wang wrote: > > > static int fsl_asoc_card_audmux_init(struct device_node *np, > > >struct fsl_asoc_card_priv *priv) > > > { > > > @@ -611,7 +600,6 @@ static int fsl_asoc_card_probe(struct platform_device > >

Re: [PATCH 1/2] drm/fourcc: fix Amlogic Video Framebuffer Compression macro

2020-07-27 Thread Neil Armstrong
On 26/07/2020 19:25, Sam Ravnborg wrote: > Hi Neil. > > On Thu, Jul 23, 2020 at 11:05:50AM +0200, Neil Armstrong wrote: >> Fix the Amlogic Video Framebuffer Compression modifier macro to >> correctly add the layout options, a pair of parenthesis was missing. >> >> Fixes: d6528ec88309

Re: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length

2020-07-27 Thread Martin Botka
Hello Uwe, On Sat, Jul 25, 2020 at 09:12:23PM +0200, Martin Botka wrote: >> > Note there is already a series that changes these values to u64. See >> > a9d887dc1c60ed67f2271d66560cdcf864c4a578 in linux-next. >> >> Amazing. But isn't there the same issue with it as this one where this >> would

Re: [PATCH v6 06/13] pwm: add support for sl28cpld PWM controller

2020-07-27 Thread Thierry Reding
On Sun, Jul 26, 2020 at 01:18:27AM +0200, Michael Walle wrote: > Add support for the PWM controller of the sl28cpld board management > controller. This is part of a multi-function device driver. > > The controller has one PWM channel and can just generate four distinct > frequencies. > >

[PATCH] mfd: dm355evm_msp: Convert LEDs to GPIO descriptor table

2020-07-27 Thread Linus Walleij
This converts the DaVinci DM355EVM LEDs to use GPIO descriptor look-ups. Cc: Sekhar Nori Cc: Bartosz Golaszewski Signed-off-by: Linus Walleij --- drivers/mfd/dm355evm_msp.c | 49 -- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v5 2/2] Add PWM fan controller driver for LGM SoC

2020-07-27 Thread Tanwar, Rahul
Hi Uwe, On 27/7/2020 3:01 pm, Uwe Kleine-König wrote: > On Mon, Jul 27, 2020 at 02:04:56PM +0800, Tanwar, Rahul wrote: >> Hi Uwe, >> >> On 24/7/2020 12:15 am, Uwe Kleine-König wrote: >>> Hello, >>> >>> On Thu, Jul 23, 2020 at 03:44:18PM +0800, Rahul Tanwar wrote: +static int

Re: [PATCH v4] scsi: ufs: Quiesce all scsi devices before shutdown

2020-07-27 Thread Can Guo
Hi Stanley, On 2020-07-24 22:01, Stanley Chu wrote: Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally system may crash due to unclocked register accesses. To fix this kind of issues,

Re: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length

2020-07-27 Thread Martin Botka
> Could you please send the messages also to everyone else ? Next time of course.

[PATCH] checkpatch: Add test for repeated words

2020-07-27 Thread Joe Perches
Try to avoid adding repeated words either on the same line or consecutive comment lines in a block e.g.: duplicated word in comment block /* * this is a comment block where the last word of the previous * previous line is also the first word of the next line

Re: [PATCH v18 06/14] mm/damon: Implement callbacks for the virtual memory address spaces

2020-07-27 Thread Greg Thelen
SeongJae Park wrote: > From: SeongJae Park > > This commit introduces a reference implementation of the address space > specific low level primitives for the virtual address space, so that > users of DAMON can easily monitor the data accesses on virtual address > spaces of specific processes by

Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Oleksij Rempel
On Mon, Jul 27, 2020 at 06:51:00AM +, Peng Fan wrote: > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > On Mon, Jul 27, 2020 at 06:28:20AM +, Peng Fan wrote: > > > Hi Oleksij, > > > > > > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > > > > >

Re: Re: [PATCH v18 11/14] Documentation: Add documents for DAMON

2020-07-27 Thread SeongJae Park
On Mon, 27 Jul 2020 00:19:00 -0700 Greg Thelen wrote: > SeongJae Park wrote: > > > From: SeongJae Park > > > > This commit adds documents for DAMON under > > `Documentation/admin-guide/mm/damon/` and `Documentation/vm/damon/`. > > > > Signed-off-by: SeongJae Park > > --- > >

Re: [PATCH v6 4/9] hwmon: pmbus: adm1266: add debugfs for states

2020-07-27 Thread kernel test robot
suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/alexandru-tachici-analog-com/hwmon-pmbus-adm1266-add-support/20200727-133122 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon

[PATCH] arm64: dts: mt8173: elm: Fix nor_flash node property

2020-07-27 Thread Hsin-Yi Wang
bus-width and non-removable is not used by the driver. max-frequency should be spi-max-frequency for flash node. Fixes: 689b937bedde ("arm64: dts: mediatek: add mt8173 elm and hana board") Reported-by: Nicolas Boichat Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi

Re: linux-next: Signed-off-by missing for commit in the irqchip tree

2020-07-27 Thread Marc Zyngier
Hi Stephen, On 2020-07-26 23:10, Stephen Rothwell wrote: Hi all, Commit e5c19cf32b68 ("irqchip/stm32-exti: Use the hwspin_lock_timeout_in_atomic() API") is missing a Signed-off-by from its committer. Looks like I fat-fingered a b4 invocation! Thanks for the heads up, will be fixed in a

[PATCH v3 2/2] drm: panel: Add tianma nt36672a panel driver

2020-07-27 Thread Sumit Semwal
Some Poco F1 phones have an LCD panel from Tianma, model nt36672a, with a resolution of 1080x2246 that operates in DSI video mode. Add the drm panel driver for it. During testing, Benni Steini helped us fix the reset sequence timing (from 10ms to 20ms), to get the bootanimation to work on

[PATCH v3 0/2] Add support for Tianma nt36672a video mode panel

2020-07-27 Thread Sumit Semwal
Some Poco F1 phones from Xiaomi have an nt36672a video mode panel; add support for the same. Most of the panel data is taken from downstream panel dts, and is converted to drm-panel based driver by me. It has been validated with v5.8-rc5 on Poco F1 phone; my tree with other dependent patches is

[PATCH v3 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-07-27 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace port@0 to just 'port'. ---

Re: [PATCH 0/3] Add 3 new keycodes and use them for 3 new hotkeys on new Lenovo Thinkpads

2020-07-27 Thread Hans de Goede
Hi, On 7/27/20 2:50 AM, Henrique de Moraes Holschuh wrote: On Tue, 21 Jul 2020, Dmitry Torokhov wrote: On Sun, Jul 19, 2020 at 07:56:49PM -0300, Henrique de Moraes Holschuh wrote: On Fri, 17 Jul 2020, Hans de Goede wrote: This is a simple patch-series adding support for 3 new hotkeys found

linux-next: manual merge of the char-misc tree with Linus' tree

2020-07-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/misc/habanalabs/common/command_submission.c between commit: cea7a0449ea3 ("habanalabs: prevent possible out-of-bounds array access") from Linus' tree and commit: 3abc99bb7dcb ("habanalabs: configure

Re: [PATCH 0/3] Add 3 new keycodes and use them for 3 new hotkeys on new Lenovo Thinkpads

2020-07-27 Thread Andy Shevchenko
On Mon, Jul 27, 2020 at 10:45 AM Hans de Goede wrote: > > Hi, > > On 7/27/20 2:50 AM, Henrique de Moraes Holschuh wrote: > > On Tue, 21 Jul 2020, Dmitry Torokhov wrote: > >> On Sun, Jul 19, 2020 at 07:56:49PM -0300, Henrique de Moraes Holschuh > >> wrote: > >>> On Fri, 17 Jul 2020, Hans de Goede

Re: [PATCH 6/7] ARM:mstar: Add syscon node for "pmsleep" area

2020-07-27 Thread Arnd Bergmann
On Sun, Jul 26, 2020 at 6:40 AM Daniel Palmer wrote: > > MStar v7 SoCs contain a region of registers that are in the always on > domain that the vendor code calls the "pmsleep" area. > > This area contains registers for a broad range of functionality and > needs to be shared between drivers. > >

Re: [RESEND PATCH v4 2/3] usb: serial: xr_serial: Add gpiochip support

2020-07-27 Thread Andy Shevchenko
On Mon, Jul 27, 2020 at 7:46 AM Manivannan Sadhasivam wrote: > On Sun, Jul 26, 2020 at 07:34:54PM +0300, Andy Shevchenko wrote: > > On Sun, Jul 26, 2020 at 6:53 PM Manivannan Sadhasivam > > wrote: ... > > I'm wondering if you may use mctrl_gpio_*() API instead. > > How? mctrl_gpio APIs are a

Re: [PATCH 0/4] Fix a bunch of W=1 warnings in PWM

2020-07-27 Thread Thierry Reding
On Mon, Jun 29, 2020 at 01:47:48PM +0100, Lee Jones wrote: > Attempting to clean-up W=1 kernel builds, which are currently > overwhelmingly riddled with niggly little warnings. > > Lee Jones (4): > pwm: bcm-iproc: Remove impossible comparison when validating duty > cycle > pwm: bcm-kona:

Re: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length

2020-07-27 Thread Uwe Kleine-König
Hello Martin, On Mon, Jul 27, 2020 at 09:29:19AM +0200, Martin Botka wrote: > On Sat, Jul 25, 2020 at 09:12:23PM +0200, Martin Botka wrote: > >> > Note there is already a series that changes these values to u64. See > >> > a9d887dc1c60ed67f2271d66560cdcf864c4a578 in linux-next. > >> > >> Amazing.

Re: [v7, PATCH 7/7] drm/mediatek: add support for mediatek SOC MT8183

2020-07-27 Thread Yongqiang Niu
On Sat, 2020-07-25 at 07:24 +0800, Chun-Kuang Hu wrote: > Hi Yongqiang: > > Yongqiang Niu 於 2020年7月23日 週四 上午10:15寫道: > > > > This patch add support for mediatek SOC MT8183 > > 1.ovl_2l share driver with ovl > > I think this is done in [1], [2], [3], this patch just add the support > of

Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-27 Thread Oleksij Rempel
On Mon, Jul 27, 2020 at 06:44:32AM +, Peng Fan wrote: > Hi Oleksij, > > > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > > boot > > > > Hi, > > > > On Fri, Jul 24, 2020 at 04:08:03PM +0800, Peng Fan wrote: > > > This patchset is to support i.MX8MQ/M coproc

[PATCH] arm64: dts: qcom: sdm845-db845c: Add hdmi bridge nodes

2020-07-27 Thread Vinod Koul
From: Bjorn Andersson Enable MDSS and DSI and add the LT9611 HDMI bridge. Also add the HDMI audio nodes. Signed-off-by: Bjorn Andersson Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 118

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-27 Thread Arnd Bergmann
On Sun, Jul 26, 2020 at 6:20 PM Paul Cercueil wrote: > Le dim. 26 juil. 2020 à 18:15, Krzysztof Kozlowski a écrit : > > On Sun, Jul 26, 2020 at 06:12:27PM +0200, Paul Cercueil wrote: > >> Le dim. 26 juil. 2020 à 18:06, Krzysztof Kozlowski a > >> écrit > > > OK, that's true. Anyway, I don't

  1   2   3   4   5   6   7   8   9   10   >