Re: [PATCH] staging: sm750fb: Convert camel case to snake case

2021-04-06 Thread Pavle Rohalj
On Tue, Apr 06, 2021 at 11:36:41AM +0200, Greg KH wrote: > On Tue, Apr 06, 2021 at 02:18:41AM -0700, Pavle Rohalj wrote: > > - struct dvi_ctrl_device *pCurrentDviCtrl; > > + struct dvi_ctrl_device *p_current_dvi_ctrl; > > Does this change make sense? Why keep the "p_" here? We do not need

Re: [PATCH v2] media: venus : hfi: add venus image info into smem

2021-04-06 Thread dikshita
Hi Bjorn, Thanks for your review comments. I have addressed all in the latest patch v3. couldn't think of a shorter name for variables without losing the readability so kept as it is. Thanks, Dikshita On 2021-03-30 09:29, Bjorn Andersson wrote: On Fri 26 Mar 01:33 CDT 2021, Dikshita Agarwal

[PATCH v3] media: venus : hfi: add venus image info into smem

2021-04-06 Thread Dikshita Agarwal
Fill fw version info into smem to be printed as part of soc info. Signed-off-by: Dikshita Agarwal changes since v2: - adressed all review comments. --- drivers/media/platform/qcom/venus/hfi_msgs.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v7 5/8] pwm: core: Support new PWM_STAGGERING_ALLOWED flag

2021-04-06 Thread Uwe Kleine-König
On Tue, Apr 06, 2021 at 06:41:37PM +0200, Clemens Gruber wrote: > If the flag PWM_STAGGERING_ALLOWED is set on a channel, the PWM driver > may (if supported by the HW) delay the ON time of the channel relative > to the channel number. > This does not alter the duty cycle ratio and is only relevant

[PATCH] media: sun8i-di: Fix rumtime PM imbalance in deinterlace_start_streaming

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

[PATCH] media: platform: sti: Fix rumtime PM imbalance in regs_show

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

Re: [RESEND PATCH v5 2/2] bio: add limit_bio_size sysfs

2021-04-06 Thread Greg KH
On Wed, Apr 07, 2021 at 10:21:17AM +0900, Changheun Lee wrote: > > On 3/16/21 12:44 AM, Changheun Lee wrote: > > > Add limit_bio_size block sysfs node to limit bio size. > > > Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set. > > > And bio max size will be limited by queue

Re: [PATCH] staging: rtl8712: avoid multiple line dereference

2021-04-06 Thread Greg KH
On Wed, Apr 07, 2021 at 01:15:17AM +0200, Sergei Krainov wrote: > fix post-commit hook checkpatch issues: > > WARNING: Avoid multiple line dereference - prefer > 'adapter->mlmepriv.cur_network.network.InfrastructureMode' > + adapter->mlmepriv.cur_network.network. > +

Re: [PATCH v2 1/6] perf metricgroup: Make find_metric() public with name change

2021-04-06 Thread kajoljain
On 4/6/21 3:24 PM, John Garry wrote: > On 02/04/2021 00:16, Ian Rogers wrote: >> On Thu, Mar 25, 2021 at 3:38 AM John Garry wrote: >>> >>> Function find_metric() is required for the metric processing in the >>> pmu-events testcase, so make it public. Also change the name to include >>>

Re: [PATCH] tty: n_gsm: check error while registering tty devices

2021-04-06 Thread Jiri Slaby
On 07. 04. 21, 4:16, Hillf Danton wrote: Add the error path for registering tty devices and roll back in case of error in bid to avoid the UAF like the below one reported. [ cut here ] refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 8923 at

Re: [RESEND PATCH] staging: emxx_udc: Ending line with argument

2021-04-06 Thread Greg KH
On Tue, Apr 06, 2021 at 09:00:07PM +0100, Beatriz Martins de Carvalho wrote: > > Em 06/04/21 20:36, Greg KH escreveu: > > On Tue, Apr 06, 2021 at 08:34:09PM +0100, Beatriz Martins de Carvalho wrote: > > > Cleans up check of "Lines should not end with a '('" > > > with argument present in next

Re: [RESEND PATCH v5 1/2] bio: limit bio max size

2021-04-06 Thread Greg KH
On Wed, Apr 07, 2021 at 02:06:33PM +0900, Changheun Lee wrote: > > On Wed, Apr 07, 2021 at 09:16:12AM +0900, Changheun Lee wrote: > > > > On Tue, Apr 06, 2021 at 10:31:28AM +0900, Changheun Lee wrote: > > > > > > bio size can grow up to 4GB when muli-page bvec is enabled. > > > > > > but sometimes

[PATCH 05/20] kbuild: scripts/install.sh: prepare for arch-specific bootloaders

2021-04-06 Thread Greg Kroah-Hartman
Despite the last release of LILO being in 2015, it seems that it is still the default x86 bootloader and wants to be called to "install" the new kernel image when it has been replaced on the disk. To allow arch-specific programs like this to be called in future changes, move the logic to an

[PATCH 14/20] kbuild: nios2: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for nios2, all that is needed is to add it to the list of arches that do not put the version number in the installed file name. With that we can remove the nios2-only version of the install script. Cc: Ley Foon Tan Signed-off-by: Greg

[PATCH 13/20] kbuild: nds32: convert to use the common install scripts

2021-04-06 Thread Greg Kroah-Hartman
It seems that no one ever checked in the nds32 install script so trying to build a nds32 kernel would never quite work properly as 'make install' would fail to run. Fix that up by having nds32 call the common install.sh script. Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Greg

[PATCH 12/20] kbuild: m68k: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for m68k, all that is needed is to add it to the list of arches that do not put the version number in the installed file name. With that we can remove the m68k-only version of the install script. Cc: Geert Uytterhoeven Cc:

[PATCH 11/20] kbuild: ia64: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for ia64, all that is needed is to add the compressed image type to it. So add that file type check and the ability to call /usr/sbin/elilo after copying the kernel. With that we can remove the ia64-only version of the file. Cc:

[PATCH 10/20] kbuild: arm: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for arm, all that is needed is to add the compressed image type to it. So add that file type check and the ability to call /sbin/loadmap after copying the kernel. With that we can remove the arm-only version of the file. Cc: Russell King Cc:

[PATCH 09/20] kbuild: arm64: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for arm65, no changes needed so convert the arm64 boot Makefile to call it instead of the arm64-only version of the file and remove the now unused file. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Signed-off-by:

[PATCH 07/20] kbuild: scripts/install.sh: allow for the version number

2021-04-06 Thread Greg Kroah-Hartman
Some architectures put the version number by default at the end of the files that are copied, so add support for this to be set by arch type. Odds are one day we should change this for x86, but let's not break anyone's systems just yet. Signed-off-by: Greg Kroah-Hartman --- scripts/install.sh

[PATCH 08/20] kbuild: riscv: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for riscv, all that is needed is to add the compressed image type to it. So add that file type check and remove the riscv-only version of the file. Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-ri...@lists.infradead.org

[PATCH 20/20] kbuild: scripts/install.sh: update documentation

2021-04-06 Thread Greg Kroah-Hartman
Add a proper SPDX line and document the install.sh file a lot better, explaining exactly what it does, and update the copyright notice and provide a better message about the lack of LILO being present or not as really, no one should be using that anymore... Signed-off-by: Greg Kroah-Hartman ---

[PATCH 19/20] kbuild: sparc: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for sparc, all that is needed is to add it to the list of arches that do not put the version number in the installed file name. With that we can remove the sparc-only version of the install script. Cc: "David S. Miller" Cc:

[PATCH 18/20] kbuild: sh: remove unused install script

2021-04-06 Thread Greg Kroah-Hartman
The sh arch has a install.sh script, but no Makefile actually calls it. Remove it to keep anyone from accidentally calling it in the future. Cc: Yoshinori Sato Cc: Rich Felker Cc: linux...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- arch/sh/boot/compressed/install.sh | 56

[PATCH 17/20] kbuild: s390: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for s390, no changes needed. So call that instead and delete the s390-only install script. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman ---

[PATCH 16/20] kbuild: powerpc: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for powerpc, all that is needed is to add it to the list of arches that do not put the version number in the installed file name. After the kernel is installed, powerpc also likes to install a few random files, so provide the ability to do that

[PATCH 15/20] kbuild: parisc: use common install script

2021-04-06 Thread Greg Kroah-Hartman
The common scripts/install.sh script will now work for parisc, all that is needed is to add the compressed image type to it. So add that file type check, and then we can remove the two different copies of the parisc install.sh script that were only different by one line and have the arch call the

[PATCH 02/20] kbuild: scripts/install.sh: properly quote all variables

2021-04-06 Thread Greg Kroah-Hartman
A few variables are quoted to handle spaces in directory names, but not all of them. Properly quote everything so that the kernel build can handle working correctly with directory names with spaces. This change makes the script "shellcheck" clean now. Signed-off-by: Greg Kroah-Hartman ---

[PATCH 06/20] kbuild: scripts/install.sh: handle compressed/uncompressed kernel images

2021-04-06 Thread Greg Kroah-Hartman
For x86, the default kernel image is compressed, but other architectures allowed both compressed and uncompressed kernel images to be built. Add a test to detect which one this is, and either name the output file "vmlinuz" for a compressed image, or "vmlinux" for an uncompressed image. For x86

[PATCH 04/20] kbuild: scripts/install.sh: call sync before calling the bootloader installer

2021-04-06 Thread Greg Kroah-Hartman
It's good to ensure that the files are written out before calling the bootloader installer, as other architectures do, so call sync after doing the copying of the kernel and system map files. Signed-off-by: Greg Kroah-Hartman --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 03/20] kbuild: scripts/install.sh: provide a "install" function

2021-04-06 Thread Greg Kroah-Hartman
Instead of open-coding the "test for file, if present make a backup, then copy the file to the new location" in multiple places, make a single function, install(), to do all of this in one place. Note, this does change the default x86 kernel map file saved name from "System.old" to

[PATCH 01/20] kbuild: move x86 install script to scripts/install.sh

2021-04-06 Thread Greg Kroah-Hartman
To unify the different architecture kernel installation scripts, start out with the one they all were based on, the x86 script. Move it from arch/x86/boot/ into scripts/ so that all architectures can call it in the future. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc:

[PATCH 00/20] kbuild: unify the install.sh script usage

2021-04-06 Thread Greg Kroah-Hartman
Almost every architecture has copied the "install.sh" script that originally came with i386, and modified it in very tiny ways. This patch series unifies all of these scripts into one single script to allow people to understand how to correctly install a kernel, and fixes up some issues regarding

[PATCH] dmaengine: stm32: Fix rumtime PM imbalance in stm32_dmamux_resume

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

Re: [PATCH v7 4/8] dt-bindings: pwm: Support new PWM_STAGGERING_ALLOWED flag

2021-04-06 Thread Uwe Kleine-König
On Tue, Apr 06, 2021 at 06:41:36PM +0200, Clemens Gruber wrote: > Add the flag and corresponding documentation for the new PWM staggering > mode feature. > > Cc: Rob Herring > Signed-off-by: Clemens Gruber For the record, I don't like this and still prefer to make this staggering explicit for

Bidding invitation

2021-04-06 Thread Albert Bourla
Good Day Sir/Ms, We are pleased to invite you or your company to quote the following item listed below: Product/Model No: A702TH FYNE PRESSURE REGULATOR Model Number: A702TH Qty. 30 units Compulsory,Kindly send your quotation to: qu...@pfizersuppliers.com for immediate approval. Kind

Re: [PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-06 Thread Uwe Kleine-König
On Tue, Apr 06, 2021 at 06:41:34PM +0200, Clemens Gruber wrote: > Implements .get_state to read-out the current hardware state. > > The hardware readout may return slightly different values than those > that were set in apply due to the limited range of possible prescale and > counter register

[PATCH] Input: gpio-keys - fix crash when disabliing GPIO-less buttons

2021-04-06 Thread Dmitry Torokhov
My brain-damaged adjustments to Paul's patch caused crashes in gpio_keys_disable_button() when driver is used in GPIO-less (i.e. purely interrupt-driven) setups, because I mixed together debounce and release timers when they are in fact separate: Unable to handle kernel NULL pointer dereference

Re: [PATCH v2 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-06 Thread Jiri Slaby
On 06. 04. 21, 13:24, Xiaofei Tan wrote: Fix coding style issues of block comments, reported by checkpatch.pl. Besides, do some expression optimization for the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6

[PATCH] mfd: syscon: free the allocated name field of struct regmap_config

2021-04-06 Thread Meng . Li
From: Limeng The commit 529a1101212a("mfd: syscon: Don't free allocated name for regmap_config") doesn't free the allocated name field of struct regmap_config, but introduce a memory leak. There is another commit 94cc89eb8fa5("regmap: debugfs: Fix handling of name string for debugfs init

Re: [PATCH v2 8/8] KVM: SVM: Allocate SEV command structures on local stack

2021-04-06 Thread Christophe Leroy
Le 07/04/2021 à 00:49, Sean Christopherson a écrit : Use the local stack to "allocate" the structures used to communicate with the PSP. The largest struct used by KVM, sev_data_launch_secret, clocks in at 52 bytes, well within the realm of reasonable stack usage. The smallest structs are a

Re: [PATCH v7 1/8] pwm: pca9685: Switch to atomic API

2021-04-06 Thread Uwe Kleine-König
Hello, On Tue, Apr 06, 2021 at 06:41:33PM +0200, Clemens Gruber wrote: > The switch to the atomic API goes hand in hand with a few fixes to > previously experienced issues: > - The duty cycle is no longer lost after disable/enable (previously the > OFF registers were cleared in disable and the

Re: [RESEND PATCH v5 1/2] bio: limit bio max size

2021-04-06 Thread Changheun Lee
> On Wed, Apr 07, 2021 at 09:16:12AM +0900, Changheun Lee wrote: > > > On Tue, Apr 06, 2021 at 10:31:28AM +0900, Changheun Lee wrote: > > > > > bio size can grow up to 4GB when muli-page bvec is enabled. > > > > > but sometimes it would lead to inefficient behaviors. > > > > > in case of large

Re: [PATCH -next] tty: n_gsm: use DEFINE_SPINLOCK() for spinlock

2021-04-06 Thread Jiri Slaby
On 06. 04. 21, 13:56, Huang Guobin wrote: From: Guobin Huang spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Guobin Huang Reviewed-by: Jiri Slaby --- drivers/tty/n_gsm.c | 4 +---

[PATCH] usb: cdns3: Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
When cdns3_gadget_start() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/usb/cdns3/cdns3-gadget.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdns3-gadget.c

Re: [PATCH v2 7/8] crypto: ccp: Use the stack and common buffer for INIT command

2021-04-06 Thread Christophe Leroy
Le 07/04/2021 à 00:49, Sean Christopherson a écrit : Drop the dedicated init_cmd_buf and instead use a local variable. Now that the low level helper uses an internal buffer for all commands, using the stack for the upper layers is safe even when running with CONFIG_VMAP_STACK=y.

Re: [PATCH v2 5/8] crypto: ccp: Use the stack for small SEV command buffers

2021-04-06 Thread Christophe Leroy
Le 07/04/2021 à 00:49, Sean Christopherson a écrit : For commands with small input/output buffers, use the local stack to "allocate" the structures used to communicate with the PSP. Now that __sev_do_cmd_locked() gracefully handles vmalloc'd buffers, there's no reason to avoid using the

Re: [PATCH v3 2/2] iio: temperature: add driver support for ti tmp117

2021-04-06 Thread Puranjay Mohan
On Wed, Apr 7, 2021 at 10:26 AM Lars-Peter Clausen wrote: > > On 4/6/21 8:28 PM, Puranjay Mohan wrote: > > + > > +static int tmp117_write_raw(struct iio_dev *indio_dev, > > + struct iio_chan_spec const *channel, int val, > > + int val2, long mask) > > +{ > > + struct

Re: [PATCH] bus: mhi: pci_generic: Add SDX65 based modem support

2021-04-06 Thread Manivannan Sadhasivam
On Fri, Apr 02, 2021 at 02:33:19PM -0700, Bhaumik Bhatt wrote: > Add generic info for SDX65 based modems. > > Signed-off-by: Bhaumik Bhatt Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > This patch was tested on SDX65 hardware with Ubuntu X86_64 PC as host. > >

[PATCH] mfd: arizona: Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

Re: [RESEND PATCH] bus: mhi: core: Remove pre_init flag used for power purposes

2021-04-06 Thread Manivannan Sadhasivam
On Thu, Apr 01, 2021 at 02:41:49PM -0700, Bhaumik Bhatt wrote: > Some controllers can choose to skip preparation for power up. > In that case, device context is initialized based on the pre_init > flag not being set during mhi_prepare_for_power_up(). There is no > reason MHI host driver should

Re: [RESEND PATCH v5 1/2] bio: limit bio max size

2021-04-06 Thread Greg KH
On Wed, Apr 07, 2021 at 09:16:12AM +0900, Changheun Lee wrote: > > On Tue, Apr 06, 2021 at 10:31:28AM +0900, Changheun Lee wrote: > > > > bio size can grow up to 4GB when muli-page bvec is enabled. > > > > but sometimes it would lead to inefficient behaviors. > > > > in case of large chunk direct

Re: High kmalloc-32 slab cache consumption with 10k containers

2021-04-06 Thread Bharata B Rao
On Wed, Apr 07, 2021 at 08:28:07AM +1000, Dave Chinner wrote: > On Mon, Apr 05, 2021 at 11:18:48AM +0530, Bharata B Rao wrote: > > Hi, > > > > When running 1 (more-or-less-empty-)containers on a bare-metal Power9 > > server(160 CPUs, 2 NUMA nodes, 256G memory), it is seen that memory > >

Re: [PATCH] fs/debugfs: Convert to DEFINE_SHOW_ATTRIBUTE

2021-04-06 Thread Greg KH
On Wed, Apr 07, 2021 at 10:22:06AM +0800, Zuo Qi Lin wrote: > On Fri, 2 Apr 2021 14:22:24 +0200 > Greg KH wrote: > > > On Fri, Apr 02, 2021 at 08:11:41PM +0800, zuoqil...@163.com wrote: > > > From: zuoqilin > > > > Please use your full/real name. > > > > thanks, > > > > greg k-h > >

Re: [PATCH v4 3/7] regulator: IRQ based event/error notification helpers

2021-04-06 Thread Matti Vaittinen
Morning Andy, Thanks for the review! By the way, is it me or did your mail-client spill this out using HTML? On Wed, 2021-04-07 at 01:44 +0300, Andy Shevchenko wrote: > On Tuesday, April 6, 2021, Matti Vaittinen < > matti.vaitti...@fi.rohmeurope.com> wrote: > > +static void die_loudly(const

[PATCH] iio: proximity: pulsedlight: Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
When lidar_write_control() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c

Re: [PATCH v3 2/2] iio: temperature: add driver support for ti tmp117

2021-04-06 Thread Lars-Peter Clausen
On 4/6/21 8:28 PM, Puranjay Mohan wrote: + +static int tmp117_write_raw(struct iio_dev *indio_dev, + struct iio_chan_spec const *channel, int val, + int val2, long mask) +{ + struct tmp117_data *data = iio_priv(indio_dev); + s16 off; + + switch

[RFC v2 net-next 4/4] staging: mt7621-dts: enable MT7530 interrupt controller

2021-04-06 Thread DENG Qingfang
Enable MT7530 interrupt controller in the MT7621 SoC. Signed-off-by: DENG Qingfang --- RFC v1 -> RFC v2: - No changes. drivers/staging/mt7621-dts/mt7621.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi

[RFC v2 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-06 Thread DENG Qingfang
Add support for MT7530 interrupt controller to handle internal PHYs. In order to assign an IRQ number to each PHY, the registration of MDIO bus is also done in this driver. Signed-off-by: DENG Qingfang --- RFC v1 -> RFC v2: - Split MDIO and IRQ setup function drivers/net/dsa/Kconfig | 1 +

[RFC v2 net-next 3/4] dt-bindings: net: dsa: add MT7530 interrupt controller binding

2021-04-06 Thread DENG Qingfang
Add device tree binding to support MT7530 interrupt controller. Signed-off-by: DENG Qingfang --- RFC v1 -> RFC v2: - No changes. Documentation/devicetree/bindings/net/dsa/mt7530.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mt7530.txt

[RFC v2 net-next 0/4] MT7530 interrupt support

2021-04-06 Thread DENG Qingfang
Add support for MT7530 interrupt controller. DENG Qingfang (4): net: phy: add MediaTek PHY driver net: dsa: mt7530: add interrupt support dt-bindings: net: dsa: add MT7530 interrupt controller binding staging: mt7621-dts: enable MT7530 interrupt controller

[RFC v2 net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-06 Thread DENG Qingfang
Add support for MediaTek PHYs found in MT7530 and MT7531 switches. The initialization procedure is from the vendor driver, but due to lack of documentation, the function of some register values remains unknown. Signed-off-by: DENG Qingfang --- RFC v1 -> RFC v2: - Add PHY interface mode check,

[PATCH v3 10/10] erofs: enable big pcluster feature

2021-04-06 Thread Gao Xiang
From: Gao Xiang Enable COMPR_CFGS and BIG_PCLUSTER since the implementations are all settled properly. Acked-by: Chao Yu Signed-off-by: Gao Xiang --- fs/erofs/erofs_fs.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/erofs/erofs_fs.h b/fs/erofs/erofs_fs.h index

[PATCH v3 09/10] erofs: support decompress big pcluster for lz4 backend

2021-04-06 Thread Gao Xiang
From: Gao Xiang Prior to big pcluster, there was only one compressed page so it'd easy to map this. However, when big pcluster is enabled, more work needs to be done to handle multiple compressed pages. In detail, - (maptype 0) if there is only one compressed page + no need to copy inplace

[PATCH v3 08/10] erofs: support parsing big pcluster compact indexes

2021-04-06 Thread Gao Xiang
From: Gao Xiang Different from non-compact indexes, several lclusters are packed as the compact form at once and an unique base blkaddr is stored for each pack, so each lcluster index would take less space on avarage (e.g. 2 bytes for COMPACT_2B.) btw, that is also why BIG_PCLUSTER switch should

[PATCH v3 07/10] erofs: support parsing big pcluster compress indexes

2021-04-06 Thread Gao Xiang
From: Gao Xiang When INCOMPAT_BIG_PCLUSTER sb feature is enabled, legacy compress indexes will also have the same on-disk header compact indexes to keep per-file configurations instead of leaving it zeroed. If ADVISE_BIG_PCLUSTER is set for a file, CBLKCNT will be loaded for each pcluster in

[PATCH v3 06/10] erofs: adjust per-CPU buffers according to max_pclusterblks

2021-04-06 Thread Gao Xiang
From: Gao Xiang Adjust per-CPU buffers on demand since big pcluster definition is available. Also, bail out unsupported pcluster size according to Z_EROFS_PCLUSTER_MAX_SIZE. Acked-by: Chao Yu Signed-off-by: Gao Xiang --- fs/erofs/decompressor.c | 20 fs/erofs/internal.h

[PATCH v3 05/10] erofs: add big physical cluster definition

2021-04-06 Thread Gao Xiang
From: Gao Xiang Big pcluster indicates the size of compressed data for each physical pcluster is no longer fixed as block size, but could be more than 1 block (more accurately, 1 logical pcluster) When big pcluster feature is enabled for head0/1, delta0 of the 1st non-head lcluster index will

[PATCH v3 04/10] erofs: fix up inplace I/O pointer for big pcluster

2021-04-06 Thread Gao Xiang
From: Gao Xiang When picking up inplace I/O pages, it should be traversed in reverse order in aligned with the traversal order of file-backed online pages. Also, index should be updated together when preloading compressed pages. Previously, only page-sized pclustersize was supported so no

[PATCH v3 03/10] erofs: introduce physical cluster slab pools

2021-04-06 Thread Gao Xiang
From: Gao Xiang Since multiple pcluster sizes could be used at once, the number of compressed pages will become a variable factor. It's necessary to introduce slab pools rather than a single slab cache now. This limits the pclustersize to 1M (Z_EROFS_PCLUSTER_MAX_SIZE), and get rid of the

[PATCH v3 02/10] erofs: introduce multipage per-CPU buffers

2021-04-06 Thread Gao Xiang
From: Gao Xiang To deal the with the cases which inplace decompression is infeasible for some inplace I/O. Per-CPU buffers was introduced to get rid of page allocation latency and thrash for low-latency decompression algorithms such as lz4. For the big pcluster feature, introduce multipage

[PATCH v3 01/10] erofs: reserve physical_clusterbits[]

2021-04-06 Thread Gao Xiang
From: Gao Xiang Formal big pcluster design is actually more powerful / flexable than the previous thought whose pclustersize was fixed as power-of-2 blocks, which was obviously inefficient and space-wasting. Instead, pclustersize can now be set independently for each pcluster, so various

[PATCH v3 00/10] erofs: add big pcluster compression support

2021-04-06 Thread Gao Xiang
Hi folks, This is the formal version of EROFS big pcluster support, which means EROFS can compress data into more than 1 fs block after this patchset. {l,p}cluster are EROFS-specific concepts, standing for `logical cluster' and `physical cluster' correspondingly. Logical cluster is the basic

Re: [PATCH v3 3/3] input: gpio-keys: Use hrtimer for software debounce, if possible

2021-04-06 Thread Dmitry Torokhov
On Tue, Apr 06, 2021 at 11:37:07AM +0300, Tony Lindgren wrote: > Hi, > > * Dmitry Torokhov [700101 02:00]: > > On Sun, Mar 07, 2021 at 10:22:40PM +, Paul Cercueil wrote: > > > We want to be able to report the input event as soon as the debounce > > > delay elapsed. However, the current code

[PATCH v2 3/3] arm64: dts: meson: add GPIO line names to ODROID N2/N2+

2021-04-06 Thread Christian Hewitt
From: Hyeonki Hong Add GPIO line-name identifiers to the ODROID N2/N2+ common dtsi. Signed-off-by: Hyeonki Hong Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- .../dts/amlogic/meson-g12b-odroid-n2.dtsi | 45 +++ 1 file changed, 45 insertions(+) diff

[PATCH v2 1/3] arm64: dts: meson: remove extra tab from ODROID N2/N2+ ext_mdio node

2021-04-06 Thread Christian Hewitt
Remove an extra tab from the ext_mdio node in the ODROID N2/N2+ common dtsi file. Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 2/3] arm64: dts: meson: add saradc node to ODROID N2/N2+

2021-04-06 Thread Christian Hewitt
From: Hyeonki Hong Add the meson saradc node to the ODROID N2/N2+ common dtsi. Signed-off-by: Hyeonki Hong Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 0/3] arm64: dts: meson: misc ODROID-N2/N2+ changes

2021-04-06 Thread Christian Hewitt
This series cleans-up and submits some minor patches used in HardKernel Linux 5.10 and 5.11 images for the ODROID N2/N2+, and fixes a stray tab. Changes since v1: - Added reviewed-by's on patches 1/3 - Added my Signed-off-by to patches 2/3 - Added missing vref to patch 2 - Rebased on

Re: rtlwifi/rtl8192cu AP mode broken with PS STA

2021-04-06 Thread Larry Finger
On 4/6/21 9:48 PM, Pkshih wrote: On Tue, 2021-04-06 at 11:25 -0500, Larry Finger wrote: On 4/6/21 7:06 AM, Maciej S. Szmigiero wrote: On 06.04.2021 12:00, Kalle Valo wrote: "Maciej S. Szmigiero" writes: On 29.03.2021 00:54, Maciej S. Szmigiero wrote: Hi, It looks like rtlwifi/rtl8192cu

linux-next: manual merge of the keys tree with the integrity tree

2021-04-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the keys tree got a conflict in: certs/system_keyring.c between commit: df73a4001959 ("ima: enable loading of build time generated key on .ima keyring") from the integrity tree and commit: 9536390dcc8c ("certs: Move load_system_certificate_list to a

[PATCH v4] binder: tell userspace to dump current backtrace when detecting oneway spamming

2021-04-06 Thread Hang Lu
When async binder buffer got exhausted, some normal oneway transactions will also be discarded and may cause system or application failures. By that time, the binder debug information we dump may not be relevant to the root cause. And this issue is difficult to debug if without the backtrace of

[PATCH] Input: cyapa - Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
When mutex_lock_interruptible() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/input/mouse/cyapa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/cyapa.c

[PATCH] staging: rtl8192e: rtl8192E_dev: remove unused variable

2021-04-06 Thread Jiapeng Chong
Fix the following gcc warning: drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:693:15: warning: variable ‘tmpRegC’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 6 +++--- 1 file changed,

Re: [PATCH][next] erofs: fix uninitialized variable i used in a while-loop

2021-04-06 Thread Gao Xiang
Hi Joe, On Tue, Apr 06, 2021 at 08:38:44PM -0700, Joe Perches wrote: > On Wed, 2021-04-07 at 07:54 +0800, Gao Xiang wrote: > > Hi Colin, > > > > On Tue, Apr 06, 2021 at 05:27:18PM +0100, Colin King wrote: > > > From: Colin Ian King > > > > > > The while-loop iterates until src is non-null or i

[PATCH v3 4/4] ima: add support for rsa pss verification

2021-04-06 Thread Hongbo Li
This patch adds support for ima verification for rsa with pss encoding. And a patch for ima-evm-utils will be sent later. Signed-off-by: Hongbo Li --- security/integrity/digsig_asymmetric.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git

[PATCH v3 3/4] crypto: add rsa pss test vector

2021-04-06 Thread Hongbo Li
This patch adds the test vector for rsa with pss encoding. Signed-off-by: Hongbo Li --- crypto/testmgr.c | 7 + crypto/testmgr.h | 90 2 files changed, 97 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index

[PATCH v3 2/4] crypto: support rsa-pss encoding

2021-04-06 Thread Hongbo Li
This patch add the support of rsa-pss encoding which is described rfc8017. Similar to rsa-pkcs1, we create a pss template. Signed-off-by: Hongbo Li --- crypto/Makefile | 7 +- crypto/rsa-psspad.c | 398 ++ crypto/rsa.c

[PATCH v3 1/4] x509: add support for rsa-pss

2021-04-06 Thread Hongbo Li
This patch make x509 support rsa-pss, because the sha algo is in paramters, so we need to parse the sha parameter, and skip other params. Signed-off-by: Hongbo Li --- crypto/asymmetric_keys/Makefile| 7 ++- crypto/asymmetric_keys/public_key.c| 5 ++

Re: [PATCH] net/mlx5: fix kfree mismatch in indir_table.c

2021-04-06 Thread Saeed Mahameed
On Mon, 2021-04-05 at 07:56 +0300, Leon Romanovsky wrote: > On Mon, Apr 05, 2021 at 10:53:39AM +0800, Xiaoming Ni wrote: > > Memory allocated by kvzalloc() should be freed by kvfree(). > > > > Fixes: 34ca65352ddf2 ("net/mlx5: E-Switch, Indirect table > > infrastructur") > > Signed-off-by:

[PATCH v3 0/4] crypto: add rsa pss support for x509

2021-04-06 Thread Hongbo Li
From: Hongbo Li This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. Patch1 make x509 support rsa pss encoding and parse hash parameter. Patch2 add rsa pss template. Patch3 add test vector for rsa pss. Patch4 is the

[PATCH] iio: light: gp2ap002: Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
When devm_request_threaded_irq() fails, we should decrease the runtime PM counter to keep the counter balanced. But when iio_device_register() fails, we need not to decrease it because we have already decreased it before. Signed-off-by: Dinghao Liu --- drivers/iio/light/gp2ap002.c | 5 +++-- 1

[PATCH v1] drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()

2021-04-06 Thread wangyingjie55
From: Yingjie Wang In radeon_dp_mst_detect(), We should check whether or not @connector has been unregistered from userspace. If the connector is unregistered, we should return disconnected status. Fixes: 9843ead08f18 ("drm/radeon: add DisplayPort MST support (v2)") Signed-off-by: Yingjie Wang

[PATCH] lib: parser: clean up kernel-doc

2021-04-06 Thread Randy Dunlap
Cc: David Howells Cc: linux-fsde...@vger.kernel.org --- lib/parser.c | 61 ++--- 1 file changed, 38 insertions(+), 23 deletions(-) --- linux-next-20210406.orig/lib/parser.c +++ linux-next-20210406/lib/parser.c @@ -98,7 +98,7 @@ static int match_one(char

[PATCH v1 1/2] driver core: Add dev_set_drv_sync_state()

2021-04-06 Thread Saravana Kannan
This can be used by frameworks to set the sync_state() helper functions for drivers that don't already have them set. Signed-off-by: Saravana Kannan --- include/linux/device.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/device.h b/include/linux/device.h index

[PATCH v1 2/2] clk: Add support for sync_state()

2021-04-06 Thread Saravana Kannan
Clocks can be turned on (by the hardware, bootloader, etc) upon a reset/boot of a hardware platform. These "boot clocks" could be clocking devices that are active before the kernel starts running. For example, clocks needed for the interconnects, UART console, display, CPUs, DDR, etc. When a boot

[PATCH v1 0/2] Add sync_state() support to clock framework

2021-04-06 Thread Saravana Kannan
Stephen, We can decide later if both these patches land through clk tree or the driver-core tree. The meat of the series is in Patch 2/2 and that commit text gives all the details. Saravana Kannan (2): driver core: Add dev_set_drv_sync_state() clk: Add support for sync_state()

RE: [PATCH v6] soc: fsl: enable acpi support in RCPM driver

2021-04-06 Thread Leo Li
> -Original Message- > From: Ran Wang > Sent: Tuesday, April 6, 2021 8:32 PM > To: Leo Li > Cc: Christophe Leroy ; linuxppc-dev > ; moderated list:ARM/FREESCALE IMX / MXC > ARM ARCHITECTURE ; lkml ker...@vger.kernel.org> > Subject: RE: [PATCH v6] soc: fsl: enable acpi support in RCPM

Re: [PATCH][next] erofs: fix uninitialized variable i used in a while-loop

2021-04-06 Thread Joe Perches
On Wed, 2021-04-07 at 07:54 +0800, Gao Xiang wrote: > Hi Colin, > > On Tue, Apr 06, 2021 at 05:27:18PM +0100, Colin King wrote: > > From: Colin Ian King > > > > The while-loop iterates until src is non-null or i is 3, however, the > > loop counter i is not intinitialied to zero, causing

[PATCH] vfs: fs_parser: clean up kernel-doc warnings

2021-04-06 Thread Randy Dunlap
-off-by: Randy Dunlap Cc: Andrew Morton Cc: Alexander Viro Cc: David Howells Cc: linux-fsde...@vger.kernel.org --- fs/fs_parser.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210406.orig/fs/fs_parser.c +++ linux-next-20210406/fs/fs_parser.c @@ -310,7 +310,6

[PATCH] i2c: omap: Fix rumtime PM imbalance on error

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

  1   2   3   4   5   6   7   8   9   10   >