Re: [PATCH -next] mtd: fix missing unlock on error in mtdchar_compat_ioctl()

2020-07-24 Thread Greg Kroah-Hartman
On Sat, Jul 25, 2020 at 06:34:16AM +, Wei Yongjun wrote: > Add the missing unlock before return from function mtdchar_compat_ioctl() > in the error handling case. > > Fixes: 210bec567936 ("mtd: properly check all write ioctls for permissions") > Reported-by: Hulk Robot > Signed-off-by: Wei Yo

[PATCH] ARM: mstar: Fix dts filename for 70mai midrive d08

2020-07-24 Thread Daniel Palmer
Fixes the filename for the 70mai midrive d08 dts. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 35c7ecc52c60..caf4a47ba799 100644 --- a/arch/arm/boot/dt

arch/mips/sgi-ip30/ip30-console.c:15:6: warning: no previous prototype for 'prom_putchar'

2020-07-24 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 23ee3e4e5bd27bdbc0f1785eef7209ce872794c7 commit: 7505576d1c1ac0cfe85fdf90999433dd8b673012 MIPS: add support for SGI Octane (IP30) date: 9 months ago config: mips-randconfig-r013-20200725 (attached as .conf

[PATCH -next] drm: xlnx: Fix typo in parameter description

2020-07-24 Thread Wei Yongjun
Fix typo in parameter description. Fixes: d76271d22694 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/d

[PATCH -next] mtd: fix missing unlock on error in mtdchar_compat_ioctl()

2020-07-24 Thread Wei Yongjun
Add the missing unlock before return from function mtdchar_compat_ioctl() in the error handling case. Fixes: 210bec567936 ("mtd: properly check all write ioctls for permissions") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/mtd/mtdchar.c | 6 -- 1 file changed, 4 insertion

Re: [PATCH] usb: dwc2: Fix parameter type in function pointer prototype

2020-07-24 Thread Felipe Balbi
> [1.643137] CPU: 0 PID: 32 Comm: kworker/0:1 Not tainted >> > 5.8.0-rc6-next-20200724-00051-g89ba619726de #1 >> > [1.652693] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT) >> > [1.658637] Workqueue: events deferred_probe_work_func >> &g

Re: [PATCH] usb: dwc2: Fix parameter type in function pointer prototype

2020-07-24 Thread Felipe Balbi
dwc2_set_bcm_params+0x0/0x4): >> [1.632408] WARNING: CPU: 0 PID: 32 at kernel/cfi.c:30 >> __cfi_check_fail+0x54/0x5c >> [1.640021] Modules linked in: >> [1.643137] CPU: 0 PID: 32 Comm: kworker/0:1 Not tainted >> 5.8.0-rc6-next-20200724-00051-g89ba619726de #1 &g

Re: [PATCH] usb: dwc2: Fix parameter type in function pointer prototype

2020-07-24 Thread Nathan Chancellor
gt; > [1.626435] CFI failure (target: dwc2_set_bcm_params+0x0/0x4): > > [1.632408] WARNING: CPU: 0 PID: 32 at kernel/cfi.c:30 > > __cfi_check_fail+0x54/0x5c > > [1.640021] Modules linked in: > > [1.643137] CPU: 0 PID: 32 Comm: kworker/0:1 Not tainted

Re: [PATCH v2 2/2] usb: phy: Add USB3 PHY support for Intel LGM SoC

2020-07-24 Thread Felipe Balbi
"Ramuthevar,Vadivel MuruganX" writes: > From: Ramuthevar Vadivel Murugan > > Add support for USB PHY on Intel LGM SoC. > > Signed-off-by: Ramuthevar Vadivel Murugan > use drivers/phy/ instead. -- balbi signature.asc Description: PGP signature

Re: Re: [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent autowakeup from s3 trig by usb disconnect signal from Lenovo ThinkcentreTI024Gen3 USB-audio.

2020-07-24 Thread Greg KH
On Sat, Jul 25, 2020 at 02:09:14PM +0800, 彭浩 wrote: > This email message is intended only for the use of the individual or entity > who > /which is the intended recipient and may contain information that is > privileged > or confidential. If you are not the intended recipient, you are hereby > n

Re: [PATCH] usb: dwc2: Fix parameter type in function pointer prototype

2020-07-24 Thread Greg Kroah-Hartman
ING: CPU: 0 PID: 32 at kernel/cfi.c:30 > __cfi_check_fail+0x54/0x5c > [1.640021] Modules linked in: > [1.643137] CPU: 0 PID: 32 Comm: kworker/0:1 Not tainted > 5.8.0-rc6-next-20200724-00051-g89ba619726de #1 > [1.652693] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (

Re: [PATCH v6 3/5] USB: PHY: JZ4770: Add support for new Ingenic SoCs.

2020-07-24 Thread Felipe Balbi
Hi, 周琰杰 (Zhou Yanjie) writes: > Add support for probing the phy-jz4770 driver on the JZ4780 SoC, > the X1000 SoC and the X1830 SoC from Ingenic. > > Tested-by: 周正 (Zhou Zheng) > Co-developed-by: 漆鹏振 (Qi Pengzhen) > Signed-off-by: 漆鹏振 (Qi Pengzhen) > Signed-off-by: 周琰杰 (Zhou Yanjie) It would

Re: 回复: [PATCH] usb: gadget: function: printer: Add gadget dev interface status judgment

2020-07-24 Thread Felipe Balbi
Greg KH writes: > On Wed, Jun 24, 2020 at 08:59:40AM +, Zhang, Qiang wrote: >> Hello, Greg KH >> Please have you review the patch? > > I am not the gadget driver maintainer :) > > Give Felipe a chance to catch up... It has been in my testing/next for a while, actually :-) -- balbi signa

[PATCH 1/4] crypto: hisilicon/zip - fix the uncleared debug registers

2020-07-24 Thread Yang Shen
From: Hao Fang ZIP debug registers aren't cleared even if its driver is removed, so add a clearing operation when remove driver. Signed-off-by: Hao Fang Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 18 ++ 1 file changed, 18 ins

[PATCH 3/4] crypto: hisilicon/zip - fix the return value when device is busy

2020-07-24 Thread Yang Shen
As before, when the ZIP device is too busy to creat a request, it will return '-EBUSY'. But the crypto process think the '-EBUSY' means a successful request and wait for its completion. So replace '-EBUSY' with '-EAGAIN' to show crypto this request is failed. Fixes: 62c455ca853e("crypto: hisilico

[PATCH 4/4] crypto: hisilicon/zip - fix the uninitalized 'curr_qm_qp_num'

2020-07-24 Thread Yang Shen
From: Sihang Chen The 'qm->curr_qm_qp_num' is not initialized, which will result in failure to write the current_q file. Signed-off-by: Sihang Chen Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH 2/4] crypto: hisilicon/zip - fix zero length input in GZIP decompress

2020-07-24 Thread Yang Shen
From: Zhou Wang The zero length input will cause a call trace when use GZIP decompress like this: Unable to handle kernel paging request at virtual address ... lr : get_gzip_head_size+0x7c/0xd0 [hisi_zip] Judge the input length and return '-EINVAL' when input is invalid.

[PATCH 0/4] crypto: hisilicon/zip - misc bugfix

2020-07-24 Thread Yang Shen
This patchset fix some bug: patch 1:clear the debug registers when remove driver patch 2:intercept invalid input when using decompress patch 3:replace the return value '-EBUSY' with '-EAGAIN' when device is busy patch 4:initialize the 'curr_qm_qp_num' when probe device This patchset depends on

[PATCH] usb: dwc2: Fix parameter type in function pointer prototype

2020-07-24 Thread Nathan Chancellor
linked in: [1.643137] CPU: 0 PID: 32 Comm: kworker/0:1 Not tainted 5.8.0-rc6-next-20200724-00051-g89ba619726de #1 [1.652693] Hardware name: Raspberry Pi 4 Model B Rev 1.2 (DT) [1.658637] Workqueue: events deferred_probe_work_func [1.663870] pstate: 6005 (nZCv daif -PAN -UAO BTYPE

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-24 Thread Greg Kroah-Hartman
On Fri, Jul 24, 2020 at 06:28:53PM -0300, Daniel Gutson wrote: > Currently, intel-spi has a module argument that controls whether the driver > attempts to turn the SPI flash chip writeable. The default value > is FALSE (don't try to make it writeable). > However, this flag applies only for a number

Re: Re: [PATCH] octeontx2-af: Fix use of uninitialized pointer bmap

2020-07-24 Thread dinghao . liu
> From: Dinghao Liu > Date: Fri, 24 Jul 2020 16:06:57 +0800 > > > If req->ctype does not match any of NIX_AQ_CTYPE_CQ, > > NIX_AQ_CTYPE_SQ or NIX_AQ_CTYPE_RQ, pointer bmap will remain > > uninitialized and be accessed in test_bit(), which can lead > > to kernal crash. > > This can never happen.

Re: [PATCH] Fix coding style issues

2020-07-24 Thread Greg Kroah-Hartman
On Sat, Jul 25, 2020 at 01:55:19AM +0530, Anant Thazhemadam wrote: > Coding style issues found were rectified > > Signed-off-by: Anant Thazhemadam > --- > drivers/staging/rtl8188eu/core/rtw_security.c | 92 ++- > 1 file changed, 47 insertions(+), 45 deletions(-) > > diff --git a

Re: [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio.

2020-07-24 Thread Greg KH
On Sat, Jul 25, 2020 at 12:01:55PM +0800, penghao wrote: > From: "peng...@deepin.com" > > TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens > enter sleep mode, USB-audio will disconnect from USB bus port, > so disabled the /sys/bus/usb/*/power/wakeup Fixesimmediately > wakup form

[tip:sched/urgent] BUILD SUCCESS 062d3f95b630113e1156a31f376ad36e25da29a7

2020-07-24 Thread kernel test robot
allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64

Re: [PATCH 3/4] RISC-V: Do not rely on initrd_start/end computed during early dt parsing

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 10:12 PM Palmer Dabbelt wrote: > > On Wed, 15 Jul 2020 16:30:08 PDT (-0700), Atish Patra wrote: > > Currently, initrd_start/end are computed during early_init_dt_scan > > but used during arch_setup. We will get the following panic if initrd is > > used > > and CONFIG_DEBUG

Re: [PATCH 1/4] RISC-V: Setup exception vector early

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 10:12 PM Palmer Dabbelt wrote: > > On Wed, 15 Jul 2020 16:30:06 PDT (-0700), Atish Patra wrote: > > The trap vector is set only in trap_init which may be too late in some > > cases. Early ioremap/efi spits many warning messages which may be useful. > > > > Setup the trap ve

Re: [PATCH] lockdep: Introduce CONFIG_LOCKDEP_LARGE

2020-07-24 Thread Tetsuo Handa
On 2020/07/25 13:48, Dmitry Vyukov wrote: >> diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c >> index 29a8de4..85ba7eb 100644 >> --- a/kernel/locking/lockdep.c >> +++ b/kernel/locking/lockdep.c >> @@ -1349,7 +1349,11 @@ static int add_lock_to_list(struct lock_class *this, >> /* >>

Re: [PATCH] amdgpu_dm: fix nonblocking atomic commit use-after-free

2020-07-24 Thread Mazin Rezk
On Saturday, July 25, 2020 12:59 AM, Duncan <1i5t5.dun...@cox.net> wrote: > On Sat, 25 Jul 2020 03:03:52 + > Mazin Rezk mn...@protonmail.com wrote: > > > > Am 24.07.20 um 19:33 schrieb Kees Cook: > > > > > > > There was a fix to disable the async path for this driver that > > > > worked around

Re: [PATCH v6 3/4] RISC-V: Remove CLINT related code from timer and arch

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > Right now the RISC-V timer driver is convoluted to support: > 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for >clocksource and SBI timer calls for clockevent device. > 2. Linux RISC-V M-mode (without MMU) where it will use

Re: [PATCH v3 00/19] Introduce partial kernel_read_file() support

2020-07-24 Thread Scott Branden
On 2020-07-24 2:36 p.m., Kees Cook wrote: v3: - add reviews/acks - add "IMA: Add support for file reads without contents" patch - trim CC list, in case that's why vger ignored v2 v2: [missing from lkml archives! (CC list too long?) repeating changes here] - fix issues in firmware test suite - add

[PATCH 0/3] Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
1.Add RTC related clocks bindings for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC. 2.Add "_CLK_EXCLK_DIV512" and "_CLK_RTC" for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC. 周琰杰 (Zhou Yanjie) (3): dt-bindings: clock: Add RTC related clocks for Ingenic SoCs. dt-bindings: cl

[PATCH 1/3] dt-bindings: clock: Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add RTC related clocks bindings for the JZ4780 SoC, the X1000 SoC, and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) --- include/dt-bindings/clock/jz4780-cgu.h | 2 ++ include/dt-bindings/clock/x1000-cgu.h | 2 ++ include/dt-bindings/clock/x1830-cgu.h

Re: [PATCH 4/4] riscv: Parse all memory blocks to remove unusable memory

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:09 PDT (-0700), Atish Patra wrote: Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are multip

Re: [PATCH 3/4] RISC-V: Do not rely on initrd_start/end computed during early dt parsing

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:08 PDT (-0700), Atish Patra wrote: Currently, initrd_start/end are computed during early_init_dt_scan but used during arch_setup. We will get the following panic if initrd is used and CONFIG_DEBUG_VIRTUAL is turned on. [0.00] [ cut here ]

[PATCH 3/3] clk: Ingenic: Add RTC related clocks for Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
The RTC unit in the Ingenic SoCs has two clock sources, one is from an external 32.768kHz clock, and the other is from an external 24MHz/48MHz main clock that is divided by 512. The choice of these two clocks is controlled by the ERCS bit in the OPCR register. The RNG unit will also use this clock.

[PATCH 2/3] dt-bindings: clock: Add tabs to align code.

2020-07-24 Thread Zhou Yanjie
The "JZ4780_CLK_LCD0PIXCLK" and the "JZ4780_CLK_LCD1PIXCLK" in the "jz4780.h" and the new added "JZ4780_CLK_EXCLK_DIV512" in the previous patch is too long, add tabs to other lines to align them. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) --- include/dt-bindings/clock/jz4780-cg

Re: [PATCH 1/4] RISC-V: Setup exception vector early

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:06 PDT (-0700), Atish Patra wrote: The trap vector is set only in trap_init which may be too late in some cases. Early ioremap/efi spits many warning messages which may be useful. Setup the trap vector early so that any warning/bug can be handled before generic code inv

Re: [PATCH 2/4] RISC-V: Set maximum number of mapped pages correctly

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:07 PDT (-0700), Atish Patra wrote: Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to a wrong value if th

[GIT] Networking

2020-07-24 Thread David Miller
1) Fix RCU locaking in iwlwifi, from Johannes Berg. 2) mt76 can access uninitialized NAPI struct, from Felix Fietkau. 3) Fix race in updating pause settings in bnxt_en, from Vasundhara Volam. 4) Propagate error return properly during unbind failures in ax88172a, from George Kennedy. 5) Fix

Re: INFO: task hung in synchronize_rcu (3)

2020-07-24 Thread syzbot
syzbot has bisected this issue to: commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 Author: Vinicius Costa Gomes Date: Sat Sep 29 00:59:43 2018 + tc: Add support for configuring the taprio scheduler bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=149057ef10 start commi

Re: [PATCH] amdgpu_dm: fix nonblocking atomic commit use-after-free

2020-07-24 Thread Duncan
On Sat, 25 Jul 2020 03:03:52 + Mazin Rezk wrote: > > Am 24.07.20 um 19:33 schrieb Kees Cook: > > > > > There was a fix to disable the async path for this driver that > > > worked around the bug too, yes? That seems like a safer and more > > > focused change that doesn't revert the SLUB defe

Re: [PATCH v6 4/4] dt-bindings: timer: Add CLINT bindings

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > We add DT bindings documentation for CLINT device. > > Signed-off-by: Anup Patel > Reviewed-by: Palmer Dabbelt > Tested-by: Emil Renner Berhing > --- > .../bindings/timer/sifive,clint.yaml | 60 +++ > 1 file change

Re: [PATCH v6 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-24 Thread Atish Patra
On Fri, Jul 24, 2020 at 12:19 AM Anup Patel wrote: > > We add a separate CLINT timer driver for Linux RISC-V M-mode (i.e. > RISC-V NoMMU kernel). > > The CLINT MMIO device provides three things: > 1. 64bit free running counter register > 2. 64bit per-CPU time compare registers > 3. 32bit per-CPU i

INFO: task hung in ovs_dp_cmd_del

2020-07-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e0145983 Merge branch 'fix-bpf_get_stack-with-PEBS' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=16ce401f10 kernel config: https://syzkaller.appspot.com/x/.config?x=2b7b67c0c1819c87 dashboard li

Re: [PATCH] lockdep: Introduce CONFIG_LOCKDEP_LARGE

2020-07-24 Thread Dmitry Vyukov
On Sat, Jul 25, 2020 at 3:30 AM Tetsuo Handa wrote: > > Since syzkaller continues various test cases until the kernel crashes, > syzkaller tends to examine more locking dependencies than normal systems. > As a result, syzbot is reporting that the fuzz testing was terminated > due to hitting upper

Re: [PATCH v5 00/12] Initial MStar/Sigmastar ARMv7 SoC support

2020-07-24 Thread Daniel Palmer
Hi Arnd, Thanks. There is one small fix for the v5 set. One of the DTS file names got broken when I rebased on a different machine. I'll send a patch for that later today. Cheer, Daniel On Fri, 24 Jul 2020 at 23:37, Arnd Bergmann wrote: > > On Fri, Jul 10, 2020 at 11:46 AM Daniel Palmer wrot

[PATCH v2 14/18] tools: gpio: rename nlines to num_lines

2020-07-24 Thread Kent Gibson
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson --- tools/gpio/gpio-utils.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/gpio/gpio-utils.c b/tools/

[PATCH v2 18/18] tools: gpio: add multi-line monitoring to gpio-event-mon

2020-07-24 Thread Kent Gibson
Extend gpio-event-mon to support monitoring multiple lines. This would require multiple lineevent requests to implement using uAPI v1, but can be performed with a single line request using uAPI v2. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 41 --

[PATCH v2 17/18] tools: gpio: add debounce support to gpio-event-mon

2020-07-24 Thread Kent Gibson
Add support for debouncing monitored lines to gpio-event-mon. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 5da980f78881..b64427d78942

[PATCH v2 16/18] tools: gpio: port gpio-event-mon to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-event-mon tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 89 +++-- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 1a303a81aee

[PATCH v2 15/18] tools: gpio: port gpio-hammer to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-hammer tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 27 +- tools/gpio/gpio-utils.c | 109 +-- tools/gpio/gpio-utils.h | 48 + 3 files changed, 112 insertions(+), 72 deletions(

[PATCH v2 08/18] gpiolib: cdev: support GPIOLINE_SET_CONFIG_IOCTL

2020-07-24 Thread Kent Gibson
Add support for GPIOLINE_SET_CONFIG_IOCTL, the uAPI v2 line set config ioctl. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 91 + 1 file changed, 91 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 8cae

[PATCH v2 05/18] gpiolib: cdev: support GPIO_GET_LINE_IOCTL and GPIOLINE_GET_VALUES_IOCTL

2020-07-24 Thread Kent Gibson
Add support for requesting lines using the GPIO_GET_LINE_IOCTL, and returning their current values using GPIOLINE_GET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- The struct line implementation is based on the V1 struct linehandle implementation. The line_ioctl() is a simple wrapper around line

[PATCH v2 07/18] gpiolib: cdev: support edge detection for uAPI v2

2020-07-24 Thread Kent Gibson
Add support for edge detection to lines requested using GPIO_GET_LINE_IOCTL. Signed-off-by: Kent Gibson --- The edge_detector implementation is based on the V1 lineevent implementation. drivers/gpio/gpiolib-cdev.c | 314 +++- drivers/gpio/gpiolib.c | 2 +

[PATCH v2 13/18] tools: gpio: port gpio-watch to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the gpio-watch tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-watch.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/gpio/gpio-watch.c b/tools/gpio/gpio-watch.c index 5cea24fddfa7..0dd5a04ab250 100644 --- a/tools/gpio/gpio-

[PATCH v2 12/18] tools: gpio: port lsgpio to v2 uAPI

2020-07-24 Thread Kent Gibson
Port the lsgpio tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 102 1 file changed, 47 insertions(+), 55 deletions(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index b08d7a5e779b..0a993d535707 100644 -

[PATCH v2 11/18] gpio: uapi: document uAPI v1 as deprecated

2020-07-24 Thread Kent Gibson
Update uAPI documentation to deprecate v1 structs and ioctls. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 3f6db33014f0..92a74c245534 100644 ---

[PATCH v2 09/18] gpiolib: cdev: support GPIOLINE_SET_VALUES_IOCTL

2020-07-24 Thread Kent Gibson
Add support for the GPIOLINE_SET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 66 + 1 file changed, 66 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 4822cb10aa40..0482a16388a0 100644 -

[PATCH v2 06/18] gpiolib: cdev: support GPIO_GET_LINEINFO_V2_IOCTL and GPIO_GET_LINEINFO_WATCH_V2_IOCTL

2020-07-24 Thread Kent Gibson
Add support for GPIO_GET_LINEINFO_V2_IOCTL and GPIO_GET_LINEINFO_WATCH_V2_IOCTL. Signed-off-by: Kent Gibson --- The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of V1 as V2 is richer. The two uAPI versions are mostly independent - other th

[PATCH v2 10/18] gpiolib: cdev: support setting debounce

2020-07-24 Thread Kent Gibson
Add support for setting debounce on a line via the GPIO uAPI. Where debounce is not supported by hardware, a software debounce is provided. Signed-off-by: Kent Gibson --- The implementation of the software debouncer waits for the line to be stable for the debounce period before determining if a

[PATCH v2 03/18] gpiolib: make cdev a build option

2020-07-24 Thread Kent Gibson
Make the gpiolib-cdev module a build option. This allows the CDEV interface to be removed from the kernel to reduce kernel size in applications where is it not required, and provides the parent for other other CDEV interface specific build options to follow. Suggested-by: Bartosz Golaszewski Sig

[PATCH v2 04/18] gpiolib: add build option for CDEV v1 ABI

2020-07-24 Thread Kent Gibson
Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the V2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing V1 was n

[PATCH v2 02/18] gpio: uapi: define uAPI v2

2020-07-24 Thread Kent Gibson
Add a new version of the uAPI to address existing 32/64-bit alignment issues, add support for debounce and event sequence numbers, and provide some future proofing by adding padding reserved for future use. The alignment issue relates to the gpioevent_data, which packs to different sizes on 32-bit

[PATCH v2 01/18] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

2020-07-24 Thread Kent Gibson
Replace constant array sizes with a macro constant to clarify the source of array sizes, provide a place to document any constraints on the size, and to simplify array sizing in userspace if constructing structs from their composite fields. Signed-off-by: Kent Gibson --- This change is not terri

[PATCH v2 00/18] gpio: cdev: add uAPI V2

2020-07-24 Thread Kent Gibson
This patchset defines and implements adds a new version of the GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add support for debounce, event sequence numbers, and allowing for requested lines with different configurations. It provides some future proofing by adding optional configu

[PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio.

2020-07-24 Thread penghao
From: "peng...@deepin.com" TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens enter sleep mode, USB-audio will disconnect from USB bus port, so disabled the /sys/bus/usb/*/power/wakeup Fixesimmediately wakup form s3 state Signed-off-by: peng...@uniontech.com Signed-off-by: peng..

Re: [PATCH v3 0/3] Add functions to operate USB PHY related clock.

2020-07-24 Thread Zhou Yanjie
Gentle ping. 在 2020/7/1 上午12:38, 周琰杰 (Zhou Yanjie) 写道: v2->v3: 1.Remove the wrong "WARN()". 2.Remove extra blank line. 3.Fix wrong parameters in recalc_rate/set_rate functions. 周琰杰 (Zhou Yanjie) (3): clk: JZ4780: Add functions for enable and disable USB PHY. clk: JZ4780: Reformat the code

[PATCH v8 1/5] PCI: Conditionally initialize host bridge native_* members

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan If CONFIG_PCIEPORTBUS is not enabled in kernel then initialing struct pci_host_bridge PCIe specific native_* members to "1" is incorrect. So protect the PCIe specific member initialization with CONFIG_PCIEPORTBUS. Signed-off-by: Kuppuswamy Sathyanarayanan ---

[PATCH v8 4/5] PCI/portdrv: Remove redundant pci_aer_available() check in DPC enable logic

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan In DPC service enable logic, check for services & PCIE_PORT_SERVICE_AER implies pci_aer_available() is true. So there is no need to explicitly check it again. Also, passing pcie_ports=dpc-native in kernel command line implies DPC needs to be enabled in native mod

[PATCH v8 2/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan pcie_ports_native is set only if user requests native handling of PCIe capabilities via pcie_port_setup command line option. User input takes precedence over _OSC based control negotiation result. So consider the _OSC negotiated result only if pcie_ports_native is

[PATCH v8 5/5] PCI/DPC: Move AER/DPC dependency checks out of DPC driver

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, AER and DPC Capabilities dependency checks is distributed between DPC and portdrv service drivers. So move them out of DPC driver. Also, since services & PCIE_PORT_SERVICE_AER check already ensures AER native ownership, no need to add additional pcie_a

[PATCH v8 3/5] ACPI/PCI: Ignore _OSC DPC negotiation result if pcie_ports_dpc_native is set.

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan pcie_ports_dpc_native is set only if user requests native handling of PCIe DPC capability via pcie_port_setup command line option. User input takes precedence over _OSC based control negotiation result. So consider the _OSC negotiated result for DPC ownership only

[PATCH v8 0/5] Simplify PCIe native ownership detection logic

2020-07-24 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Currently, PCIe capabilities ownership status is detected by verifying the status of pcie_ports_native, pcie_ports_dpc_native and _OSC negotiated results (cached in struct pci_host_bridge ->native_* members). But this logic can be simplified, and we can use only

[PATCH v6 4/5] USB: PHY: JZ4770: Reformat the code to align it.

2020-07-24 Thread Zhou Yanjie
Reformat the code (add one level of indentation before the values), to align the code in the macro definition section. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add support for the

[PATCH v6 3/5] USB: PHY: JZ4770: Add support for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add support for probing the phy-jz4770 driver on the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add bindings for the JZ4780

[PATCH v6 0/5] Add USB PHY support for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
v5->v6: 1.Fix the warning that appears during compilation. 2.Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. 周琰杰 (Zhou Yanjie) (5): dt-bindings: USB: Add bindings for new Ingenic SoCs. USB: PHY: JZ4770: Unify code style and simplify code. US

[PATCH v6 1/5] dt-bindings: USB: Add bindings for new Ingenic SoCs.

2020-07-24 Thread Zhou Yanjie
Add the USB PHY bindings for the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Acked-by: Rob Herring --- Notes: v1->v2: Add bindings for the JZ4780 SoC. v2->v3: No change. v3->v4: No chang

[PATCH v6 2/5] USB: PHY: JZ4770: Unify code style and simplify code.

2020-07-24 Thread Zhou Yanjie
1.Modify the macro definition to unify "#define USBPCR_ n" into the "#define USBPCR_ (n << USBPCR__LSB)" style, so as to unify the code style in the "jz4770_phy_init()" and simplify the code. 2.Remove unused macro definitions to simplify the code. Tested-by: 周正 (Zhou Zheng) Sugg

Re: [v7, PATCH 6/7] drm/mediatek: add fifo_size into rdma private data

2020-07-24 Thread Chun-Kuang Hu
The primary thing of this patch is to get fifo size from device tree. So you may modify title to show the primary thing. Yongqiang Niu 於 2020年7月23日 週四 上午10:12寫道: > > the fifo size of rdma in mt8183 is different. > rdma0 fifo size is 5k > rdma1 fifo size is 2k I would like the description to be "

[PATCH 02/10] crypto: hisilicon/zip - unify naming style for functions and macros

2020-07-24 Thread Yang Shen
1.Add prefix 'HZIP' for some macros 2.Add prefix 'hisi_zip' for some functions Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 35 + 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/crypto/hisil

[PATCH 08/10] crypto: hisilicon/zip - move some private macros from 'zip.h' to 'zip_crypto.c'

2020-07-24 Thread Yang Shen
Some macros which are defined in 'zip.h' are related to the struct 'hisi_zip_sqe' and are only used in 'zip_crypto.c'. So move them from 'zip.h' to 'zip_crypto.c'. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h| 14 -- drivers/crypto/h

[PATCH 03/10] crypto: hisilicon/zip - modify debugfs interface parameters

2020-07-24 Thread Yang Shen
From: Shukun Tan Update debugfs interface parameters Signed-off-by: Shukun Tan Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 55 ++--- 1 file changed, 24 insertions(+), 31 deletions(-) diff --git a/drivers/crypto/hi

[PATCH 05/10] crypto: hisilicon/zip - use a enum parameter instead of some macros

2020-07-24 Thread Yang Shen
Macros 'QPC_COMP', 'QPC_DECOMP' and 'HZIP_CTX_Q_NUM' are relative and incremental. So, use an enum instead. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a

[PATCH 01/10] crypto: hisilicon/zip - remove some useless parameters

2020-07-24 Thread Yang Shen
1.Remove the macro 'HZIP_VF_NUM'. 2.Remove 'list' of the struct 'hisi_zip' Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip.h | 1 - drivers/crypto/hisilicon/zip/zip_main.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/crypto/hisilicon/zip

[PATCH 06/10] crypto: hisilicon/zip - add print for error branch

2020-07-24 Thread Yang Shen
Add print for some error branches. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 68 +++ drivers/crypto/hisilicon/zip/zip_main.c | 8 ++-- 2 files changed, 56 insertions(+), 20 deletions(-) diff --git a/drivers/cr

[PATCH 00/10] crypto: hisilicon/zip - misc clean up

2020-07-24 Thread Yang Shen
This patchset make some clean up: patch 1:remove useless parameters patch 4:replace 'sprintf' with 'scnprintf' patch 7:fix static check warning and the rest patch fix some coding style This patchset depends on: https://patchwork.kernel.org/cover/11680181/ Shukun Tan (1): crypto: hisilicon/zip -

[PATCH 10/10] crypto: hisilicon/zip - fix some coding styles

2020-07-24 Thread Yang Shen
1.Unified alignment styles 2.Remove unnecessary goto branch 3.Remove address printf Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 13 ++--- drivers/crypto/hisilicon/zip/zip_main.c | 16 2 files changed, 10 insertions(+

[PATCH 07/10] crypto: hisilicon/zip - fix static check warning

2020-07-24 Thread Yang Shen
Fix some code for PClint warning: Warning - Suspicious Cast Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/cry

[PATCH 09/10] crypto: hisilicon/zip - supplement some comments

2020-07-24 Thread Yang Shen
Supplement some comments. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 7697fa5..49fad18

[PATCH 04/10] crypto: hisilicon/zip - replace 'sprintf' with 'scnprintf'

2020-07-24 Thread Yang Shen
Replace 'sprintf' with 'scnprintf' to avoid overrun. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zi

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

2020-07-24 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2020年7月25日 週六 上午11:32寫道: > > 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 t

[tip:perf/urgent] BUILD SUCCESS fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a

2020-07-24 Thread kernel test robot
randconfig-a004-20200725 i386 randconfig-a006-20200725 i386 randconfig-a002-20200725 i386 randconfig-a001-20200725 x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724

[tip:master] BUILD SUCCESS ada8a84a9bb8ed2f17d30fff369c7c191a94bb9e

2020-07-24 Thread kernel test robot
ig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64 randconfig-a01

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

2020-07-24 Thread Yongqiang Niu
On Thu, 2020-07-23 at 17:40 +0200, Matthias Brugger wrote: > > On 23/07/2020 04:03, Yongqiang Niu wrote: > > This patch add support for mediatek SOC MT8183 > > 1.ovl_2l share driver with ovl > > 2.rdma1 share drive with rdma0, but fifo size is different > > 3.add mt8183 mutex private data, and mms

[tip:timers/core] BUILD SUCCESS 31cd0e119d50cf27ebe214d1a8f7ca36692f13a5

2020-07-24 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core branch HEAD: 31cd0e119d50cf27ebe214d1a8f7ca36692f13a5 timers: Recalculate next timer interrupt only when necessary i386-tinyconfig vmlinux size: ===

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

2020-07-24 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 mt8183-ov

[tip:x86/build] BUILD SUCCESS 587af649bcc04eb016822f209a975005c0092151

2020-07-24 Thread kernel test robot
-20200725 i386 randconfig-a006-20200725 i386 randconfig-a002-20200725 i386 randconfig-a001-20200725 x86_64 randconfig-a014-20200724 x86_64 randconfig-a016-20200724 x86_64 randconfig-a015-20200724 x86_64

Re: [v7, PATCH 2/7] mtk-mmsys: add mmsys private data

2020-07-24 Thread Yongqiang Niu
On Thu, 2020-07-23 at 11:32 +0200, Enric Balletbo Serra wrote: > Hi Yongqiang Niu, > > Thank you for your patch. > > Missatge de Yongqiang Niu del dia dj., 23 > de jul. 2020 a les 4:05: > > > > add mmsys private data > > > > I think this change requires a better explanation of what you are > do

[RFC][PATCH] dma-heap: Add proper kref handling on dma-buf heaps

2020-07-24 Thread John Stultz
Add proper refcounting on the dma_heap structure. While existing heaps are built-in, we may eventually have heaps loaded from modules, and we'll need to be able to properly handle the references to the heaps Cc: Sumit Semwal Cc: Andrew F. Davis Cc: Benjamin Gaignard Cc: Liam Mark Cc: Laura Abb

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-24 Thread Jarkko Sakkinen
On Fri, Jul 24, 2020 at 11:17:26PM +0100, David Howells wrote: > Impose a limit on the number of watches that a user can hold so that they > can't use this mechanism to fill up all the available memory. > > This is done by putting a counter in user_struct that's incremented when a > watch is alloc

  1   2   3   4   5   6   7   8   9   10   >