[PATCH v2 17/20] staging: rtl8723bs: remove macros updating unused fields in struct security_priv

2021-03-27 Thread Fabio Aiuto
remove macros updating statistic fields in struct security_priv Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_security.c | 68 --- 1 file changed, 68 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c

[PATCH v2 20/20] staging: rtl8723bs: remove unused macros in include/drv_types.c

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/drv_types.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index

Re: [PATCH] PCI: Disallow retraining link for Atheros QCA98xx chips on non-Gen1 PCIe bridges

2021-03-27 Thread Marek Behún
On Sat, 27 Mar 2021 14:29:59 +0100 Pali Rohár wrote: > I can change this to 'if (!ret)' if needed, no problem. > > I use 'if (!val)' mostly for boolean and pointer variables. If > variable can contain more integer values then I lot of times I use > '=='. Comparing integer varibales with

Re: [PATCH net-next,v2] net: dsa: mt7530: clean up core and TRGMII clock setup

2021-03-27 Thread Andrew Lunn
On Fri, Mar 26, 2021 at 11:07:52PM -0700, Ilya Lipnitskiy wrote: > Three minor changes: > > - When disabling PLL, there is no need to call core_write_mmd_indirect > directly, use the core_write wrapper instead like the rest of the code > in the function does. This change helps with

Re: [PATCHv3] Introduced new tracing mode KCOV_MODE_UNIQUE.

2021-03-27 Thread Andrey Konovalov
On Fri, Mar 26, 2021 at 9:52 PM Alexander Lochmann wrote: > Hi Alexander, > It simply stores the executed PCs. > The execution order is discarded. > Each bit in the shared buffer represents every fourth > byte of the text segment. > Since a call instruction on every supported > architecture is

Re: [PATCH v10 2/6] arm64: kvm: Introduce MTE VM feature

2021-03-27 Thread Catalin Marinas
On Fri, Mar 12, 2021 at 03:18:58PM +, Steven Price wrote: > diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c > index 77cb2d28f2a4..b31b7a821f90 100644 > --- a/arch/arm64/kvm/mmu.c > +++ b/arch/arm64/kvm/mmu.c > @@ -879,6 +879,22 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, >

Re: [PATCH 0/3] Apple M1 DART IOMMU driver

2021-03-27 Thread Sven Peter
Hi Robin, On Thu, Mar 25, 2021, at 12:50, Robin Murphy wrote: > On 2021-03-25 07:53, Sven Peter wrote: > > The iommu binding documentation [1] mentions that > > > > The device tree node of the IOMMU device's parent bus must contain a > > valid > > "dma-ranges" property that describes

Re: [PATCH v1 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-27 Thread Andy Lutomirski
> On Mar 26, 2021, at 8:40 PM, Kuppuswamy, Sathyanarayanan > wrote: > >  > > On 3/26/21 7:40 PM, Andy Lutomirski wrote: On Mar 26, 2021, at 5:18 PM, Kuppuswamy Sathyanarayanan wrote: >>> >>> In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions >>> are not

Re: [PATCH v9 18/22] media: uvcvideo: Downgrade control error messages

2021-03-27 Thread Hans Verkuil
On 26/03/2021 10:58, Ricardo Ribalda wrote: > Convert the error into a debug message, so they are still valid for > debugging but do not fill dmesg. > > Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil > --- > drivers/media/usb/uvc/uvc_video.c | 2 +- > 1 file changed, 1

[PATCH] drm: DON'T require each CRTC to have a unique primary plane

2021-03-27 Thread Paul Cercueil
The ingenic-drm driver has two mutually exclusive primary planes already; so the fact that a CRTC must have one and only one primary plane is an invalid assumption. Fixes: 96962e3de725 ("drm: require each CRTC to have a unique primary plane") Cc: # 5.11 Signed-off-by: Paul Cercueil ---

Re: [PATCH v9 16/22] media: uvcvideo: Return -EACCES to inactive controls

2021-03-27 Thread Hans Verkuil
On 26/03/2021 10:58, Ricardo Ribalda wrote: > If a control is inactive return -EACCES to let the userspace know that > the value will not be applied automatically when the control is active > again. > > Suggested-by: Hans Verkuil > Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil >

Re: F2FS Segmentation Fault

2021-03-27 Thread Nathan Royce
An update, not quite 1 year later. I encountered another segfault issue. It began with my email report to the linux-btrfs mailing list titled "BTRFS Balance Hard System Crash (Blinking LEDs)" just the other day. Essentially, I had run "btrfs balance" on my btrfs filesystem drive/partition (not

Re: [PATCH v9 17/22] media: docs: Document the behaviour of uvcdriver

2021-03-27 Thread Hans Verkuil
On 27/03/2021 13:01, Ricardo Ribalda wrote: > Hi Hans > > Thanks for your review! > > On Sat, Mar 27, 2021 at 12:19 PM Hans Verkuil > wrote: >> >> On 26/03/2021 10:58, Ricardo Ribalda wrote: >>> The uvc driver relies on the camera firmware to keep the control states >>> and therefore is not

arch/x86/include/asm/syscall_wrapper.h:40:2: warning: no previous prototype for '__x32_compat_sys_io_setup'

2021-03-27 Thread kernel test robot
: x86_64-randconfig-r004-20210327 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6cc8d2b286d9e7168d72e342d1b031317cd7752b git remote add linus https

Re: F2FS Segmentation Fault

2021-03-27 Thread Nathan Royce
I don't know how much of it was the issue, but when I unmounted the sd-card, and closed the cryptsetup for it, and then ran non-destructive badblocks on it, I was getting ONLY errors. I stopped bb, then pulled out the card, blew on it, wiped down the contacts with rubbing alcohol, let it dry, put

Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Greg KH
On Fri, Mar 26, 2021 at 02:09:36PM -0700, Don Bollinger wrote: > > You keep missing the point. I always refer to the KAPI. The driver we can > > rework and rework, throw away and reimplement, as much as we want. > > The KAPI cannot be changed, it is ABI. It is pretty much frozen the day > the > >

Re: [PATCH v4 2/5] powercap/drivers/dtpm: Create a registering system

2021-03-27 Thread Greg KH
On Fri, Mar 12, 2021 at 02:04:08PM +0100, Daniel Lezcano wrote: > A SoC can be differently structured depending on the platform and the > kernel can not be aware of all the combinations, as well as the > specific tweaks for a particular board. > > The creation of the hierarchy must be delegated

[Patch v3] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-27 Thread Ray Chi
Currently, when dwc3 handles request cancelled, dwc3 just returns -ECONNRESET for all requests. It will cause USB function drivers can't know if the requests are cancelled by other reasons. This patch will replace DWC3_REQUEST_STATUS_CANCELLED with the reasons below. -

Re: [PATCH] scripts: stable: add script to validate backports

2021-03-27 Thread Greg Kroah-Hartman
On Fri, Mar 26, 2021 at 03:03:35PM -0600, Tom Saeger wrote: > On Wed, Mar 24, 2021 at 10:55:27AM +0100, Greg Kroah-Hartman wrote: > > On Tue, Mar 23, 2021 at 01:28:38PM -0700, Nick Desaulniers wrote: > > > On Tue, Mar 23, 2021 at 12:05 PM Greg Kroah-Hartman > > > wrote: > > > > > > > > The only

[PATCH v2 03/20] staging: rtl8723bs: added spaces around operators in a macro in include/hal_com.h

2021-03-27 Thread Fabio Aiuto
added spaces around operators in macro expression Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_com.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index

[PATCH v2 06/20] staging: rtl8723bs: put parentheses on macros with complex values in include/hal_data.h

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warning: ERROR: Macros with complex values should be enclosed in parentheses 49: FILE: drivers/staging/rtl8723bs/include/hal_data.h:49: +#define CHANNEL_MAX_NUMBER 14+24+21/* 14 is the max channel number */ Signed-off-by: Fabio Aiuto ---

[PATCH v2 01/20] staging: rtl8723bs: remove unused macros in include/hal_com.h

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros in include/hal_com.h Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_com.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index

[PATCH v2 05/20] staging: rtl8723bs: remove unused macros in include/hal_data.h

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros in include/hal_data.h Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_data.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_data.h b/drivers/staging/rtl8723bs/include/hal_data.h index

[PATCH v2 02/20] staging: rtl8723bs: put parentheses on macro with complex values in include/hal_com.h

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warning: ERROR: Macros with complex values should be enclosed in parentheses 187: FILE: drivers/staging/rtl8723bs/include/hal_com.h:187: +#define PageNum_128(_Len) (u32)(((_Len)>>7) + ((_Len)&0x7F ? 1:0)) Signed-off-by: Fabio Aiuto ---

[PATCH v2 10/20] staging: rtl8723bs: remove unused macro in include/rtw_pwrctrl.h

2021-03-27 Thread Fabio Aiuto
remove unused macro reading field ips_mode_req of struct pwrctrl_priv Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_pwrctrl.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h

[PATCH v2 00/20] fix checkpatch error on macros

2021-03-27 Thread Fabio Aiuto
this patchset fixes, where possible, some checkpatch errors on macros. Delete unused macros and some unused struct fields tied to removed macros. Changes in v2: - deleted unused macros - ignored following checkpatch issues on macro: * issues requiring to add

[PATCH v2 07/20] staging: rtl8723bs: add spaces around operators in include/hal_data.h

2021-03-27 Thread Fabio Aiuto
add spaces around operators in a macro Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/hal_data.h b/drivers/staging/rtl8723bs/include/hal_data.h index

[PATCH v2 12/20] staging: rtl8723bs: remove commented code line in os_dep/ioctl_linux.c

2021-03-27 Thread Fabio Aiuto
remove commented code line using obsolete definitions Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index

[PATCH v2 11/20] staging: rtl8723bs: remove unused field in rereg_nd_name_data struct

2021-03-27 Thread Fabio Aiuto
remove unused field old_ips_mode in struct rereg_nd_name_data Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/drv_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index

[PATCH v2 14/20] staging: rtl8723bs: add spaces around operator in include/rtw_pwrctrl.h

2021-03-27 Thread Fabio Aiuto
fix post-commit hook checkpatch warning: add a space around that '*' Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_pwrctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h

[PATCH v2 18/20] staging: rtl8723bs: remove unused fields in struct security_priv

2021-03-27 Thread Fabio Aiuto
remove unused fields in struct security_priv Signed-off-by: Fabio Aiuto --- .../staging/rtl8723bs/include/rtw_security.h | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/staging/rtl8723bs/include/rtw_security.h

[PATCH v2 15/20] staging: rtl8723bs: remove unused macros in include/wifi.h

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros in include/wifi.h Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/wifi.h | 20 1 file changed, 20 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h index

[PATCH v2 16/20] staging: rtl8723bs: put parentheses on macros with complex values in include/wifi.h

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warnings: ERROR: Macros with complex values should be enclosed in parentheses 114: FILE: drivers/staging/rtl8723bs/include/wifi.h:114: +#define SetToDs(pbuf) \ -- ERROR: Macros with complex values should be enclosed in parentheses 122: FILE:

[PATCH v2 19/20] staging: rtl8723bs: include macro in a do - while loop in core/rtw_security.c

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warning: ERROR: Macros with multiple statements should be enclosed in a do - while loop 2014: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:2014: +#define ROUND(i, d, s) \ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_security.c | 10

[PATCH v2 09/20] staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_debug.h

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warning: ERROR: Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic defects + #define RT_PRINT_DATA(_Comp, _Level, _TitleString, _HexData, _HexDataLen)\ Signed-off-by: Fabio Aiuto ---

[PATCH v2 04/20] staging: rtl8723bs: remove unused macros in include/hal_com_reg.h

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros in include/hal_com_reg.h Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_com_reg.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_com_reg.h

[PATCH v2 08/20] staging: rtl8723bs: remove unused macros in include/hal_phy.h

2021-03-27 Thread Fabio Aiuto
remove declarations of unused macros in include/hal_phy.h Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/hal_phy.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_phy.h b/drivers/staging/rtl8723bs/include/hal_phy.h index

[PATCH v2 13/20] staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_pwrctrl.h

2021-03-27 Thread Fabio Aiuto
fix the following checkpatch warnings: ERROR: Macros with complex values should be enclosed in parentheses 92: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:92: +#define LPS_DELAY_TIME 1*HZ /* 1 sec */ -- ERROR: Macros with complex values should be enclosed in parentheses 244: FILE:

[PATCH v2 1/2] dt-bindings: remoteproc: k3-r5f: Update bindings for AM64x SoCs

2021-03-27 Thread Suman Anna
The K3 AM64x SoCs have two dual-core Arm R5F clusters/subsystems, with 2 R5F cores each, both in the MAIN voltage domain. These clusters are a revised IP version compared to those present on J721E and J7200 SoCs, and supports a new "Single-CPU" mode instead of LockStep mode. Update the K3 R5F

[PATCH v2 2/2] remoteproc: k3-r5: Extend support to R5F clusters on AM64x SoCs

2021-03-27 Thread Suman Anna
The K3 AM64x SoC family has a revised R5F sub-system and contains a subset of the R5F clusters present on J721E SoCs. The K3 AM64x SoCs only have two dual-core Arm R5F clusters/subsystems with 2 R5F cores each present within the MAIN voltage domain (MAIN_R5FSS0 & MAIN_R5FSS1). The revised IP has

Re: [PATCH v4 1/7] dt-bindings: phy: qcom,qmp-usb3-dp-phy: move usb3 compatibles back to qcom,qmp-phy.yaml

2021-03-27 Thread Rob Herring
On Fri, 26 Mar 2021 20:58:03 +0300, Dmitry Baryshkov wrote: > The commit 724fabf5df13 ("dt-bindings: phy: qcom,qmp-usb3-dp: Add DP phy > information") has support for DP part of USB3+DP combo PHYs. However > this change is not backwards compatible, placing additional requirements > onto

Re: [PATCH v4 1/5] dt-bindings: mfd: Initial commit of silergy,sy7636a.yaml

2021-03-27 Thread Rob Herring
On Thu, Mar 25, 2021 at 09:55:07PM -0400, Alistair Francis wrote: > Initial support for the Silergy SY7636A Power Management chip > and regulator. > > Signed-off-by: Alistair Francis > --- > v3: > - No change > v2: > - N/A > > .../bindings/mfd/silergy,sy7636a.yaml | 63

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-27 Thread Toke Høiland-Jørgensen
Alexei Starovoitov writes: > On Thu, Mar 25, 2021 at 05:30:03PM +0530, Kumar Kartikeya Dwivedi wrote: >> This adds some basic tests for the low level bpf_tc_* API and its >> bpf_program__attach_tc_* wrapper on top. > > *_block() apis from patch 3 and 4 are not covered by this selftest. > Why

Re: [PATCH v4 2/7] dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SM8250

2021-03-27 Thread Rob Herring
On Fri, 26 Mar 2021 20:58:04 +0300, Dmitry Baryshkov wrote: > Add compatible for SM8250 in QMP USB3 DP PHY bindings. > > Signed-off-by: Dmitry Baryshkov > --- > Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Andrew Lunn
> What I have works. Your consumers get quirk handling, mine don't need it. > No compromise. Hi Don All this discussion is now a mute point. GregKH has spoken. But i'm sure there are some on the side lines, eating popcorn, maybe learning from the discussion. Would you think it is O.K. to add

Re: [PATCH] kconfig: nconf: stop endless search-up loops

2021-03-27 Thread Randy Dunlap
On 3/27/21 5:01 AM, Mihai Moldovan wrote: > If the user selects the very first entry in a page and performs a > search-up operation (e.g., via [/][a][Up Arrow]), nconf will never > terminate searching the page. > > The reason is that in this case, the starting point will be set to -1, > which is

Re: [PATCH] drm: DON'T require each CRTC to have a unique primary plane

2021-03-27 Thread Paul Cercueil
It has two mutually exclusive background planes (same Z level) + one overlay plane. -Paul Le sam. 27 mars 2021 à 11:24, Simon Ser a écrit : On Saturday, March 27th, 2021 at 12:22 PM, Paul Cercueil wrote: The ingenic-drm driver has two mutually exclusive primary planes already; so the

[PATCH v4 3/3] drm/ingenic: Register devm action to cleanup encoders

2021-03-27 Thread Paul Cercueil
Since the encoders have been devm-allocated, they will be freed way before drm_mode_config_cleanup() is called. To avoid use-after-free conditions, we then must ensure that drm_encoder_cleanup() is called before the encoders are freed. v2: Use the new __drmm_simple_encoder_alloc() function v3:

[PATCH v4 1/3] drm: bridge/panel: Cleanup connector on bridge detach

2021-03-27 Thread Paul Cercueil
If we don't call drm_connector_cleanup() manually in panel_bridge_detach(), the connector will be cleaned up with the other DRM objects in the call to drm_mode_config_cleanup(). However, since our drm_connector is devm-allocated, by the time drm_mode_config_cleanup() will be called, our connector

[PATCH v4 2/3] drm/encoder: Add macro drmm_plain_encoder_alloc()

2021-03-27 Thread Paul Cercueil
This performs the same operation as drmm_encoder_alloc(), but only allocates and returns a struct drm_encoder instance. v4: Rename macro drmm_plain_encoder_alloc() and move to . Since it's not "simple" anymore it will now take funcs/name arguments as well. Signed-off-by: Paul Cercueil

[PATCH v4 0/3] Fixes to bridge/panel and ingenic-drm

2021-03-27 Thread Paul Cercueil
Hi, This is the V4 of my patchset that attempts to fix use-after-free errors in bridge/panel.c and in the ingenic-drm driver. Changes from v3: - [1/3]: the code now checks (connector->dev) instead of (!!panel_bridge->connector.dev) - [2/3]: the macro is now called drmm_plain_encoder_alloc(),

[PATCH] kconfig: nconf: stop endless search-up loops

2021-03-27 Thread Mihai Moldovan
If the user selects the very first entry in a page and performs a search-up operation (e.g., via [/][a][Up Arrow]), nconf will never terminate searching the page. The reason is that in this case, the starting point will be set to -1, which is then translated into (n - 1) (i.e., the last entry of

Re: [PATCH 0/3] Fix CONFIG_FUNCTION_TRACER with clang

2021-03-27 Thread Sedat Dilek
On Fri, Mar 26, 2021 at 2:07 PM Nathan Chancellor wrote: > > On Fri, Mar 26, 2021 at 09:37:55AM +0100, Sedat Dilek wrote: > > On Thu, Mar 25, 2021 at 11:38 PM Nathan Chancellor > > wrote: > > > > > > Hi all, > > > > > > This series fixes function tracing with clang. > > > > > > Patch 1 adjusts

Re: BTRFS Balance Hard System Crash (Blinking LEDs)

2021-03-27 Thread Nathan Royce
An update... I encountered blinking LEDs while I was away from my computer again. I'm now pretty confident it wasn't an issue with btrfs balance, but rather the sd-card not being seated well. I just updated my old "F2FS Segmentation fault" post in linux-f2fs-devel. In short, fsck for f2fs was

[PATCH 0/4] HID: add Apple Magic Mouse 2 support

2021-03-27 Thread John Chen
The HID descriptor of Magic Mouse 2 contains BTN_LEFT, BTN_RIGHT, REL_X, REL_Y, whether it's charging, whether it's fully charged, and battery capacity. $ xxd -p report_descriptor 05010902a101851205091901290215002501950275018102950175068103

[PATCH 1/4] HID: magicmouse: add Apple Magic Mouse 2 support

2021-03-27 Thread John Chen
Bluetooth device Vendor 004c (Apple) Device 0269 (Magic Mouse 2) Add support for Apple Magic Mouse 2, putting the device in multi-touch mode. Co-authored-by: Rohit Pidaparthi Co-authored-by: RicardoEPRodrigues Signed-off-by: John Chen --- drivers/hid/hid-ids.h| 1 +

[PATCH 2/4] HID: magicmouse: fix 3 button emulation of Mouse 2

2021-03-27 Thread John Chen
It is observed that, with 3 button emulation, when middle button is clicked, either the left button or right button is clicked as well. It is caused by hidinput "correctly" acting on the event, oblivious to the 3 button emulation. As raw_event has taken care of everything, no further processing

[PATCH 4/4] HID: input: map battery capacity (00850065)

2021-03-27 Thread John Chen
This is the capacity in percentage, relative to design capacity. Specifically, it is present in Apple Magic Mouse 2. In contrast, usage 00850064 is also the capacity in percentage, but is relative to full capacity. It is not mapped here because I don't have such device. Signed-off-by: John Chen

[PATCH 3/4] HID: magicmouse: fix reconnection of Magic Mouse 2

2021-03-27 Thread John Chen
It is observed that the Magic Mouse 2 would not enter multi-touch mode unless the mouse is connected before loading the module. It seems to be a quirk specific to Magic Mouse 2 Retrying after 500ms fixes the problem for me. The delay can't be reduced much further --- 300ms didn't work for me.

Re: [Patch v3] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-27 Thread Greg KH
On Sat, Mar 27, 2021 at 09:22:02PM +0800, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB function drivers > can't know if the requests are cancelled by other reasons. > > This patch will replace

Re: [EXT] [PATCH][next] media: imx-jpeg: Fix spelling mistake "Canot" -> "Cannot"

2021-03-27 Thread Mirela Rabulea
Hi, On Tue, 2021-03-23 at 09:21 +, Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in a dev_err message. Fix it. > > Signed-off-by: Colin Ian King > --- > drivers/media/platform/imx-jpeg/mxc-jpeg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v4, 1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-03-27 Thread Rob Herring
On Thu, 25 Mar 2021 20:26:23 +0800, Irui Wang wrote: > Updates binding document since the avc and vp8 hardware encoder in > MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > "mediatek,mt8173-vcodec-enc-vp8" and "mediatek,mt8173-vcodec-enc". > > This patch is not a compatible

[PATCH v2] media: usb: fix memory leak in em28xx_dvb_init

2021-03-27 Thread Pavel Skripkin
syzbot reported memory leak in em28xx_dvb_init()[1] The problem was in wrong error handling after em28xx_alloc_urbs()[2] call. In case of error allocated urbs must be freed backtrace: [] kmalloc_array.constprop.0+0x41/0x60 include/linux/slab.h:594 [] kcalloc include/linux/slab.h:623

Re: [PATCH v3 1/6] dt-bindings: PCI: Add bindings for Brcmstb EP voltage regulators

2021-03-27 Thread Rob Herring
On Fri, 26 Mar 2021 15:18:59 -0400, Jim Quinlan wrote: > Similar to the regulator bindings found in "rockchip-pcie-host.txt", this > allows optional regulators to be attached and controlled by the PCIe RC > driver. That being said, this driver searches in the DT subnode (the EP > node, eg

>20 KB URBs + EHCI = bad performance due to stalls

2021-03-27 Thread Maciej S. Szmigiero
Hi, Is there any specific reason that URBs without URB_SHORT_NOT_OK flag that span multiple EHCI qTDs have Alternate Next qTD pointer set to the dummy qTD in their every qTD besides the last one (instead of to the first qTD of the next URB to that endpoint)? This causes that endpoint queue to

[PATCH v2] scripts/spelling.txt: add entries for recent discoveries

2021-03-27 Thread Tom Saeger
Add a few entries for recent spelling fixes found. Opportunistically de-dupe: exeeds||exceeds Link: https://lore.kernel.org/lkml/31acb3239b7ab8989db0c9951e8740050aef0205.1616727528.git.tom.sae...@oracle.com/ Link:

Re: [PATCH] MIPS: ralink: mt7621: add memory detection support

2021-03-27 Thread Ilya Lipnitskiy
On Sat, Mar 27, 2021 at 2:46 AM Thomas Bogendoerfer wrote: > > On Thu, Mar 25, 2021 at 07:45:23PM -0700, Ilya Lipnitskiy wrote: > > On Thu, Mar 25, 2021 at 3:01 AM Thomas Bogendoerfer > > wrote: > > > > > > On Tue, Mar 16, 2021 at 10:59:02PM -0700, Ilya Lipnitskiy wrote: > > > > From: Chuanhong

Re: [PATCH 01/14] dt-bindings: vendor-prefixes: Add Supermicro

2021-03-27 Thread Rob Herring
On Sat, 20 Mar 2021 19:15:57 +0100, Jonathan Neuschäfer wrote: > Super Micro Computer, Inc. (https://www.supermicro.com/en/), commonly > known as Supermicro, is a manufacturer of server hardware. > > Signed-off-by: Jonathan Neuschäfer > --- >

Re: [PATCH v3 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-03-27 Thread Andy Shevchenko
On Sat, Mar 27, 2021 at 2:02 PM William Breathitt Gray wrote: > On Sat, Mar 27, 2021 at 09:29:26AM +0200, Andy Shevchenko wrote: > > On Saturday, March 27, 2021, Syed Nayyar Waris wrote: > > > On Fri, Mar 26, 2021 at 11:32 PM Andy Shevchenko > > > wrote: > > > > On Sat, Mar 6, 2021 at 4:08 PM

Re: [PATCH 02/14] dt-bindings: arm: npcm: Add nuvoton, wpcm450 compatible string

2021-03-27 Thread Rob Herring
On Sat, 20 Mar 2021 19:15:58 +0100, Jonathan Neuschäfer wrote: > The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally > marketed as Winbond WPCM450. > > Signed-off-by: Jonathan Neuschäfer > --- > > This patch requires "dt-bindings: arm: Convert nuvoton,npcm750 binding to >

Re: [PATCH 0/6] Allow signals for IO threads

2021-03-27 Thread Jens Axboe
On 3/26/21 7:46 PM, Stefan Metzmacher wrote: > > Hi Jens, > >> root@ub1704-166:~# LANG=C gdb --pid 1320 >> GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 >> Copyright (C) 2020 Free Software Foundation, Inc. >> License GPLv3+: GNU GPL version 3 or later >> This is free

Re: [PATCH v2 3/3] dt-bindings: qcom: geni-se: document iommus

2021-03-27 Thread Rob Herring
On Sun, Mar 21, 2021 at 05:46:32PM +, Caleb Connolly wrote: > Document the iommus property for QCOM Geni SE. > > Signed-off-by: Caleb Connolly > --- > Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [RFC PATCH 2/4] dt-bindings: mtd: add YAML schema for the generic MTD bindings

2021-03-27 Thread Rob Herring
On Mon, 22 Mar 2021 19:19:47 +0100, Michael Walle wrote: > Convert MTD's common.txt to mtd.yaml. > > Signed-off-by: Michael Walle > --- > Btw, I've asked Miquel if I can add it as the maintainer. > > .../devicetree/bindings/mtd/common.txt| 16 +--- >

Re: [PATCH] powerpc/vdso: Separate vvar vma from vdso

2021-03-27 Thread Christophe Leroy
Le 26/03/2021 à 20:17, Dmitry Safonov a écrit : Since commit 511157ab641e ("powerpc/vdso: Move vdso datapage up front") VVAR page is in front of the VDSO area. In result it breaks CRIU (Checkpoint Restore In Userspace) [1], where CRIU expects that "[vdso]" from /proc/../maps points at

Re: [PATCH 4/4] HID: input: map battery capacity (00850065)

2021-03-27 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/John-Chen/HID-add-Apple-Magic-Mouse-2-support/20210327-211004 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next config: x86_64-kexec (attached as .config

Re: [PATCH v2 01/13] dt-bindings: usb: mtk-xhci: support property usb2-lpm-disable

2021-03-27 Thread Rob Herring
On Tue, Mar 23, 2021 at 03:02:43PM +0800, Chunfeng Yun wrote: > Add support common property usb2-lpm-disable > > Signed-off-by: Chunfeng Yun > --- > v2: no changes > --- > Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 4 > 1 file changed, 4 insertions(+) > > diff --git

Re: [PATCH] powerpc/vdso: Separate vvar vma from vdso

2021-03-27 Thread Dmitry Safonov
Hi Christophe, On 3/27/21 5:19 PM, Christophe Leroy wrote: [..] >> I opportunistically Cc stable on it: I understand that usually such >> stuff isn't a stable material, but that will allow us in CRIU have >> one workaround less that is needed just for one release (v5.11) on >> one platform

Re: [syzbot] possible deadlock in register_for_each_vma

2021-03-27 Thread Oleg Nesterov
Hi Hillf, it seems that you already understand the problem ;) I don't. Could you explain in details how double __register is possible ? and how it connects to this lockdep report? On 03/27, Hillf Danton wrote: > > On Fri, 26 Mar 2021 03:29:19 > > Hello, > > > > syzbot found the following issue

Re: [PATCH v2] PCI: controller: convert to devm_platform_ioremap_resource_byname()

2021-03-27 Thread dann frazier
On Wed, Jun 03, 2020 at 01:16:01AM +0800, Dejin Zheng wrote: > Use devm_platform_ioremap_resource_byname() to simplify codes. > it contains platform_get_resource_byname() and devm_ioremap_resource(). > > Signed-off-by: Dejin Zheng > --- > v1 -> v2: > - Discard changes to the file

Re: [PATCH] i2c: designware: Add base addr info

2021-03-27 Thread Daniel Gomez
On Fri, 26 Mar 2021 at 13:28, Andy Shevchenko wrote: > > On Fri, Mar 26, 2021 at 11:35:08AM +0100, Daniel Gomez wrote: > > On Thu, 25 Mar 2021 at 16:43, Andy Shevchenko > > wrote: > > > On Thu, Mar 25, 2021 at 04:12:48PM +0100, Daniel Gomez wrote: > > ... > > > > > Add i2c hw base address in the

[Patch v4] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-27 Thread Ray Chi
Currently, when dwc3 handles request cancelled, dwc3 just returns -ECONNRESET for all requests. It will cause USB function drivers can't know if the requests are cancelled by other reasons. This patch will replace DWC3_REQUEST_STATUS_CANCELLED with the reasons below. -

Re: [PATCH v5 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-27 Thread Mickaël Salaün
On 27/03/2021 00:12, Askar Safin wrote: > Hi. Unprivileged users already can do chroot. He should simply create userns > and then call "chroot" inside. As an LWN commenter noted, you can simply run > "unshare -r /usr/sbin/chroot some-dir". (I recommend reading all comments: >

drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaration of function 'mm_iommu_put'

2021-03-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e commit: 179209fa12709a3dfc323b37315da2683c24 vfio: IOMMU_API should be selected date: 11 days ago config: powerpc64-randconfig-r031-20210328 (attached as

Re: [v9,5/7] PCI: mediatek-gen3: Add MSI support

2021-03-27 Thread Marc Zyngier
On Sat, 27 Mar 2021 19:28:37 +, Pali Rohár wrote: > > On Wednesday 24 March 2021 11:05:08 Jianjun Wang wrote: > > +static void mtk_pcie_msi_handler(struct mtk_pcie_port *port, int set_idx) > > +{ > > + struct mtk_msi_set *msi_set = >msi_sets[set_idx]; > > + unsigned long msi_enable,

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-27 Thread Linus Torvalds
On Sat, Mar 27, 2021 at 5:08 AM Sedat Dilek wrote: > > debian-5.10.19 as host-kernel: > 11655.755564957 seconds time elapsed > > dileks-5.12-rc3 plus x86-nops as host-kernel: > 11941.439350080 seconds time elapsed That's 2.5% - a huge difference. Particularly since kernel build times shouldn't

Re: [PATCH 2/7] io_uring: handle signals for IO threads like a normal thread

2021-03-27 Thread Jens Axboe
On 3/27/21 11:40 AM, Eric W. Biederman wrote: > Jens Axboe writes: > >> On 3/26/21 4:38 PM, Jens Axboe wrote: >>> OK good point, and follows the same logic even if it won't make a >>> difference in my case. I'll make the change. >> >> Made the suggested edits and ran the quick tests and the

[PATCH v2] ARM: dts: exynos: Add front camera support to I9100

2021-03-27 Thread Timon Baetz
Add node for Samsung S5K5BAF CMOS image sensor and enable the associated MIPI CSI-2 receiver node. Signed-off-by: Timon Baetz --- v2: Rename node from s5k5bafx to image-sensor and use GPIO_ACTIVE_LOW arch/arm/boot/dts/exynos4210-i9100.dts | 52 ++ 1 file changed, 52

Re: [PATCH] thermal/drivers/netlink: Add the temperature when crossing a trip point

2021-03-27 Thread Daniel Lezcano
Hi Srinivas, On 27/03/2021 18:46, Srinivas Pandruvada wrote: > On Fri, 2021-03-26 at 17:37 +0100, Rafael J. Wysocki wrote: >> On Thu, Mar 25, 2021 at 8:38 PM Daniel Lezcano >> wrote: >>> The slope of the temperature increase or decrease can be high and >>> when >>> the temperature crosses the

Testers wanted: Atom netbooks with x86_64 disabled by BIOS

2021-03-27 Thread Mateusz Jończyk
Hello, There are some netbooks with Intel Atom processors that have 64-bit support disabled by BIOS. Theoretically, the processor supports 64-bit operation, but BIOS allows only 32-bit code to run. I wonder whether the 64-bit mode is really disabled in the CPU or only hidden in the CPUID flags.

Re: [PATCH 0/2] HID: Add support for Surface Aggregator Module HID transport

2021-03-27 Thread Maximilian Luz
On 3/10/21 11:53 PM, Maximilian Luz wrote: This series adds support for the Surface System Aggregator Module (SSAM) HID transport subsystem. The SSAM is an embedded controller, found on 5th- and later generation Microsoft Surface devices. On some of these devices (specifically Surface Laptops

Re: [PATCH 0/2] power: supply: Add battery and AC drivers for Surface devices

2021-03-27 Thread Maximilian Luz
On 3/9/21 1:05 AM, Maximilian Luz wrote: This series provides battery and AC drivers for Microsoft Surface devices, where this information is provided via an embedded controller (the Surface System Aggregator Module, SSAM) instead of the usual ACPI interface. Specifically, 7th generation

Re: [PATCH v3] cpu/hotplug: wait for cpuset_hotplug_work to finish on cpu onlining

2021-03-27 Thread Thomas Gleixner
Alexey, On Wed, Mar 17 2021 at 00:36, Alexey Klimov wrote: > When a CPU offlined and onlined via device_offline() and device_online() > the userspace gets uevent notification. If, after receiving "online" uevent, > userspace executes sched_setaffinity() on some task trying to move it > to a

Re: [PATCH 03/14] dt-bindings: interrupt-controller: Add nuvoton, wpcm450-aic

2021-03-27 Thread Rob Herring
On Sat, 20 Mar 2021 19:15:59 +0100, Jonathan Neuschäfer wrote: > The WPCM450 AIC ("Advanced Interrupt Controller") is the interrupt > controller found in the Nuvoton WPCM450 SoC and other Winbond/Nuvoton > SoCs. > > Signed-off-by: Jonathan Neuschäfer > --- > .../nuvoton,wpcm450-aic.yaml

Re: [PATCH 04/14] dt-bindings: serial: 8250: Add nuvoton,wpcm450-uart

2021-03-27 Thread Rob Herring
On Sat, 20 Mar 2021 19:16:00 +0100, Jonathan Neuschäfer wrote: > Add a compatible string for the UART inside the Nuvoton WPCM450 SoC. > > Signed-off-by: Jonathan Neuschäfer > --- > Documentation/devicetree/bindings/serial/8250.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob

Re: [PATCH v2 1/5] dt-bindings: timer: Simplify conditional expressions

2021-03-27 Thread Rob Herring
On Sun, 21 Mar 2021 23:47:03 -0500, Samuel Holland wrote: > The sun4i timer IP block has a variable number of interrupts based on > the compatible. Use enums to combine the two sections for the existing > 3-interrupt variants, and to simplify adding new compatible strings. > > Acked-by: Maxime

Re: [PATCH 1/2] dt-bindings: iio: adc: Add ti,ina260.yaml

2021-03-27 Thread Rob Herring
On Mon, Mar 22, 2021 at 04:20:55PM +0530, Raviteja Narayanam wrote: > Add a binding for Texas Instruments INA260 power monitor device. > > Signed-off-by: Raviteja Narayanam > --- > .../bindings/iio/adc/ti,ina260.yaml | 57 +++ > 1 file changed, 57 insertions(+) >

Re: [RFC PATCH 3/4] dt-bindings: mtd: add OTP bindings

2021-03-27 Thread Rob Herring
On Mon, Mar 22, 2021 at 07:19:48PM +0100, Michael Walle wrote: > Flash devices can have one-time-programmable regions. Add a nvmem > binding so they can be used as a nvmem provider. > > Signed-off-by: Michael Walle > --- > .../devicetree/bindings/mtd/mtd.yaml | 71 +++ >

Re: [PATCH 4/4] HID: input: map battery capacity (00850065)

2021-03-27 Thread kernel test robot
. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/John-Chen/HID-add-Apple-Magic-Mouse-2-support/20210327-211004 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next

Re: [PATCH 2/2] dt-bindings: cpufreq: update cpu type and clock name for MT8173 SoC

2021-03-27 Thread Rob Herring
On Fri, 26 Mar 2021 11:12:27 +0800, Seiya Wang wrote: > Update the cpu type of cpu2 and cpu3 since MT8173 used Cortex-a72. > > Signed-off-by: Seiya Wang > --- > Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek.txt | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) >

Re: [PATCH 1/2] clk: mediatek: remove deprecated CLK_INFRA_CA57SEL for MT8173 SoC

2021-03-27 Thread Rob Herring
On Fri, 26 Mar 2021 11:12:26 +0800, Seiya Wang wrote: > Remove CLK_INFRA_CA57SEL for MT8173 since it's no longer used. > > Signed-off-by: Seiya Wang > --- > include/dt-bindings/clock/mt8173-clk.h | 1 - > 1 file changed, 1 deletion(-) > Acked-by: Rob Herring

<    1   2   3   4   5   >