Re: [PATCH] ide/falconide: Fix module unload

2020-09-24 Thread Geert Uytterhoeven
On Fri, Sep 25, 2020 at 3:43 AM Finn Thain wrote: > Unloading the falconide module results in a crash: > > Unable to handle kernel NULL pointer dereference at virtual address > Oops: > Modules linked in: falconide(-) > PC: [<002930b2>] ide_host_remove+0x2e/0x1d2 > SR: 2000 SP: 0

[PATCH v3 3/6] spi: spi-mtk-nor: support 7 bytes transfer of generic spi

2020-09-24 Thread Ikjoon Jang
When mtk-nor fallbacks to generic spi transfers, it can actually transfer up to 7 bytes. This patch fixes adjust_op_size() and supports_op() to explicitly check 7 bytes range and also fixes possible under/overflow conditions in register offsets calculation. Signed-off-by: Ikjoon Jang --- (no ch

[PATCH v3 2/6] spi: spi-mtk-nor: fix mishandled logics in checking SPI memory operation

2020-09-24 Thread Ikjoon Jang
Fix a bug which limits its protocol availability in supports_op(). Fixes: a59b2c7c56bf ("spi: spi-mtk-nor: support standard spi properties") Signed-off-by: Ikjoon Jang --- (no changes since v1) drivers/spi/spi-mtk-nor.c | 26 +++--- 1 file changed, 11 insertions(+), 15 dele

[PATCH v3 6/6] spi: spi-mtk-nor: Add power management support

2020-09-24 Thread Ikjoon Jang
This patch adds dev_pm_ops to mtk-nor to support suspend/resume, auto suspend delay is set to -1 by default. Accessing registers are only permitted after its clock is enabled to deal with unknown state of operating clk at probe time, Signed-off-by: Ikjoon Jang --- Changes in v3: - Fix a bugfix

[PATCH v3 1/6] dt-bindings: spi: add mt8192-nor compatible string

2020-09-24 Thread Ikjoon Jang
Add MT8192 spi-nor controller support. Signed-off-by: Ikjoon Jang Acked-by: Rob Herring --- (no changes since v1) Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-nor.yaml

[PATCH v3 0/6] spi: spi-mtk-nor: Add mt8192 support

2020-09-24 Thread Ikjoon Jang
This patchset adds 36bit dma address and power management supports for mt8192-nor. Changes in v3: - Fix a bugfix of v2 in checking spi memory operation. - split read_dma function into two (normal/bounce) - Support 7bytes generic spi xfer Changes in v2: - Add power management support - Fix bugs in

[PATCH v3 5/6] spi: spi-mtk-nor: support 36bit dma addressing

2020-09-24 Thread Ikjoon Jang
This patch enables 36bit dma address support to spi-mtk-nor. Currently this is enabled only for mt8192-nor. Signed-off-by: Ikjoon Jang --- (no changes since v1) drivers/spi/spi-mtk-nor.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-mtk-

[PATCH v3 4/6] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

2020-09-24 Thread Ikjoon Jang
Use dma_alloc_coherent() for bounce buffer instead of kmalloc() to make sure the bounce buffer to be allocated within its DMAable range. Signed-off-by: Ikjoon Jang --- (no changes since v1) drivers/spi/spi-mtk-nor.c | 93 +-- 1 file changed, 51 insertions(+

[PATCH] drm/hisilicon: Deleted the drm_device declaration

2020-09-24 Thread Tian Tao
drm_framebuffer.h contains drm/drm_device.h and struct drm_device is already declared in this file, so there is no need to declare struct drm_device in hibm_drm_drv.h. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 -- 1 file changed, 2 deletions(-) diff --git a

Re: [RFC PATCH v2] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-24 Thread Vincent Guittot
Hi Tim On Thu, 24 Sep 2020 at 18:37, Tim Chen wrote: > > > > On 9/22/20 12:14 AM, Vincent Guittot wrote: > > >> > > And a quick test with hackbench on my octo cores arm64 gives for 12 > > Vincent, > > Is it octo (=10) or octa (=8) cores on a single socket for your system? it's a 8 core

[PATCH] media: glossary.rst: use the right case for glossary entries

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x is pedantic with glossary entries: Documentation/userspace-api/media/glossary.rst:17: WARNING: term device driver not found in case sensitive match.made a reference to Device Driver instead. Documentation/userspace-api/media/glossary.rst:59: WARNING: term media hardware not f

[PATCH V3] doc: zh_CN: add translatation for btrfs

2020-09-24 Thread Wang Qing
Translate Documentation/filesystems/btrfs.rst into Chinese. Signed-off-by: Wang Qing --- .../translations/zh_CN/filesystems/btrfs.rst | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/translations/zh_CN/filesystems/btrfs.rst diff --git a/Docum

Re: [PATCH] Bluetooth: btusb: Avoid unnecessary reset upon system resume

2020-09-24 Thread Kai-Heng Feng
> On Sep 25, 2020, at 14:40, 陆朱伟 wrote: > > Hi Abhishek, > >> On September 25, 2020 at 11:34, Abhishek Pandit-Subedi wrote: >> >> + Alex Lu (who contributed the original change) >> >> Hi Kai-Heng, >> >> >> On Thu, Sep 24, 2020 at 12:10 AM Kai-Heng Feng >> wrote: >>> >>> [+Cc linux-usb]

Re: [PATCH 0/3] Prevent out-of-bounds access for built-in font data buffers

2020-09-24 Thread Jiri Slaby
On 24. 09. 20, 15:38, Peilin Ye wrote: > Hi all, > > syzbot has reported [1] a global out-of-bounds read issue in > fbcon_get_font(). A malicious user may resize `vc_font.height` to a large > value in vt_ioctl(), causing fbcon_get_font() to overflow our built-in > font data buffers, declared in li

Re: [PATCH v6 0/6] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-24 Thread Mike Rapoport
On Thu, Sep 24, 2020 at 07:34:28PM -0700, Andrew Morton wrote: > On Thu, 24 Sep 2020 16:28:58 +0300 Mike Rapoport wrote: > > > From: Mike Rapoport > > > > Hi, > > > > This is an implementation of "secret" mappings backed by a file descriptor. > > I've dropped the boot time reservation patch f

Re: [PATCH v3] doc: zh_CN: index files in arm64 subdirectory

2020-09-24 Thread Alex Shi
在 2020/9/18 下午4:11, Bailu Lin 写道: > Add arm64 subdirectory into the table of Contents for zh_CN, > then add other translations in arm64 conveniently. > > Signed-off-by: Bailu Lin > --- > Changes in v3: > - Correct email encoding format. > Changes in v2: > - Fix patch description. > --- > Do

Re: [PATCH] Bluetooth: btusb: Avoid unnecessary reset upon system resume

2020-09-24 Thread 陆朱伟
Hi Abhishek, > On September 25, 2020 at 11:34, Abhishek Pandit-Subedi wrote: > > + Alex Lu (who contributed the original change) > > Hi Kai-Heng, > > > On Thu, Sep 24, 2020 at 12:10 AM Kai-Heng Feng > wrote: > > > > [+Cc linux-usb] > > > > Hi Abhishek, > > > > > On Sep 24, 2020, at 04:41, Abh

Re: [PATCH] csky: Fix a size determination in gpr_get()

2020-09-24 Thread Guo Ren
On Wed, Sep 23, 2020 at 12:52 PM Al Viro wrote: > > On Wed, Sep 23, 2020 at 10:37:31AM +0800, Guo Ren wrote: > > > > What's going on there? The mapping is really weird - assuming > > > you had v0..v31 in the first 32 elements of regs->vr[], you > > > end up with > > > > > > v0 v1 v2 v3 v2 v3 v6 v

Re: [PATCH V2] doc: zh_CN: add translatation for tmpfs.rst

2020-09-24 Thread Alex Shi
The same issue: error: dev/null: does not exist in index Patch failed at 0001 doc: zh_CN: add translatation for tmpfs.rst The copy of the patch that failed is found in: Maybe it is editor issue of your patch, Could you try you git send-email directly? Thanks Alex 在 2020/9/24 下午2:23, Wang Qing 写

[PATCH v3 6/8] media: docs: make DVB documents more compatible with Sphinx 3.1+

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab --- .../dvb/audio-bilingual-channel-select.rst | 7 +++ .../media/dv

[PATCH v3 0/8] Improve support for building docs with Sphinx 3.1+

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x new c domain code broke the doc build on several ways: - it broke the cdomains.py extension that were giving namespace support for C references; - it broke the automarkup script; - it broke c:type references that kernel-doc and other parts of the kernel were using to do cross-refere

[PATCH v3 4/8] media: docs: make CEC documents compatible with Sphinx 3.1+

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab --- .../media/cec/cec-func-close.rst | 10 +++--- .../media/c

[PATCH v3 8/8] media: docs: make RC documents more compatible with Sphinx 3.1+

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab --- .../userspace-api/media/rc/lirc-get-features.rst | 9 - .../use

Re: [PATCH v3 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2020-09-24 Thread Uwe Kleine-König
Hello Jonathan, On Thu, Sep 24, 2020 at 09:24:52PM +0200, Jonathan Neuschäfer wrote: > The Netronix EC provides a PWM output which is used for the backlight > on some ebook readers. This patches adds a driver for the PWM output. > > The .get_state callback is not implemented, because the PWM stat

[PATCH v3 1/8] docs: cdomain.py: add support for a new Sphinx 3.1+ tag

2020-09-24 Thread Mauro Carvalho Chehab
Since Sphinx 3.0, the C domain code was rewritten, but only after version 3.1 it got support for setting namespaces on C domains, with is something that it is required, in order to document system calls, like ioctl() and others. As part of changing the documentation subsystem to properly build wit

[PATCH v3 7/8] media: docs: make MC documents more compatible with Sphinx 3.1+

2020-09-24 Thread Mauro Carvalho Chehab
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab --- .../media/mediactl/media-func-close.rst| 10 +++--- .../me

[PATCH v3 2/8] docs: conf.py: disable automarkup for Sphinx 3.x

2020-09-24 Thread Mauro Carvalho Chehab
The class types changed after the C domain rewrite on Sphinx 3.x. Due to that, the automarkup extension is just generating additional noise when trying to convert structs and other markups into cross references. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 4 ++-- 1 file chan

[PATCH v3 3/8] scripts: kernel-doc: make it more compatible with Sphinx 3.x

2020-09-24 Thread Mauro Carvalho Chehab
With Sphinx 3.x, the ".. c:type:" tag expects a typedef-like format, and it accepts just one name afterward. We actually need to use the new c:struct, c:enum, ... types when dealing with Sphinx 3.x. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 69 +++

[PATCH net] vmxnet3: fix cksum offload issues for non-udp tunnels

2020-09-24 Thread Ronak Doshi
Commit dacce2be3312 ("vmxnet3: add geneve and vxlan tunnel offload support") added support for encapsulation offload. However, the inner offload capability is to be restrictued to UDP tunnels. This patch fixes the issue for non-udp tunnels by adding features check capability and filtering appropri

[PATCH] scsi: bfa: fix error return in bfad_pci_init()

2020-09-24 Thread Jing Xiangfeng
Fix to return error code -ENODEV from the error handling case instead of 0. Fixes: 11ea3824140c ("scsi: bfa: fix calls to dma_set_mask_and_coherent()") Signed-off-by: Jing Xiangfeng --- drivers/scsi/bfa/bfad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/bfa/bfad.c b/drivers/

[PATCH V3 RESEND 10/11] usb: gadget: bdc: fix checkpatch.pl spacing error

2020-09-24 Thread Chunfeng Yun
fix checkpatch.pl error: ERROR:SPACING: space prohibited before that ',' Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH V3 RESEND 06/11] usb: gadget: bdc: add identifier name for function declaraion

2020-09-24 Thread Chunfeng Yun
This is used to avoid the warning of function arguments, e.g. WARNING:FUNCTION_ARGUMENTS: function definition argument 'u32' should also have an identifier name Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian ---

Re: [PATCH V2] doc: zh_CN: add translatation for btrfs

2020-09-24 Thread Alex Shi
I still can not apply your patch, is there sth wrong? Applying: doc: zh_CN: add translatation for btrfs error: dev/null: does not exist in index Patch failed at 0001 doc: zh_CN: add translatation for btrfs The copy of the patch that failed is found in: /root/linux-next/.git/rebase-apply/patch

[PATCH V3 RESEND 05/11] usb: gadget: bdc: fix check warning of block comments alignment

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- drivers/usb/gadget/udc/

[PATCH V3 RESEND 11/11] usb: gadget: bdc: fix checkpatch.pl repeated word warning

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:REPEATED_WORD: Possible repeated word: 'and' Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH V3 RESEND 04/11] usb: gadget: bdc: fix warning of embedded function name

2020-09-24 Thread Chunfeng Yun
Use '"%s...", __func__' to replace embedded function name Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_dbg.c | 2 +- drivers/usb/gadget/udc/bdc/bdc_ep.c | 6 +++--- 2 files chang

[PATCH V3 RESEND 02/11] usb: gadget: bdc: remove bdc_ep_set_halt() declaration

2020-09-24 Thread Chunfeng Yun
No definition for bdc_ep_set_halt(), so remove it. Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_cmd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/bdc

[PATCH V3 RESEND 08/11] usb: gadget: bdc: use the BIT macro to define bit filed

2020-09-24 Thread Chunfeng Yun
Prefer using the BIT macro to define bit fileds Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 84 1 file changed, 42 insertions(+), 42

[PATCH V3 RESEND 01/11] usb: gadget: bdc: fix improper SPDX comment style for header file

2020-09-24 Thread Chunfeng Yun
For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/ud

[PATCH V3 RESEND 03/11] usb: gadget: bdc: prefer pointer dereference to pointer type

2020-09-24 Thread Chunfeng Yun
Prefer kzalloc(sizeof(*bd_table)...) over kzalloc(sizeof(struct bd_table) Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH V3 RESEND 09/11] usb: gadget: bdc: fix checkpatch.pl tab warning

2020-09-24 Thread Chunfeng Yun
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements WARNING:TABSTOP: Statements should start on a tabstop Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_cmd.

[PATCH V3 RESEND 07/11] usb: gadget: bdc: avoid precedence issues

2020-09-24 Thread Chunfeng Yun
Add () around macro argument to avoid precedence issues Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) di

Re: [PATCH v1 1/2] regulator: rtmv20: Adds support for Richtek RTMV20 load switch regulator

2020-09-24 Thread kernel test robot
Hi cy_huang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.9-rc6] [also build test WARNING on next-20200924] [cannot apply to regulator/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-09-24 Thread Viresh Kumar
On 25-09-20, 10:27, Hector Yuan wrote: > Hi, Viresh & Rob Sir: > > I will change frequency domain to below and define it in cpufreq_hw > schema rather than cpu node. > > mediatek,freq-domain-0 = <&cpu0>, <&cpu1>; I think it would be better to do it the standard way we have done it elsewhere. i.e

[PATCH] fuse: avoid deadlock by clearing __GFP_FS

2020-09-24 Thread jing . xia . mail
From: Jing Xia Writeback thread and fuse block each other. Writeback thread waits fuse's reply with inode's I_SYNC being held.Fuse enters the slowpath of memory allocation when handle the request and has to wait the inode's I_SYNC is cleared. writeback's backtrace - PID: 6197

Re: [PATCH RESEND v3 02/11] usb: gadget: bdc: remove bdc_ep_set_halt() declaration

2020-09-24 Thread Chunfeng Yun
Hi, Felipe, Sorry again, please ignore these ones, 01/11 is lost, will resend On Fri, 2020-09-25 at 14:01 +0800, Chunfeng Yun wrote: > No definition for bdc_ep_set_halt(), so remove it. > > Cc: Florian Fainelli > Signed-off-by: Chunfeng Yun > Acked-by: Florian Fainelli > --- > v3: add ac

Re:Partner With Me

2020-09-24 Thread DR ISMAEL 11
-- Dear Sir, I am Dr. Ismael Ismael (Former Finance Minister) of Arab Republic Of Syria, my aim and purpose for reaching you is purely due to the circumstances around me and the need for me to relocate my entire family to a different country where there is rule of law and freedom as my

Re: [PATCH 01/11] usb: gadget: bdc: fix improper SPDX comment style for header file

2020-09-24 Thread Chunfeng Yun
Hi, Felipe, Sorry, please ignore the series! forget version changes log On Fri, 2020-09-25 at 13:58 +0800, Chunfeng Yun wrote: > For C header files Documentation/process/license-rules.rst > mandates C-like comments (opposed to C source files where > C++ style should be used). > > Change-Id:

Re: selftests: pidfd: pidfd_wait hangs on linux next kernel on all devices

2020-09-24 Thread Naresh Kamboju
On Thu, 24 Sep 2020 at 21:51, Christian Brauner wrote: > > On Thu, Sep 24, 2020 at 04:33:17PM +0200, Christian Brauner wrote: > > On Wed, Sep 23, 2020 at 07:52:05PM +0530, Naresh Kamboju wrote: > > > selftests: pidfd: pidfd_wait hangs on linux next kernel on x86_64, > > > i386 and arm64 Juno-r2 >

Re: [PATCH V2 1/4] cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()

2020-09-24 Thread Viresh Kumar
On 24-09-20, 17:10, Lukasz Luba wrote: > Because of supporting this reset file, the code is going to be a bit > complex I will say not very straight forward, but it isn't complex as well. > and also visited from the scheduler. I don't know if the > config for stats is enabled for production kerne

RE: [PATCH v2 3/3] PM / Domains: Add support for PM domain on/off notifiers for genpd

2020-09-24 Thread Peng Fan
Hi Ulf, > Subject: [PATCH v2 3/3] PM / Domains: Add support for PM domain on/off > notifiers for genpd > > A device may have specific HW constraints that must be obeyed to, before its > corresponding PM domain (genpd) can be powered off - and vice verse at > power on. These constraints can't be m

[PATCH v4 0/2] Add bus lock VM exit support

2020-09-24 Thread Chenyi Qiang
This patch series add the support for bus lock VM exit in KVM. It is a sub-feature of bus lock detection. When it is enabled by the VMM, the processor generates a "Bus Lock" VM exit following execution of an instruction if the processor detects that one or more bus locks were caused the instruction

[PATCH] scsi: snic: Remove unnecessary condition to simplify the code

2020-09-24 Thread Jing Xiangfeng
ret is always zero or an error in this code path. So the assignment to ret is redundant, and the code jumping to a label is unneed. Let's remove them to simplify the code. No functional changes. Signed-off-by: Jing Xiangfeng --- drivers/scsi/snic/snic_scsi.c | 4 1 file changed, 4 deletions

RE: [PATCH v2 1/2] dt-bindings: usb: dwc3-xilinx: Add documentation for Versal DWC3 Controller

2020-09-24 Thread Manish Narani
Hi Rob/Felipe, Thanks for the review. > -Original Message- > From: Felipe Balbi > Sent: Thursday, September 24, 2020 12:47 PM > To: Rob Herring ; Manish Narani > Cc: gre...@linuxfoundation.org; Michal Simek ; > p.za...@pengutronix.de; linux-...@vger.kernel.org; > devicet...@vger.kernel.

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-24 Thread Felipe Balbi
Hi, Alan Stern writes: >> > Hence, the reason if there was already a pending IRQ triggered, the >> > dwc3_gadget_disable_irq() won't ensure the IRQ is handled. We can do >> > something like: >> > if (!is_on) >> >dwc3_gadget_disable_irq() >> > synchronize_irq() >> > spin_lock_irqsave() >> >

[PATCH RESEND v3 11/11] usb: gadget: bdc: fix checkpatch.pl repeated word warning

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:REPEATED_WORD: Possible repeated word: 'and' Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH RESEND v3 04/11] usb: gadget: bdc: fix warning of embedded function name

2020-09-24 Thread Chunfeng Yun
Use '"%s...", __func__' to replace embedded function name Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_dbg.c | 2 +- drivers/usb/gadget/udc/bdc/bdc_ep.c | 6 +++--- 2 files chang

[PATCH RESEND v3 05/11] usb: gadget: bdc: fix check warning of block comments alignment

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- drivers/usb/gadget/udc/

[PATCH RESEND v3 09/11] usb: gadget: bdc: fix checkpatch.pl tab warning

2020-09-24 Thread Chunfeng Yun
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements WARNING:TABSTOP: Statements should start on a tabstop Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_cmd.

[PATCH RESEND v3 03/11] usb: gadget: bdc: prefer pointer dereference to pointer type

2020-09-24 Thread Chunfeng Yun
Prefer kzalloc(sizeof(*bd_table)...) over kzalloc(sizeof(struct bd_table) Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH RESEND v3 10/11] usb: gadget: bdc: fix checkpatch.pl spacing error

2020-09-24 Thread Chunfeng Yun
fix checkpatch.pl error: ERROR:SPACING: space prohibited before that ',' Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH RESEND v3 07/11] usb: gadget: bdc: avoid precedence issues

2020-09-24 Thread Chunfeng Yun
Add () around macro argument to avoid precedence issues Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) di

[PATCH RESEND v3 08/11] usb: gadget: bdc: use the BIT macro to define bit filed

2020-09-24 Thread Chunfeng Yun
Prefer using the BIT macro to define bit fileds Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc.h | 84 1 file changed, 42 insertions(+), 42

[PATCH RESEND v3 06/11] usb: gadget: bdc: add identifier name for function declaraion

2020-09-24 Thread Chunfeng Yun
This is used to avoid the warning of function arguments, e.g. WARNING:FUNCTION_ARGUMENTS: function definition argument 'u32' should also have an identifier name Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian ---

[PATCH RESEND v3 02/11] usb: gadget: bdc: remove bdc_ep_set_halt() declaration

2020-09-24 Thread Chunfeng Yun
No definition for bdc_ep_set_halt(), so remove it. Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- v3: add acked-by Florian v2: add Cc Florian --- drivers/usb/gadget/udc/bdc/bdc_cmd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/bdc

Re: [PATCH] Bluetooth: btusb: Avoid unnecessary reset upon system resume

2020-09-24 Thread Kai-Heng Feng
Hi Abhishek, > On Sep 25, 2020, at 11:33, Abhishek Pandit-Subedi > wrote: > > + Alex Lu (who contributed the original change) > > Hi Kai-Heng, > > > On Thu, Sep 24, 2020 at 12:10 AM Kai-Heng Feng > wrote: >> >> [+Cc linux-usb] >> >> Hi Abhishek, >> >>> On Sep 24, 2020, at 04:41, Abhishek

[PATCH 08/11] usb: gadget: bdc: use the BIT macro to define bit filed

2020-09-24 Thread Chunfeng Yun
Prefer using the BIT macro to define bit fileds Change-Id: I021f6230c4c3248aa89aed808495c1a950df772e Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc.h | 84 1 file changed, 42 insertions(+),

[PATCH 09/11] usb: gadget: bdc: fix checkpatch.pl tab warning

2020-09-24 Thread Chunfeng Yun
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements WARNING:TABSTOP: Statements should start on a tabstop Change-Id: Iec66c7e29babc2835e0137d298093b396aa2759d Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_

[PATCH 01/11] usb: gadget: bdc: fix improper SPDX comment style for header file

2020-09-24 Thread Chunfeng Yun
For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Change-Id: I70ad2038e20ba92497028d687c62d63c9ff93991 Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadge

[PATCH 11/11] usb: gadget: bdc: fix checkpatch.pl repeated word warning

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:REPEATED_WORD: Possible repeated word: 'and' Change-Id: I48d89c4c001e11ae13d8ff2190c51328a3faaf46 Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 04/11] usb: gadget: bdc: fix warning of embedded function name

2020-09-24 Thread Chunfeng Yun
Use '"%s...", __func__' to replace embedded function name Change-Id: I52edbccf1ad6e53df97858a5c1f1f91846037aac Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_dbg.c | 2 +- drivers/usb/gadget/udc/bdc/bdc_ep.c | 6 +++--- 2 files c

[PATCH 10/11] usb: gadget: bdc: fix checkpatch.pl spacing error

2020-09-24 Thread Chunfeng Yun
fix checkpatch.pl error: ERROR:SPACING: space prohibited before that ',' Change-Id: Idc496de937e46c224269c94bf913138f3196bb10 Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH 05/11] usb: gadget: bdc: fix check warning of block comments alignment

2020-09-24 Thread Chunfeng Yun
fix the warning: WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line Change-Id: Idc89c805650641c14ad554f7733397d1255678b2 Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- drivers/usb/gadget/

[PATCH 07/11] usb: gadget: bdc: avoid precedence issues

2020-09-24 Thread Chunfeng Yun
Add () around macro argument to avoid precedence issues Change-Id: I036a28eb94f97d955015d5f58a168bf66bdecf43 Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[PATCH 06/11] usb: gadget: bdc: add identifier name for function declaraion

2020-09-24 Thread Chunfeng Yun
This is used to avoid the warning of function arguments, e.g. WARNING:FUNCTION_ARGUMENTS: function definition argument 'u32' should also have an identifier name Change-Id: Ia63d562247e18230fafe5cb2b6014f5f8d7d Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli -

[PATCH 03/11] usb: gadget: bdc: prefer pointer dereference to pointer type

2020-09-24 Thread Chunfeng Yun
Prefer kzalloc(sizeof(*bd_table)...) over kzalloc(sizeof(struct bd_table) Change-Id: If78cc929287fa45a3f9de38f2e7057307cd295dd Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH 02/11] usb: gadget: bdc: remove bdc_ep_set_halt() declaration

2020-09-24 Thread Chunfeng Yun
No definition for bdc_ep_set_halt(), so remove it. Change-Id: Iaaa837a27688ca44b7b361b0e1226d2d4ae4057d Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_cmd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc

[rcu:dev.2020.09.22a] BUILD SUCCESS 1d39c91bee0e9fcd601235404d60e704fd020ff6

2020-09-24 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200924

Re: [PATCH] tpm: of: avoid __va() translation for event log address

2020-09-24 Thread Jarkko Sakkinen
On Tue, Sep 22, 2020 at 11:41:28AM +0200, Ard Biesheuvel wrote: > The TPM event log is provided to the OS by the firmware, by loading > it into an area in memory and passing the physical address via a node > in the device tree. > > Currently, we use __va() to access the memory via the kernel's lin

Re: [PATCH v1 0/6] seccomp: Implement constant action bitmaps

2020-09-24 Thread Rasmus Villemoes
On 24/09/2020 15.58, YiFei Zhu wrote: > On Thu, Sep 24, 2020 at 8:46 AM Rasmus Villemoes > wrote: >> But one thing I'm wondering about and I haven't seen addressed anywhere: >> Why build the bitmap on the kernel side (with all the complexity of >> having to emulate the filter for all syscalls)? Wh

Re: [PATCH] tpm: of: avoid __va() translation for event log address

2020-09-24 Thread Jarkko Sakkinen
On Fri, Sep 25, 2020 at 08:56:30AM +0300, Jarkko Sakkinen wrote: > On Tue, Sep 22, 2020 at 11:41:28AM +0200, Ard Biesheuvel wrote: > > The TPM event log is provided to the OS by the firmware, by loading > > it into an area in memory and passing the physical address via a node > > in the device tree

Re: [PATCH] rcu: Clarify nocb kthreads naming in RCU_NOCB_CPU config

2020-09-24 Thread Neeraj Upadhyay
Hi Paul, On 9/25/2020 4:29 AM, Paul E. McKenney wrote: On Thu, Sep 24, 2020 at 12:04:10PM +0530, Neeraj Upadhyay wrote: Clarify the "x" in rcuox/N naming in RCU_NOCB_CPU config description. Signed-off-by: Neeraj Upadhyay Applied with a few additional updates as shown below. As always, plea

Re: [PATCH v3 5/7] rtc: New driver for RTC in Netronix embedded controller

2020-09-24 Thread Uwe Kleine-König
Hello Jonathan, On Thu, Sep 24, 2020 at 09:24:53PM +0200, Jonathan Neuschäfer wrote: > +#define NTXEC_REG_WRITE_YEAR 0x10 > +#define NTXEC_REG_WRITE_MONTH0x11 > +#define NTXEC_REG_WRITE_DAY 0x12 > +#define NTXEC_REG_WRITE_HOUR 0x13 > +#define NTXEC_REG_WRITE_MINUTE 0x14 > +#define N

Re: [PATCH 05/13] x86: Add early TPM1.2/TPM2.0 interface support for Secure Launch

2020-09-24 Thread Jarkko Sakkinen
On Thu, Sep 24, 2020 at 10:58:33AM -0400, Ross Philipson wrote: > From: "Daniel P. Smith" > > This commit introduces an abstraction for TPM1.2 and TPM2.0 devices > above the TPM hardware interface. > > Signed-off-by: Daniel P. Smith > Signed-off-by: Ross Philipson This is way, way too PoC. I

Re: [PATCH v3] i2c: imx: Fix external abort on interrupt in exit paths

2020-09-24 Thread Oleksij Rempel
On Sun, Sep 20, 2020 at 11:12:38PM +0200, Krzysztof Kozlowski wrote: > If interrupt comes late, during probe error path or device remove (could > be triggered with CONFIG_DEBUG_SHIRQ), the interrupt handler > i2c_imx_isr() will access registers with the clock being disabled. This > leads to extern

linux-next: manual merge of the tip tree with the pci tree

2020-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/kernel/apic/msi.c between commit: 2705b8e4d46f ("x86/apic/msi: Use Real PCI DMA device when configuring IRTE") from the pci tree and commit: 7ca435cf857d ("x86/irq: Cleanup the arch_*_msi_irqs() leftovers") fr

Re: [PATCH v9 08/20] gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 06:41:45PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:35 AM Kent Gibson wrote: > > > > Add support for GPIO_V2_GET_LINEINFO_IOCTL and > > GPIO_V2_GET_LINEINFO_WATCH_IOCTL. > > > > +#ifdef CONFIG_GPIO_CDEV_V1 > > +static int lineinfo_ensure_abi_version(struct

Re: [PATCH 00/13] x86: Trenchboot secure dynamic launch Linux kernel support

2020-09-24 Thread Jarkko Sakkinen
On Thu, Sep 24, 2020 at 10:58:28AM -0400, Ross Philipson wrote: > The Trenchboot project focus on boot security has led to the enabling of > the Linux kernel to be directly invocable by the x86 Dynamic Launch > instruction(s) for establishing a Dynamic Root of Trust for Measurement > (DRTM). The dy

linux-next: manual merge of the tip tree with the vfs tree

2020-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got conflicts in: arch/ia64/Kconfig arch/s390/Kconfig between commit: 5e6e9852d6f7 ("uaccess: add infrastructure for kernel builds with set_fs()") from the vfs tree and commit: 077ee78e3928 ("PCI/MSI: Make arch_.*_msi_irq[s] fallbacks s

linux-next: manual merge of the tip tree with the kbuild tree

2020-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/arm/Makefile between commit: 596b0474d3d9 ("kbuild: preprocess module linker script") from the kbuild tree and commit: 5a17850e251a ("arm/build: Warn on orphan section placement") from the tip tree. I fixed it up

Re: [PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO

2020-09-24 Thread Bhupesh Sharma
Hi Alexander, On Thu, Sep 24, 2020 at 6:18 PM Alexander Egorenkov wrote: > > The offset of the field 'init_uts_ns.name' has changed > since > > commit 9a56493f6942c0e2df1579986128721da96e00d8 > Author: Kirill Tkhai > Date: Mon Aug 3 13:16:21 2020 +0300 > > uts: Use generic ns_common::count

linux-next: manual merge of the tip tree with the pci tree

2020-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/pci/controller/vmd.c between commit: 42443f036042 ("PCI: vmd: Create IRQ Domain configuration helper") from the pci tree and commit: 585dfe8abc44 ("PCI: vmd: Dont abuse vector irqomain as parent") from the tip

[rcu:rcu/test 55/64] kernel/rcu/rcutorture.c:1507:13: warning: no previous prototype for function 'rcu_nocb_cpu_offload'

2020-09-24 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test head: 516c2f87d0d1204a9ea1b36298283f74056a7eab commit: 4df5d8a622235d0b26aba92c881d190667e4d6c3 [55/64] rcutorture: Test runtime toggling of CPUs' callback offloading config: riscv-randconfig-r036-20200923 (a

KMSAN: uninit-value in udf_evict_inode

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=142cf80990 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

KMSAN: uninit-value in f2fs_lookup

2020-09-24 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=14f5b19b90 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

Re: [Intel-wired-lan] [PATCH v3] e1000e: Increase iteration on polling MDIC ready bit

2020-09-24 Thread Paul Menzel
Dear Kai-Heng, Thank you for patch version 3. Am 24.09.20 um 18:45 schrieb Kai-Heng Feng: We are seeing the following error after S3 resume: [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 [ 704.844232] e1000e :00:1f.6 eno1: MDI Write did not complete [ 704.902817] e1000e 00

Re: [stable 4.19] [PANIC]: tracing: Centralize preemptirq tracepoints and unify their usage

2020-09-24 Thread Greg Kroah-Hartman
On Fri, Sep 25, 2020 at 10:13:05AM +0530, Naresh Kamboju wrote: > >From stable rc 4.18.1 onwards to today's stable rc 4.19.147 > > There are two problems while running LTP tracing tests > 1) kernel panic on i386, qemu_i386, x86_64 and qemu_x86_64 [1] > 2) " segfault at 0 ip " and "Code: Bad RIP

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-24 Thread Kuppuswamy, Sathyanarayanan
On 9/24/20 1:52 PM, Sinan Kaya wrote: On 9/24/2020 12:06 AM, Kuppuswamy, Sathyanarayanan wrote: For problem description, please check the following details Current pcie_do_recovery() implementation has following two issues: 1. Fatal (DPC) error recovery is currently broken for non-hotplug c

Re: [PATCH v3 2/3] misc: bcm-vk: add Broadcom VK driver

2020-09-24 Thread Greg Kroah-Hartman
On Thu, Sep 24, 2020 at 02:40:08PM -0700, Scott Branden wrote: > > Ugh, yes, it is uncommon because those are two different things. Why do > > you need/want a misc driver to control a tty device? Why do you need a > > tty device? What really is this beast? > The beast consists of a PCI card.  Th

[PATCH v3 7/7] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller

2020-09-24 Thread Jonathan Neuschäfer
Enable the Netronix EC on the Kobo Aura ebook reader. Several features are still missing: - Frontlight/backlight. The vendor kernel drives the frontlight LED using the PWM output of the EC and an additional boost pin that increases the brightness. - Battery monitoring - Interrupts for RTC

  1   2   3   4   5   6   7   8   9   10   >