Re: [PATCH] power: supply: Add dependency to lego-ev3-battery Kconfig options

2020-08-12 Thread David Lechner
On 8/12/20 8:37 AM, Alex Dewar wrote: On Tue, Aug 11, 2020 at 09:24:10AM -0500, David Lechner wrote: On 8/9/20 1:54 PM, Alex Dewar wrote: This battery appears only to be used by a single board (DA850), so it makes sense to add this to the Kconfig file so that users don't build the module unnece

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-12 Thread Doug Anderson
Hi, On Wed, Aug 12, 2020 at 7:53 AM Sumit Garg wrote: > > Hi Doug, > > On Tue, 11 Aug 2020 at 22:46, Doug Anderson wrote: > > > > Hi, > > > > On Tue, Aug 11, 2020 at 7:58 AM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > > > > Hi Greg, >

Re: [PATCH 2/2 v3] usb: typec: pd: Fix formatting in pd.h header

2020-08-12 Thread Guenter Roeck
On Tue, Aug 11, 2020 at 07:29:34PM -0700, Badhri Jagan Sridharan wrote: > Replacing spaces with tabs for PD_T_* constants. > > Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Guenter Roeck > --- > Change history: > First version. Keeping the version number same as the parent. > > --- > in

Re: [PATCH] drm/amdgpu: adjust the pid in the grab_id trace point

2020-08-12 Thread Christian König
Am 12.08.20 um 17:19 schrieb Steven Rostedt: On Wed, 12 Aug 2020 16:36:36 +0200 Christian König wrote: Am 12.08.20 um 16:17 schrieb Steven Rostedt: On Fri, Aug 07, 2020 at 03:36:58PM +0200, Christian König wrote: Trace something useful instead of the pid of a kernel thread here. Signed-off-

Re: [PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable

2020-08-12 Thread Daniel Gutson
ping On Tue, Aug 4, 2020 at 6:26 PM Daniel Gutson wrote: > > On Tue, Aug 4, 2020 at 5:46 PM Arnd Bergmann wrote: > > > > On Tue, Aug 4, 2020 at 9:57 PM Daniel Gutson wrote: > > > On Tue, Aug 4, 2020 at 4:06 PM Arnd Bergmann wrote: > > > > On Tue, Aug 4, 2020 at 5:49 PM Daniel Gutson > > > >

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-12 Thread James Bottomley
On Wed, 2020-08-12 at 09:56 -0400, Chuck Lever wrote: > > On Aug 11, 2020, at 2:28 PM, James Bottomley > nPartnership.com> wrote: > > > > On Tue, 2020-08-11 at 10:48 -0400, Chuck Lever wrote: > > > Mimi's earlier point is that any IMA metadata format that > > > involves unsigned digests is expose

[PATCH] mailmap: Add entry for Greg Kurz

2020-08-12 Thread Greg Kurz
I had stopped using gk...@linux.vnet.ibm.com a while back already but this email address was shutdown last June when I quit IBM. It's about time to map it to gr...@kaod.org. Signed-off-by: Greg Kurz --- .mailmap |1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index db4

Re: [PATCH] ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop

2020-08-12 Thread Kai-Heng Feng
Hi, > On Aug 11, 2020, at 17:53, Kai-Heng Feng wrote: > > There's another HP desktop has buggy BIOS which flags the Port > Connectivity bit as no connection. > > Apply force connectivity quirk to enable DP/HDMI audio. > > Signed-off-by: Kai-Heng Feng I guess this patch was omitted as well...

Re: [PATCH] drm: assure aux_dev is nonzero before using it

2020-08-12 Thread Lyude Paul
On Wed, 2020-08-12 at 16:10 +0200, Daniel Vetter wrote: > On Wed, Aug 12, 2020 at 12:16 AM Zwane Mwaikambo wrote: > > On Tue, 11 Aug 2020, Daniel Vetter wrote: > > > > > On Mon, Aug 10, 2020 at 10:11:50AM -0700, Zwane Mwaikambo wrote: > > > > Hi Folks, > > > > I know this thread eventually dr

Re: [PATCH] ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop

2020-08-12 Thread Takashi Iwai
On Wed, 12 Aug 2020 17:43:27 +0200, Kai-Heng Feng wrote: > > Hi, > > > On Aug 11, 2020, at 17:53, Kai-Heng Feng > > wrote: > > > > There's another HP desktop has buggy BIOS which flags the Port > > Connectivity bit as no connection. > > > > Apply force connectivity quirk to enable DP/HDMI aud

Recursive/circular locking in serial8250_console_write/serial8250_do_startup

2020-08-12 Thread Guenter Roeck
Hi, crbug.com/1114800 reports a hard lockup due to circular locking in the 8250 console driver. This is seen if CONFIG_PROVE_LOCKING is enabled. Problem is as follows: - serial8250_do_startup() locks the serial (console) port. - serial8250_do_startup() then disables interrupts if interrupts are

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-12 Thread James Bottomley
On Wed, 2020-08-12 at 10:15 -0400, Chuck Lever wrote: > > On Aug 11, 2020, at 11:53 AM, James Bottomley > > wrote: > > > > On Tue, 2020-08-11 at 10:48 -0400, Chuck Lever wrote: [...] > > > > > > > > and what is nice to have to speed up the verification > > > > process. The choice for the latter

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-12 Thread Pierre-Louis Bossart
On 8/12/20 9:55 AM, Takashi Iwai wrote: On Wed, 12 Aug 2020 16:46:40 +0200, Pierre-Louis Bossart wrote: After doing some experiments, I think I can identify the problem more precisely. 1. aplay can not reproduce this issue because it writes samples immediately when there are some space in

Re: [RFC PATCH 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-08-12 Thread Stephan Gerhold
Hi Viresh, On Wed, Aug 12, 2020 at 08:31:22PM +0530, Viresh Kumar wrote: > On 12-08-20, 12:53, Stephan Gerhold wrote: > > I have another small build fix reported by the kernel test robot, > > but will wait with sending that out until Viresh had a chance to give > > some feedback on the basic idea.

[PATCH 20/44] staging: mfd: hi6421-spmi-pmic: fix some coding style issues

2020-08-12 Thread Mauro Carvalho Chehab
Checkpatch complains about some minor issues inside this driver that were not addressed by the previous patch. Address them. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 4 ++-- include/linux/mfd/hi6421-spmi-pmic.h| 3 ++- 2 files changed, 4 ins

[PATCH 13/44] staging: mfd: hi6421-spmi-pmic: deal with non-static functions

2020-08-12 Thread Mauro Carvalho Chehab
Several functions aren't used outside the mfd driver. So, either remove or make them static. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 147 1 file changed, 24 insertions(+), 123 deletions(-) diff --git a/drivers/staging/hikey9xx/

[PATCH 16/44] staging: mfd: hi6421-spmi-pmic: change the binding logic

2020-08-12 Thread Mauro Carvalho Chehab
Change the binding logic to ensure that the MFD driver will be load after having the SPMI controller registered. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 84 +++-- 1 file changed, 29 insertions(+), 55 deletions(-) diff --git a/driver

[PATCH 22/44] staging: mfd: hi6421-spmi-pmic: cleanup the code

2020-08-12 Thread Mauro Carvalho Chehab
There are several small cleanups that can be done in order to make the code more prepared to be upstreamed. Suggested-by: Jonathan Cameron Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 146 +--- include/linux/mfd/hi6421-spmi-pmic.h

[PATCH 19/44] staging: mfd: hi6421-spmi-pmic: change namespace on its functions

2020-08-12 Thread Mauro Carvalho Chehab
Rename the functions used internally inside the driver in order for them to follow the driver's name. While here, get rid of some unused definitions at the header file. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 97 +++-- include/linux

[PATCH 36/44] staging: regulator: hi6421v600-regulator: initialize ramp_delay

2020-08-12 Thread Mauro Carvalho Chehab
Without that, the regulator's core complains with: ldo17: ramp_delay not set For now, use the enable time, as we don't have any datasheets from this device. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421v600-regulator.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 15/44] staging: mfd: hi6421-spmi-pmic: cleanup hi6421-spmi-pmic.h header

2020-08-12 Thread Mauro Carvalho Chehab
There are several external vars that are defined there, which are not needed anymore. Get rid of them. Signed-off-by: Mauro Carvalho Chehab --- include/linux/mfd/hi6421-spmi-pmic.h | 26 -- 1 file changed, 26 deletions(-) diff --git a/include/linux/mfd/hi6421-spmi-pmic.

[PATCH 10/44] staging: spmi: hisi-spmi-controller: do some code cleanups

2020-08-12 Thread Mauro Carvalho Chehab
There are several minor things that can be cleanup in order to make this driver more prepared for leaving staging. Suggested-by: Jonathan Cameron Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hisi-spmi-controller.c | 135 +++--- 1 file changed, 51 insertions(+), 84

[PATCH 23/44] staging: regulator: add a regulator driver for HiSilicon 6421v600 SPMI PMIC

2020-08-12 Thread Mauro Carvalho Chehab
From: Mayulong Add the regulator driver for the LDO lines provided by the HiSilicon 6421v600 SPMI PMIC device. [mchehab+hua...@kernel.org: keep just the regulator driver on this patch, renaming it to better fit at upstream namespace] The compete patch is at: https://github.com/96boards

[PATCH 34/44] staging: regulator: hi6421v600-regulator: don't use usleep_range for off_on_delay

2020-08-12 Thread Mauro Carvalho Chehab
The regulator's core already handles it. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421v600-regulator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/hikey9xx/hi6421v600-regulator.c b/drivers/staging/hikey9xx/hi6421v600-regulator.c index abd1f43

[PATCH 26/44] staging: regulator: hi6421v600-regulator: coding style fixups

2020-08-12 Thread Mauro Carvalho Chehab
There are several issues on those drivers related to their coding style. Solve most of them. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 110 +- 1 file changed, 56 insertions(+), 54 deletions(-) diff --git a/drivers/staging/hikey9xx/h

[PATCH 38/44] staging: regulator: hi6421v600-regulator: fix some coding style issues

2020-08-12 Thread Mauro Carvalho Chehab
Fix the remaining issues complained by checkpatch. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 28 +-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/hikey9xx/hi6421v600-regulator.c b/drivers/staging/h

[PATCH 05/44] staging: spmi: hisi-spmi-controller: adjust whitespaces at defines

2020-08-12 Thread Mauro Carvalho Chehab
Some defines are not aligned with tab=8, which is the style defined on Linux. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hisi-spmi-controller.c | 26 ++- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/staging/hikey9xx/his

[PATCH 27/44] staging: regulator: hi6421v600-regulator: change the binding logic

2020-08-12 Thread Mauro Carvalho Chehab
Change the binding logic to ensure that the PMIC SPMI driver will run before the regulator code and add it to the building system. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 186 +- 1 file changed, 91 insertions(+), 95 deletions(-) d

[PATCH 41/44] staging: hikey9xx: add a TODO list

2020-08-12 Thread Mauro Carvalho Chehab
Place the things that are needed to be able to move those drivers out of staging. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/TODO | 5 + 1 file changed, 5 insertions(+) create mode 100644 drivers/staging/hikey9xx/TODO diff --git a/drivers/staging/hikey9xx/TODO b/driv

[PATCH 28/44] staging: regulator: hi6421v600-regulator: cleanup struct hisi_regulator

2020-08-12 Thread Mauro Carvalho Chehab
There are several fields on this struct that can be removed, as they already exists at struct regulator_desc. Remove them, cleaning up the code in the process. While here, rename it to hi6421v600_regulator_info, in order to better match the driver's name. Signed-off-by: Mauro Carvalho Chehab --

[PATCH 33/44] staging: regulator: hi6421v600-regulator: convert to use get/set voltage_sel

2020-08-12 Thread Mauro Carvalho Chehab
As the supported LDOs on this driver are all using a selector, change the implementation to use get_voltage_sel and set_voltage_sel ops. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 58 +++ 1 file changed, 22 insertions(+), 36 deletions

[PATCH 31/44] staging: regulator: hi6421v600-regulator: better handle modes

2020-08-12 Thread Mauro Carvalho Chehab
Instead of implementing a custom set of properties, set valid_modes_mask based on having or not a mask for enabling the eco_mode. This makes the code clearer, and remove some uneeded props from DT. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 32 +

[PATCH 37/44] staging: regulator: hi6421v600-regulator: cleanup DT settings

2020-08-12 Thread Mauro Carvalho Chehab
Currently, an array is used to store both vsel and enable settings, mixing registers, masks and bit settings. Change it in order to have one separate property for each. This makes easier to understand the contents of the DT file, and to describe it at the Documentation/. Signed-off-by: Mauro Car

[PATCH 44/44] dt: hisilicon: add support for the PMIC found on Hikey 970

2020-08-12 Thread Mauro Carvalho Chehab
Add a device tree for the HiSilicon 6421v600 SPMI PMIC, used on HiKey970 board. As we now have support for it, change the fixed regulators used by the SD I/O to use the proper LDO supplies. We'll keep the 3v3 fixed regulator, as this will be used by the DRM/KMS driver. So, let's just rename it.

[PATCH 40/44] staging: regulator: hi6421v600-regulator: code cleanup

2020-08-12 Thread Mauro Carvalho Chehab
Do some code cleanup in order to make it cleaner for moving it out of staging in the future. Suggested-by: Jonathan Cameron Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 74 --- 1 file changed, 30 insertions(+), 44 deletions(-) diff --

[PATCH 43/44] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-12 Thread Mauro Carvalho Chehab
Add documentation for the properties needed by the HiSilicon 6421v600 driver, and by the SPMI controller used to access the chipset. Signed-off-by: Mauro Carvalho Chehab --- .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 182 ++ .../spmi/hisilicon,hisi-spmi-controller.yaml | 5

[PATCH 29/44] staging: regulator: hi6421v600-regulator: cleanup debug messages

2020-08-12 Thread Mauro Carvalho Chehab
- use dev_foo() instead of pr_foo(); - cleanup the messages, making them more standard and easier to understand. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 76 --- 1 file changed, 47 insertions(+), 29 deletions(-) diff --git a/driv

[PATCH 42/44] MAINTAINERS: add an entry for HiSilicon 6421v600 drivers

2020-08-12 Thread Mauro Carvalho Chehab
Add an entry for the SPMI, MFD and PMIC parts of the HiSilicon 6421v600 support. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 956ecd5ba426..e2de0b2119fd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH 35/44] staging: regulator: hi6421v600-regulator: add a driver-specific debug macro

2020-08-12 Thread Mauro Carvalho Chehab
Using dev_dbg() is not too nice, as, instead of printing the name of the regulator, it prints "regulator.", making harder to associate what is happening with each ldo line. So, add a debug-specific macro, which will print the rdev's name, just like the regulator core. Signed-off-by: Mauro Carvalh

[PATCH 00/44] SPMI patches needed by Hikey 970

2020-08-12 Thread Mauro Carvalho Chehab
Hi Greg, This patch series is part of a work I'm doing in order to be able to support a HiKey 970 board that I recently got on my hands. I received some freedback from Mark and from Jonathan on a first attempt I made to upstream this. I'm opting to submit it via staging, because I had to start f

[PATCH 39/44] staging: regulator: hi6421v600-regulator: add it to the building system

2020-08-12 Thread Mauro Carvalho Chehab
Change the binding logic to ensure that the PMIC SPMI driver will run before the regulator code and add it to the building system. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/Kconfig | 10 +- drivers/staging/hikey9xx/Makefile | 5 +++-- 2 files changed, 12 inserti

[PATCH 30/44] staging: regulator: hi6421v600-regulator: use shorter names for OF properties

2020-08-12 Thread Mauro Carvalho Chehab
Simplify the names of the OF properties, in order to make them similar to other drivers and to make easier to understand what each property means. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 52 --- 1 file changed, 21 insertions(+), 31

[PATCH 32/44] staging: regulator: hi6421v600-regulator: change namespace

2020-08-12 Thread Mauro Carvalho Chehab
Rename the functions used internally inside the driver in order for them to follow the driver's name. While here, get rid of some unused definitions at the header file. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 94 +-- 1 file change

[PATCH 21/44] staging: mfd: hi6421-spmi-pmic: add it to the building system

2020-08-12 Thread Mauro Carvalho Chehab
Now that the driver is ready, place it at the build system. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/Kconfig | 17 + drivers/staging/hikey9xx/Makefile | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/staging/hikey9xx/Kconf

[PATCH 24/44] staging: regulator: hi6421v600-regulator: get rid of unused code

2020-08-12 Thread Mauro Carvalho Chehab
Get rid of the sysfs code and other parts of the driver which aren't needed upstream. If needed later, this patch can be (partially?) reversed. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 196 +- 1 file changed, 8 insertions(+), 188 d

[PATCH 11/44] staging: mfd: add a PMIC driver for HiSilicon 6421 SPMI version

2020-08-12 Thread Mauro Carvalho Chehab
From: Mayulong Add the PMIC SPMI driver for the HiSilicon 6421v600. [mchehab+hua...@kernel.org: keep just the MFD driver on this patch, and renamed filenames to better match other upstream drivers] The compete patch is at: https://github.com/96boards-hikey/linux/commit/08464419fba2 S

[PATCH 14/44] staging: mfd: hi6421-spmi-pmic: get rid of the static vars

2020-08-12 Thread Mauro Carvalho Chehab
There are several static vars inside this driver. Get rid of them. While here, add a SPDX header file. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 224 include/linux/mfd/hi6421-spmi-pmic.h| 20 +- 2 files changed, 97 inse

[PATCH 17/44] staging: mfd: hi6421-spmi-pmic: get rid of unused OF properties

2020-08-12 Thread Mauro Carvalho Chehab
There are several OF properties that aren't used by Hikey 970, and some are not even used inside the driver. So, drop them, as as this makes easier to document what's actually used. If latter needed, those could be re-added later. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9

[PATCH 25/44] staging: regulator: hi6421v600-regulator: port it to upstream

2020-08-12 Thread Mauro Carvalho Chehab
The driver was originally written for Kernel 4.9. It needs to be ported to upstream: - Got rid of timeval; - Removed a bogus dependency; - Did cleanups at the header file. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hi6421v600-regulator.c | 34 +++

[PATCH 18/44] staging: mfd: hi6421-spmi-pmic: cleanup OF properties

2020-08-12 Thread Mauro Carvalho Chehab
Simplify the names of the DT properties and do some cleanups, in order to better document them. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/hikey9xx/hi642

[PATCH 02/44] staging: spmi: hisi-spmi-controller: coding style fixup

2020-08-12 Thread Mauro Carvalho Chehab
In order to prepare for upstream, fix most coding style issues. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hisi-spmi-controller.c | 179 -- 1 file changed, 82 insertions(+), 97 deletions(-) diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c b/driv

[PATCH 07/44] staging: spmi: hisi-spmi-controller: add debug when values are read/write

2020-08-12 Thread Mauro Carvalho Chehab
It is interesting to be able to check if the driver is doing the right thing. So, add some debug macros to allow checking it. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hisi-spmi-controller.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --gi

[PATCH 09/44] staging: spmi: hisi-spmi-controller: add it to the building system

2020-08-12 Thread Mauro Carvalho Chehab
Now that the driver was ported to upstream, add it as a SPMI controller. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + drivers/staging/hikey9xx/Kconfig | 10 ++ drivers/staging/hikey9xx/Makefile | 3 +++ 4

[PATCH 03/44] staging: spmi: hisi-spmi-controller: fix it to probe successfully

2020-08-12 Thread Mauro Carvalho Chehab
Add a MODULE_DEVICE_TABLE() to the driver. Also, the current logic calls platform_set_drvdata(pdev, NULL) if the driver succeeds loading. While here, remove the .owner, as it is not needed upstream anymore. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hisi-spmi-controller.

[PATCH 12/44] staging: mfd: hi6421-spmi-pmic: get rid of unused code

2020-08-12 Thread Mauro Carvalho Chehab
There are some checks there which could make sense for downstream builds, but doesn't make much sense for upstream ones. They came from the official Hikey970 tree from Linaro, but even there, the commented-out code is not set via other Kconfig vars. So, let's just get rid of that. If needed later,

[PATCH 08/44] staging: spmi: hisi-spmi-controller: fix the dev_foo() logic

2020-08-12 Thread Mauro Carvalho Chehab
Right now, driver is printing some messages as: [ 33.833026] (NULL device *): spmi_read_cmd: id:0 addr:0x17, read value: 00 This is because dev_foo() are not using a device with a name set. Change the logic for it to print it right. Signed-off-by: Mauro Carvalho Chehab --- .../stagi

[PATCH 04/44] staging: spmi: hisi-spmi-controller: fix a typo

2020-08-12 Thread Mauro Carvalho Chehab
chanel -> channel Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hisi-spmi-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c b/drivers/staging/hikey9xx/hisi-spmi-controller.c index bc6847f9a5e7..99

[PATCH 01/44] staging: spmi: add Hikey 970 SPMI controller driver

2020-08-12 Thread Mauro Carvalho Chehab
From: Mayulong Add the SPMI controller code required to use the Kirin 970 SPMI bus. [mchehab+hua...@kernel.org: added just the SPMI controller on this patch] The complete patch is at: https://github.com/96boards-hikey/linux/commit/08464419fba2 Signed-off-by: Mayulong Signed-off-by: M

[PATCH 06/44] staging: spmi: hisi-spmi-controller: use le32 macros where needed

2020-08-12 Thread Mauro Carvalho Chehab
Instead of manually using bswap_32(), just use the le32 macros. Signed-off-by: Mauro Carvalho Chehab --- .../staging/hikey9xx/hisi-spmi-controller.c | 20 +++ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c b/drive

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-12 Thread Jessica Yu
+++ Szabolcs Nagy [12/08/20 15:15 +0100]: The 08/12/2020 13:56, Will Deacon wrote: On Wed, Aug 12, 2020 at 12:40:05PM +0200, pet...@infradead.org wrote: > On Wed, Aug 12, 2020 at 10:56:56AM +0200, Ard Biesheuvel wrote: > > The module .lds has BYTE(0) in the section contents to prevent the > > li

Re: [PATCH v32 2/6] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-08-12 Thread Dan Murphy
Pavel On 8/11/20 5:26 PM, Pavel Machek wrote: Hi! Well it depends on where we want to create the default cache values. Either we run through a for..loop during driver probe and delay device start up or we keep the simple arrays and increase the driver total size. for loop will be better. Pl

Re: [PATCH] clk: davinci: Use the correct size when allocating memory

2020-08-12 Thread David Lechner
On 8/9/20 9:49 AM, Christophe JAILLET wrote: 'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a small over-allocation. Fixes: 2d1726915159 ("clk: davinci: New driver for davinci PLL clocks") Signed-off-by: Christophe JAILLET --- Reviewed-by: David Lechner

Re: [PATCH v2 0/4] Perf tool: Enable Arm arch timer counter and arm-spe's timestamp

2020-08-12 Thread Mathieu Poirier
Hi Arnaldo, On Fri, 7 Aug 2020 at 01:16, Leo Yan wrote: > > This patch set is to enable Arm arch timer counter and Arm SPE is the > first customer to use arch timer counter for its timestamp. > > Patches 01 ~ 03 enables Arm arch timer counter in Perf tool; patch 01 is > to retrieve arch timer's p

[PATCH] staging: rtl8723bs: os_dep: fix function-name print using __func__

2020-08-12 Thread Mohammed Rushad
This patch to the os_intfs.c fixes the printing of function names using the preferred '"%s...", __func__' and alignment issues as pointed out by the checkpatch.pl tool. Signed-off-by: Mohammed Rushad --- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 56 +++-- 1 file changed, 29 i

RE: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-12 Thread Lu, Brent
> > > > I also wonder what's really missing, too :) > > > > BTW, I took a look back at the thread, and CRAS seems using a very > > large buffer, namely: > > [ 52.434791] sound pcmC1D0p: PERIOD_SIZE [240:240] > > [ 52.434802] sound pcmC1D0p: BUFFER_SIZE [204480:204480] > > yes, that's 852 p

Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:09PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Document the RZ/G2H (a.k.a. r8a774e1) SoC in the R-Car DU bindings. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed

Re: [PATCH 35/44] staging: regulator: hi6421v600-regulator: add a driver-specific debug macro

2020-08-12 Thread Joe Perches
On Wed, 2020-08-12 at 17:56 +0200, Mauro Carvalho Chehab wrote: > Using dev_dbg() is not too nice, as, instead of printing the > name of the regulator, it prints "regulator.", making > harder to associate what is happening with each ldo line. > > So, add a debug-specific macro, which will print th

Re: [PATCH v4] perf test: Introduce script for Arm CoreSight testing

2020-08-12 Thread Mathieu Poirier
Leo and Arnaldo, On Thu, 6 Aug 2020 at 01:02, Leo Yan wrote: > > We need a simple method to test Perf with Arm CoreSight drivers, this > could be used for smoke testing when new patch is coming for perf or > CoreSight drivers, and we also can use the test to confirm if the > CoreSight has been en

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-12 Thread Sibi Sankar
Kevin, Thanks for taking time to review the series! On 2020-08-12 05:49, Kevin Hilman wrote: Sibi Sankar writes: This is for power domains which needs to stay powered on for suspend but can be powered on/off as part of runtime PM. This flag is aimed at power domains coupled to remote processo

Re: [PATCH 20/44] staging: mfd: hi6421-spmi-pmic: fix some coding style issues

2020-08-12 Thread Joe Perches
On Wed, 2020-08-12 at 17:56 +0200, Mauro Carvalho Chehab wrote: > Checkpatch complains about some minor issues inside this > driver that were not addressed by the previous patch. > > Address them. [] > diff --git a/include/linux/mfd/hi6421-spmi-pmic.h > b/include/linux/mfd/hi6421-spmi-pmic.h [] >

WARNING: kernel/rcu/tree.c:618 rcu_eqs_enter.isra.67+0xd8

2020-08-12 Thread Naresh Kamboju
While running kselftests bpf test_verifier on arm64 juno-r2 device the kernel BUG and WARNING noticed. metadata: git branch: linux-5.8.y git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git commit: b30c8c9d42601af8ebeb3ad42085ff4134a111a0 git describe:

Re: [PATCH 2/9] drm: rcar-du: Add support for R8A774E1 SoC

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:10PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Hookup RZ/G2H (R8A774E1) to DU driver. R8A774E1 has one RGB output, > one LVDS output and one HDMI output. > > Signed-off-by: Marian-Cristian Rotariu > >

[PATCH v6] fuse: Add support for passthrough read/write

2020-08-12 Thread Alessio Balsini
Add support for filesystem passthrough read/write of files when enabled in userspace through the option FUSE_PASSTHROUGH. There are filesystems based on FUSE that are intended to enforce special policies or trigger complicate decision makings at the file operations level. Android, for example, us

Re: [PATCH 3/9] arm64: dts: renesas: r8a774e1: Populate DU device node

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:11PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Populate the DU device node properties in R8A774E1 SoC dtsi. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed-by: La

Re: [PATCH 10/44] staging: spmi: hisi-spmi-controller: do some code cleanups

2020-08-12 Thread Joe Perches
On Wed, 2020-08-12 at 17:56 +0200, Mauro Carvalho Chehab wrote: > There are several minor things that can be cleanup in > order to make this driver more prepared for leaving staging. trivial style notes: > diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c > b/drivers/staging/hikey9xx/

Re: [PATCH 4/9] dt-bindings: display: renesas,lvds: Document r8a774e1 bindings

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:12PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Document the RZ/G2H (R8A774E1) LVDS bindings. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar > --- > .../devicetree/binding

Re: [PATCH 4/9] dt-bindings: display: renesas,lvds: Document r8a774e1 bindings

2020-08-12 Thread Laurent Pinchart
On Wed, Aug 12, 2020 at 07:17:59PM +0300, Laurent Pinchart wrote: > Hi Prabhakar, > > Thank you for the patch. > > On Wed, Aug 12, 2020 at 03:02:12PM +0100, Lad Prabhakar wrote: > > From: Marian-Cristian Rotariu > > > > Document the RZ/G2H (R8A774E1) LVDS bindings. > > > > Signed-off-by: Maria

Re: [PATCH v3 8/8] mm/vmalloc: Hugepage vmalloc mappings

2020-08-12 Thread Jonathan Cameron
On Wed, 12 Aug 2020 13:25:24 +0100 Jonathan Cameron wrote: > On Mon, 10 Aug 2020 12:27:32 +1000 > Nicholas Piggin wrote: > > > On platforms that define HAVE_ARCH_HUGE_VMAP and support PMD vmaps, > > vmalloc will attempt to allocate PMD-sized pages first, before falling > > back to small pages.

Re: [PATCH 5/9] dt-bindings: display: renesas,dw-hdmi: Add r8a774e1 support

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:13PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Document RZ/G2H (R8A774E1) SoC bindings. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed-by: Laurent Pinchart > -

Re: [PATCH 06/44] staging: spmi: hisi-spmi-controller: use le32 macros where needed

2020-08-12 Thread Joe Perches
On Wed, 2020-08-12 at 17:56 +0200, Mauro Carvalho Chehab wrote: > Instead of manually using bswap_32(), just use the > le32 macros. Are you certain this code will now work on any endian cpu? Maybe just use __swab32 instead > diff --git a/drivers/staging/hikey9xx/hisi-spmi-controller.c > b/drive

Re: [PATCH] of/address: check for invalid range.cpu_addr

2020-08-12 Thread Rob Herring
On Wed, Aug 12, 2020 at 1:32 AM Colin Ian King wrote: > > On 10/08/2020 15:06, Colin King wrote: > > From: Colin Ian King > > > > Currently invalid CPU addresses are not being sanity checked resulting in > > SATA setup failure on a SynQuacer SC2A11 development machine. The original > > check was

Re: [PATCH v1 7/7] dt-bindings: phy: cadence-torrent: Update Torrent PHY bindings for generic use

2020-08-12 Thread Rob Herring
On Fri, 07 Aug 2020 12:12:45 +0200, Swapnil Jakhade wrote: > Torrent PHY can be used in different multi-link multi-protocol > configurations including protocols other than DisplayPort also, > such as PCIe, USB, SGMII, QSGMII etc. Update the bindings to have > support for these configurations. > >

Re: [PATCH 01/44] staging: spmi: add Hikey 970 SPMI controller driver

2020-08-12 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2020 at 05:56:11PM +0200, Mauro Carvalho Chehab wrote: > From: Mayulong > > Add the SPMI controller code required to use the Kirin 970 > SPMI bus. > > [mchehab+hua...@kernel.org: added just the SPMI controller on this patch] > > The complete patch is at: > > https://githu

Re: [PATCH 6/9] arm64: dts: renesas: r8a774e1: Populate HDMI encoder node

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:14PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Populate HDMI node properties in R8A774E1 SoC dtsi. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar Reviewed-by: Laurent Pin

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-08-12 Thread Michal Koutný
On Tue, Aug 11, 2020 at 12:32:28PM -0700, Roman Gushchin wrote: > If we'll limit init.slice (where systemd seems to reside), as you suggest, > we'll eventually create trashing in init.slice, followed by OOM. > I struggle to see how it makes the life of a user better? > [...] > The problem is that

Re: [PATCH 7/9] drm: rcar-du: lvds: Add support for R8A774E1 SoC

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:15PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > The LVDS encoder on RZ/G2H (R8A774E1) SoC is identical to R-Car Gen3 so > just reuse the rcar_lvds_gen3_info structure to hookup R8A774E1 to LVDS > encoder d

[PATCH 01/11] dt-bindings: extcon: ptn5150: Convert binding to DT schema

2020-08-12 Thread Krzysztof Kozlowski
Convert the ptn-5150 extcon driver bindings to DT schema format using json-schema. The differences with original bindings document: - Use "gpios" suffix for the "int" and "vbus" gpio, - Skip generic properties like "reg" or "pinctrl". Signed-off-by: Krzysztof Kozlowski --- .../bindings/extcon

[PATCH 05/11] extcon: ptn5150: Use generic "interrupts" property

2020-08-12 Thread Krzysztof Kozlowski
Interrupts do not have to be always GPIO based so instead of expecting "int-gpios" property and converting the GPIO to an interrupt, just accept any interrupt via generic "interrupts" property. Keep support for old "int-gpios" for backware compatibility. Signed-off-by: Krzysztof Kozlowski --- d

[PATCH 02/11] dt-bindings: extcon: ptn5150: Use generic "interrupts" property

2020-08-12 Thread Krzysztof Kozlowski
Interrupts do not have to be always GPIO based so instead of expecting "int-gpios" property and converting the GPIO to an interrupt, just accept any interrupt via generic "interrupts" property. Mark the old "int-gpios" as deprecated. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/binding

[PATCH 07/11] extcon: ptn5150: Lower the noisiness of probe

2020-08-12 Thread Krzysztof Kozlowski
The ptn5150 driver always prints device type on probe but as raw hex, without any translation to meaningful description. This is useful only for board bring up time so lower the verbosity to debug. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 4 ++-- 1 file changed,

[PATCH 06/11] extcon: ptn5150: Simplify getting vbus-gpios with flags

2020-08-12 Thread Krzysztof Kozlowski
Instead of obtaining GPIO as input and configuring it right after to output-low, just use proper GPIOD_OUT_LOW flag. Code is smaller and simpler. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/driv

[PATCH 08/11] extcon: ptn5150: Check current USB mode when probing

2020-08-12 Thread Krzysztof Kozlowski
When machine boots up, the USB could be already in OTG mode. In such case there will be no interrupt coming to ptn5150 device and driver will report default state of nothing connected. Detection of USB connection would happen on first unplug of the cable. Factor out code for checking current con

[PATCH 11/11] MAINTAINERS: Add entry for NXP PTN5150A CC driver

2020-08-12 Thread Krzysztof Kozlowski
Add Krzysztof Kozlowski as maintainer of NXP PTN5150A CC/extcon driver to provide review, feedback and testing. Signed-off-by: Krzysztof Kozlowski --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f2eb17cd3953..48cb5162a94a 100644 --- a/MA

[PATCH 03/11] dt-bindings: extcon: ptn5150: Make 'vbus-gpios' optional

2020-08-12 Thread Krzysztof Kozlowski
The PTN5150 chip can be used in hardware designs with only reporting of USB Type-C connection, without the VBUS control. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/extcon/extcon-ptn5150.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc

[PATCH 10/11] extcon: ptn5150: Reduce the amount of logs on deferred probe

2020-08-12 Thread Krzysztof Kozlowski
There is no point to print deferred probe (and its failures to get resources) as an error. In case of multiple probe tries this would pollute the dmesg. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff

[PATCH 04/11] extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips

2020-08-12 Thread Krzysztof Kozlowski
The driver uses atomic version of gpiod_set_value() without any real reason. It is called in a workqueue under mutex so it could sleep there. Changing it to "can_sleep" flavor allows to use the driver with all GPIO chips. Fixes: 4ed754de2d66 ("extcon: Add support for ptn5150 extcon driver") Cc:

Re: [PATCH 31/33] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-12 Thread Rob Herring
On Tue, 11 Aug 2020 17:41:57 +0200, Mauro Carvalho Chehab wrote: > Add documentation for the properties needed by the HiSilicon > 6421v600 driver, and by the SPMI controller used to access > the chipset. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml

[PATCH 09/11] extcon: ptn5150: Make 'vbus-gpios' optional

2020-08-12 Thread Krzysztof Kozlowski
The PTN5150 chip can be used in hardware designs with only reporting of USB Type-C connection, without the VBUS control. The driver however unconditionally expected 'vbus-gpios'. Since all uses of the VBUS GPIO descriptor are NULL safe, the code can accept missing GPIO and provide only extcon sta

Re: [PATCH 8/9] arm64: dts: renesas: r8a774e1: Add LVDS device node

2020-08-12 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Aug 12, 2020 at 03:02:16PM +0100, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Add the LVDS device node to R8A774E1 to SoC dtsi and connect it with > the DU node. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prab

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Peilin Ye
On Wed, Aug 12, 2020 at 10:18:52AM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 12, 2020 at 03:13:06AM -0400, Peilin Ye wrote: > > On Wed, Aug 12, 2020 at 09:08:27AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Aug 12, 2020 at 02:55:56AM -0400, Peilin Ye wrote: > > > > Prevent hfs_find_init() f

<    1   2   3   4   5   6   7   8   9   10   >