[PATCH v2 11/15] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
[] = { | ^~ Signed-off-by: Jisheng Zhang --- drivers/regulator/stm32-vrefbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c index 992bc18101ef..161622ea7259 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers

[PATCH v2 00/15] regulator: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fixing W=1 build warning when no support for device tree is there. Since v1: - fix the warning with __maybe_unused instead of CONFIG_OF macro - add 3 more patches to fix the same issue Jisheng Zhang (15): regulator: 88pg86x: Fix W=1 build warning when CONFIG_OF=n regulator: da9210: Fix W

[PATCH v2 05/15] regulator: ltc3589: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3589.c:460:34: warning: ‘ltc3589_of_match’ defined but not used [-Wunused-const-variable=] 460 | static const struct of_device_id ltc3589_of_match[] = { | ^~~~ Signed-off-by: Jisheng

[PATCH v2 08/15] regulator: max77826: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
-by: Jisheng Zhang --- drivers/regulator/max77826-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max77826-regulator.c index 502ab6afc814..f9e2e884ff54 100644 --- a/drivers/regulator/max77826-regulator.c

Re: [PATCH v3 1/4] regulator: mp886x: implement set_ramp_delay

2020-08-20 Thread Jisheng Zhang
On Thu, 20 Aug 2020 22:05:13 +0100 Mark Brown wrote: > On Thu, Aug 20, 2020 at 05:10:51PM +0800, Jisheng Zhang wrote: > > Implement the .set_ramp_delay for MP8867 and MP8869. MP8867 and MP8869 > > could share the implementation, the only difference is the slew_rates > > array

[PATCH v3 2/4] dt-bindings: regulator: mp886x: support mps,switch-frequency-hz

2020-08-20 Thread Jisheng Zhang
Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/regulator/mp886x.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mp886x.txt b/Documentation/devicetree/bindings

[PATCH v3 1/4] regulator: mp886x: implement set_ramp_delay

2020-08-20 Thread Jisheng Zhang
Implement the .set_ramp_delay for MP8867 and MP8869. MP8867 and MP8869 could share the implementation, the only difference is the slew_rates array. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 67 -- 1 file changed, 64 insertions(+), 3

[PATCH v3 0/4] regulator: mp886x: two features and dt json convert

2020-08-20 Thread Jisheng Zhang
;mps,fb-voltage-divider" in dt-binding - Add a $ref to regulator.yaml in dt-binding Since v1: - put any schema conversions at the end of the series as Mark suggested. Jisheng Zhang (4): regulator: mp886x: implement set_ramp_delay dt-bindings: regulator: mp886x: support mps,switch-freq

[PATCH v3 4/4] dt-bindings: regulator: Convert mp886x to json-schema

2020-08-20 Thread Jisheng Zhang
Convert the mp886x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/regulator/mp886x.txt | 31 -- .../bindings/regulator/mps,mp886x.yaml| 61 +++ 2 files changed, 61 insertions(+), 31 deletions(-) delete

[PATCH v3 3/4] regulator: mp886x: support setting switch freq

2020-08-20 Thread Jisheng Zhang
Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index 1305bf217df1

Re: [PATCH 11/12] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
On Thu, 20 Aug 2020 10:13:12 +0200 Fabrice Gasnier wrote: > > > On 8/20/20 9:46 AM, Jisheng Zhang wrote: > > Fix below warning when CONFIG_OF=n: > > > > drivers/regulator/stm32-vrefbuf.c:287:34: warning: ‘stm32_vrefbuf_of_match’ > > defined but not used [-W

[PATCH 10/12] regulator: stm32-pwr: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
-by: Jisheng Zhang --- drivers/regulator/stm32-pwr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index e0e627b0106e..3d5cd954c391 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -166,11 +166,13

[PATCH 12/12] regulator: sy8106a: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
[] = { | ^~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8106a-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/sy8106a-regulator.c b/drivers/regulator/sy8106a-regulator.c index e739e62b..1878caf4dd40 100644 --- a/drivers/regulator/sy8106a-regulator.c +++ b/drivers

[PATCH 07/12] regulator: max1586: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/max1586.c:204:34: warning: ‘max1586_of_match’ defined but not used [-Wunused-const-variable=] 204 | static const struct of_device_id max1586_of_match[] = { | ^~~~ Signed-off-by: Jisheng

[PATCH 11/12] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
[] = { | ^~ Signed-off-by: Jisheng Zhang --- drivers/regulator/stm32-vrefbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c index 992bc18101ef..5a5c12d9ea22 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers/regulator

[PATCH 04/12] regulator: fixed: Fix W=1 build warnings when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
/regulator/fixed.c:44:36: warning: ‘fixed_voltage_data’ defined but not used [-Wunused-const-variable=] 44 | static const struct fixed_dev_type fixed_voltage_data = { |^~ Signed-off-by: Jisheng Zhang --- drivers/regulator/fixed.c | 16

[PATCH 01/12] regulator: 88pg86x: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/88pg86x.c:87:34: warning: ‘pg86x_dt_ids’ defined but not used [-Wunused-const-variable=] 87 | static const struct of_device_id pg86x_dt_ids [] = { | ^~~~ Signed-off-by: Jisheng Zhang --- drivers

[PATCH 02/12] regulator: da9210: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/da9210-regulator.c:128:34: warning: ‘da9210_dt_ids’ defined but not used [-Wunused-const-variable=] 128 | static const struct of_device_id da9210_dt_ids[] = { | ^ Signed-off-by: Jisheng

[PATCH 00/12] regulator: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fixing W=1 build warning when no support for device tree is there. Jisheng Zhang (12): regulator: 88pg86x: Fix W=1 build warning when CONFIG_OF=n regulator: da9210: Fix W=1 build warning when CONFIG_OF=n regulator: fan53555: Fix W=1 build warning when CONFIG_OF=n regulator: fixed: Fix W=1

[PATCH 05/12] regulator: ltc3589: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3589.c:460:34: warning: ‘ltc3589_of_match’ defined but not used [-Wunused-const-variable=] 460 | static const struct of_device_id ltc3589_of_match[] = { | ^~~~ Signed-off-by: Jisheng

[PATCH 08/12] regulator: max77826: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
-by: Jisheng Zhang --- drivers/regulator/max77826-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max77826-regulator.c index 502ab6afc814..7fbdcd7118a8 100644 --- a/drivers/regulator/max77826-regulator.c +++ b/drivers

[PATCH 09/12] regulator: pwm: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/pwm-regulator.c:393:34: warning: ‘pwm_of_match’ defined but not used [-Wunused-const-variable=] 393 | static const struct of_device_id pwm_of_match[] = { | ^~~~ Signed-off-by: Jisheng Zhang

[PATCH 03/12] regulator: fan53555: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/fan53555.c:439:34: warning: ‘fan53555_dt_ids’ defined but not used [-Wunused-const-variable=] 439 | static const struct of_device_id fan53555_dt_ids[] = { | ^~~ Signed-off-by: Jisheng

[PATCH 06/12] regulator: ltc3676: Fix W=1 build warning when CONFIG_OF=n

2020-08-20 Thread Jisheng Zhang
Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3676.c:371:34: warning: ‘ltc3676_of_match’ defined but not used [-Wunused-const-variable=] 371 | static const struct of_device_id ltc3676_of_match[] = { | ^~~~ Signed-off-by: Jisheng

[PATCH] regulator: sy8827n: Fix W=1 build warning when CONFIG_OF=n

2020-08-09 Thread Jisheng Zhang
Fixing W=1 build warning when no support for device tree is there. Reported-by: kernel test robot Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8827n.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/sy8827n.c b/drivers/regulator/sy8827n.c index b207217f74d8

[PATCH net-next] net: stmmac: fix failed to suspend if phy based WOL is enabled

2020-08-03 Thread Jisheng Zhang
of the correct device when implementing phy based WOL feature. To be honest, I caught the issue when implementing phy based WOL and then fix it locally, but forgot to amend the phy based wol patch. Today, I found the issue by testing net-next tree. Signed-off-by: Jisheng Zhang --- drivers/net

[PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema

2020-08-03 Thread Jisheng Zhang
Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- Since v2: - add $ref to regulator.yaml - add unevaluatedProperties Since v1: - It seems there's something wrong with my last email, so send out a v2 with another email account

Re: [PATCH] net: ethernet: fix potential memory leak in gemini_ethernet_port_probe()

2020-07-29 Thread Jisheng Zhang
On Wed, 29 Jul 2020 11:46:06 +0800 Lu Wei wrote: > > > If some processes in gemini_ethernet_port_probe() fail, > free_netdev(dev) needs to be called to avoid a memory leak. Using devm_alloc_etherdev_mqs() would be much simpler > > Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini

Re: [PATCH net-nex 2/2] net: mvneta: Don't speed down the PHY when changing mtu

2020-07-29 Thread Jisheng Zhang
Hi David, On Tue, 28 Jul 2020 17:52:02 -0700 (PDT) David Miller wrote: > > > > @@ -3651,7 +3651,8 @@ static void mvneta_stop_dev(struct mvneta_port *pp) > > > > set_bit(__MVNETA_DOWN, >state); > > > > - if (device_may_wakeup(>dev->dev)) > > + if (device_may_wakeup(>dev->dev) && >

[PATCH net-next v2] net: mvneta: fix comment about phylink_speed_down

2020-07-29 Thread Jisheng Zhang
mvneta has switched to phylink, so the comment should look like "We may have called phylink_speed_down before". Signed-off-by: Jisheng Zhang --- Since v1: - drop patch2 which tries to avoid link flapping when changing mtu I need more time on the change mtu refactoring. d

[PATCH v2 2/4] dt-bindings: regulator: mp886x: support mps,switch-frequency

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/regulator/mp886x.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mp886x.txt b

[PATCH v2 4/4] dt-bindings: regulator: Convert mp886x to json-schema

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Convert the mp886x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/regulator/mp886x.txt | 31 -- .../bindings/regulator/mps,mp886x.yaml| 58 +++ 2 files changed, 58 insertions(+), 31

[PATCH v2 3/4] regulator: mp886x: support setting switch freq

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index

[PATCH v2 0/4] regulator: mp886x: two features and dt json convert

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang This is to improve the mp886x regulator driver support. patch1 implments .set_ramp_delay patch2 and patch3 support the switch freq setting patch4 converts dt binding to json-schema Since v2: - put any schema conversions at the end of the series as Mark suggested

[PATCH v2 1/4] regulator: mp886x: implement set_ramp_delay

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Implement the .set_ramp_delay for MP8867 and MP8869. MP8867 and MP8869 could share the implementation, the only difference is the slew_rates array. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 67 -- 1 file changed, 64

[PATCH v2] dt-bindings: regulator: Convert sy8824x to json-schema

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- Since v1 -It seems there's something wrong with my last email, so send out a v2 with another email account .../bindings/regulator/silergy,sy8824x.yaml | 40

[PATCH 0/4] regulator: mp886x: two features and dt json convert

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang This is to improve the mp886x regulator driver support. patch1 converts dt binding to json-schema patch2 implments .set_ramp_delay patch3 and patch3 support the switch freq setting Jisheng Zhang (4): dt-bindings: regulator: Convert mp886x to json-schema regulator: mp886x

[PATCH 2/4] regulator: mp886x: implement set_ramp_delay

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Implement the .set_ramp_delay for MP8867 and MP8869. MP8867 and MP8869 could share the implementation, the only difference is the slew_rates array. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 67 -- 1 file changed, 64

[PATCH 4/4] regulator: mp886x: support setting switch freq

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index

[PATCH 3/4] dt-bindings: regulator: mp886x: support mps,switch-frequency

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Both MP8867 and MP8869 support different switch frequency. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/regulator/mps,mp886x.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mps,mp886x.yaml b

[PATCH 1/4] dt-bindings: regulator: Convert mp886x to json-schema

2020-07-28 Thread Jisheng Zhang
From: Jisheng Zhang Convert the mp886x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- .../devicetree/bindings/regulator/mp886x.txt | 27 -- .../bindings/regulator/mps,mp886x.yaml| 53 +++ 2 files changed, 53 insertions(+), 27

[PATCH] dt-bindings: regulator: Convert sy8824x to json-schema

2020-07-28 Thread Jisheng Zhang
Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- .../bindings/regulator/silergy,sy8824x.yaml | 40 +++ .../devicetree/bindings/regulator/sy8824x.txt | 24 --- 2 files changed, 40 insertions(+), 24 deletions(-) create

Re: [PATCH] ARM: dts: berlin: Align L2 cache-controller nodename with dtschema

2020-07-28 Thread Jisheng Zhang
On Tue, 28 Jul 2020 09:33:05 +0200 Arnd Bergmann wrote: > > > On Tue, Jul 28, 2020 at 8:37 AM Jisheng Zhang > wrote: > > > > Hi arm-soc, > > > > > > On Fri, 26 Jun 2020 10:06:41 +0200 Krzysztof Kozlowski wrote: > > > > > > > &

Re: [PATCH] ARM: dts: berlin: Align L2 cache-controller nodename with dtschema

2020-07-28 Thread Jisheng Zhang
Signed-off-by: Krzysztof Kozlowski Reviewed-by: Jisheng Zhang As for berlin linux-5.9, we only have this one patch, could you please directly take this patch? Thanks > --- > arch/arm/boot/dts/berlin2.dtsi | 2 +- > arch/arm/boot/dts/berlin2cd.dtsi | 2 +- > arch/arm/boot/dts/berl

[PATCH net-nex 2/2] net: mvneta: Don't speed down the PHY when changing mtu

2020-07-27 Thread Jisheng Zhang
We found a case where the phy link speed is changed to 10Mbps then back to 1000Mbps when changing the mtu: ethtool -s eth0 wol g ip link set eth0 mtu 1400 Add a simple check to avoid unnecessary phylink_speed_down() when changing the mtu. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet

[PATCH net-nex 0/2] net: mvneta: improve phylink_speed_up/down usage

2020-07-27 Thread Jisheng Zhang
patch1 fix the comment patch2 tries to avoid unnecessary phylink_speed_up() and phylink_speed_down() during changing the mtu. Jisheng Zhang (2): net: mvneta: fix comment about phylink_speed_down net: mvneta: Don't speed down the PHY when changing mtu drivers/net/ethernet/marvell/mvneta.c

[PATCH net-nex 1/2] net: mvneta: fix comment about phylink_speed_down

2020-07-27 Thread Jisheng Zhang
mvneta has switched to phylink, so the comment should look like "We may have called phylink_speed_down before". Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/m

[PATCH 2/5] net: stmmac: Move device_can_wakeup() check earlier in set_wol

2020-07-27 Thread Jisheng Zhang
If !device_can_wakeup(), there's no need to futher check. And return -EOPNOTSUPP rather than -EINVAL if !device_can_wakeup(). Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 3/5] net: stmmac: only call pmt() during suspend/resume if HW enables PMT

2020-07-27 Thread Jisheng Zhang
() if PMT is disabled. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index

[PATCH 4/5] net: stmmac: Support WOL with phy

2020-07-27 Thread Jisheng Zhang
Currently, the stmmac driver WOL implementation relies on MAC's PMT feature. We have a case: the MAC HW doesn't enable PMT, instead, we rely on the phy to support WOL. Implement the support for this case. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 11

[PATCH 0/5] net: stmmac: improve WOL

2020-07-27 Thread Jisheng Zhang
if WOL is enabled. Jisheng Zhang (5): net: stmmac: Remove WAKE_MAGIC if HW shows no pmt_magic_frame net: stmmac: Move device_can_wakeup() check earlier in set_wol net: stmmac: only call pmt() during suspend/resume if HW enables PMT net: stmmac: Support WOL with phy net: stmmac: speed

[PATCH 1/5] net: stmmac: Remove WAKE_MAGIC if HW shows no pmt_magic_frame

2020-07-27 Thread Jisheng Zhang
Remove WAKE_MAGIC from supported modes if the HW capability register shows no support for pmt_magic_frame. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac

[PATCH 5/5] net: stmmac: Speed down the PHY if WoL to save energy

2020-07-27 Thread Jisheng Zhang
When WoL is enabled and the machine is powered off, the PHY remains waiting for wakeup events at max speed, which is a waste of energy. Slow down the PHY speed before stopping the ethernet if WoL is enabled, Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8

Re: [PATCH v7 3/3] arm64: implement KPROBES_ON_FTRACE

2020-07-24 Thread Jisheng Zhang
On Tue, 21 Jul 2020 22:24:55 +0900 Masami Hiramatsu wrote: > > > Hi Jisheng, Hi, > > Would you be still working on this series? I will rebase the implementation on the latest code, then try to address your comments and Mark's comments. I will send out patches in this weekend. > > If you

[PATCH net-next] net: mdio-mux-gpio: use devm_gpiod_get_array()

2020-07-21 Thread Jisheng Zhang
Use devm_gpiod_get_array() to simplify the error handling and exit code path. Signed-off-by: Jisheng Zhang --- drivers/net/phy/mdio-mux-gpio.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c index

Re: [PATCH] drm/i915: Don't force IOSF_MBI

2020-07-20 Thread Jisheng Zhang
On Fri, 17 Jul 2020 20:32:44 +0100 Chris Wilson wrote: > > > Quoting Jisheng Zhang (2020-07-17 07:11:38) > > The i915 doesn't depend on IOSF_MBI, asm/iosf_mbi.h already defines > > isof_mbi_* APIs when ISOF_MBI is disabled. > > > > Don't force IOSF_MBI to all

[PATCH] drm/i915: Don't force IOSF_MBI

2020-07-17 Thread Jisheng Zhang
The i915 doesn't depend on IOSF_MBI, asm/iosf_mbi.h already defines isof_mbi_* APIs when ISOF_MBI is disabled. Don't force IOSF_MBI to allow disabling IOSF_MBI for non SoC platforms. Signed-off-by: Jisheng Zhang --- drivers/gpu/drm/i915/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH 0/3] arm64: perf: add support for Cortex-A55/A75/A76

2020-07-06 Thread Jisheng Zhang
Hi Will, On Fri, 3 Jul 2020 13:33:47 +0100 Will Deacon wrote: > > > On Fri, Jun 19, 2020 at 06:44:37PM +0800, Jisheng Zhang wrote: > > The Cortex-A55/A75/A76 use some implementation defined perf events. > > Add the support. > > > > Jisheng Zhang (3): > >

[PATCH 2/2] regulator: add support for SY8827N regulator

2020-07-02 Thread Jisheng Zhang
The SY8827N from Silergy Corp is a single output DC/DC converter. The voltage can be controlled via I2C. Signed-off-by: Jisheng Zhang --- drivers/regulator/Kconfig | 7 ++ drivers/regulator/Makefile | 1 + drivers/regulator/sy8827n.c | 185 3 files

[PATCH 0/2] regulator: add support for SY8827N regulator

2020-07-02 Thread Jisheng Zhang
The SY8827N from Silergy Corp is a single output DC/DC converter. The voltage can be controlled via I2C. Jisheng Zhang (2): dt-bindings: regulator: add document bindings for sy8827n regulator: add support for SY8827N regulator .../bindings/regulator/silergy,sy8827n.yaml | 45

[PATCH 1/2] dt-bindings: regulator: add document bindings for sy8827n

2020-07-02 Thread Jisheng Zhang
Add device tree binding information for sy8827n regulator driver. Signed-off-by: Jisheng Zhang --- .../bindings/regulator/silergy,sy8827n.yaml | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8827n.yaml diff

[PATCH] regulator: mp886x: use .probe_new

2020-07-01 Thread Jisheng Zhang
Use the new .probe_new for mp886x. It does not use the const struct i2c_device_id * argument, so convert it to utilise the simplified i2c driver registration. Signed-off-by: Jisheng Zhang --- drivers/regulator/mp886x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v4 1/2] net: phy: make phy_disable_interrupts() non-static

2020-06-24 Thread Jisheng Zhang
uot; Make phy_disable_interrupts() non-static so that it could be used in phy_init_hw() to have a defined init state. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy.c | 2 +- include/linux/phy.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v4 2/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-24 Thread Jisheng Zhang
er OS could leave the PHY in whatever state." as pointed out by Heiner. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy_device.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 04

[PATCH v4 0/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-24 Thread Jisheng Zhang
nit, thank Florian Since v2: - Don't export phy_disable_interrupts() but just make it non-static Since v1: - EXPORT the correct symbol Jisheng Zhang (2): net: phy: make phy_disable_interrupts() non-static net: phy: call phy_disable_interrupts() in phy_init_hw() drivers/net/phy/phy.c

[PATCH v3 1/2] net: phy: make phy_disable_interrupts() non-static

2020-06-23 Thread Jisheng Zhang
uot; Make phy_disable_interrupts() non-static so that it could be used in phy_init_hw() to have a defined init state. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy.c | 2 +- include/linux/phy.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v3 0/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-23 Thread Jisheng Zhang
- EXPORT the correct symbol Jisheng Zhang (2): net: phy: make phy_disable_interrupts() non-static net: phy: call phy_disable_interrupts() in phy_init_hw() drivers/net/phy/phy.c| 2 +- drivers/net/phy/phy_device.c | 7 +-- include/linux/phy.h | 1 + 3 files changed, 7 insert

[PATCH v3 2/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-23 Thread Jisheng Zhang
er OS could leave the PHY in whatever state." as pointed out by Heiner. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy_device.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/ph

[PATCH v2 1/2] net: phy: export phy_disable_interrupts()

2020-06-23 Thread Jisheng Zhang
t; Export phy_disable_interrupts() so that it could be used in phy_init_hw() to have a defined init state. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy.c | 3 ++- include/linux/phy.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/p

[PATCH v2 0/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-23 Thread Jisheng Zhang
h1 exports phy_disable_interrupts() so that it could be used in phy_init_hw() to have a defined init state. patch2 calls phy_disable_interrupts() in phy_init_hw() to have a defined init state. Since v1: - EXPORT the correct symbol Jisheng Zhang (2): net: phy: export phy_disable_interrupts()

[PATCH v2 2/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-23 Thread Jisheng Zhang
er OS could leave the PHY in whatever state." as pointed out by Heiner. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy_device.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/ph

[PATCH 0/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-22 Thread Jisheng Zhang
h1 exports phy_disable_interrupts() so that it could be used in phy_init_hw() to have a defined init state. patch2 calls phy_disable_interrupts() in phy_init_hw() to have a defined init state. Jisheng Zhang (2): net: phy: export phy_disable_interrupts() net: phy: call phy_disable_

[PATCH 1/2] net: phy: export phy_disable_interrupts()

2020-06-22 Thread Jisheng Zhang
t; Export phy_disable_interrupts() so that it could be used in phy_init_hw() to have a defined init state. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy.c | 3 ++- include/linux/phy.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/p

[PATCH 2/2] net: phy: call phy_disable_interrupts() in phy_init_hw()

2020-06-22 Thread Jisheng Zhang
er OS could leave the PHY in whatever state." as Pointed out by Heiner. Suggested-by: Heiner Kallweit Signed-off-by: Jisheng Zhang --- drivers/net/phy/phy_device.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/ph

[PATCH v2] dt-bindings: mmc: Convert pwrseq to json-schema

2020-06-22 Thread Jisheng Zhang
Convert the pwrseq binding to DT schema format using json-schema. At the same time, fix a couple of issues with the examples discovered by the validation tool -- missing ";" Signed-off-by: Jisheng Zhang --- since v1: - conver pwrseq to yaml format rather than fixing old docs .../bi

[PATCH 3/3] arm64: perf: add support for Cortex-A76

2020-06-19 Thread Jisheng Zhang
The Cortex-A76 uses some implementation defined perf events. Per Cortex-A76 TRM r4p0, section C2.3 PMU Events (pages C2-386 to C2-394), we can reuse Cortex-A57's perf events mapping currently. Signed-off-by: Jisheng Zhang --- arch/arm64/kernel/perf_event.c | 2 +- 1 file changed, 1 insertion

[PATCH 0/3] arm64: perf: add support for Cortex-A55/A75/A76

2020-06-19 Thread Jisheng Zhang
The Cortex-A55/A75/A76 use some implementation defined perf events. Add the support. Jisheng Zhang (3): arm64: perf: add support for Cortex-A55 arm64: perf: add support for Cortex-A75 arm64: perf: add support for Cortex-A76 arch/arm64/kernel/perf_event.c | 49

[PATCH 2/3] arm64: perf: add support for Cortex-A75

2020-06-19 Thread Jisheng Zhang
The Cortex-A75 uses some implementation defined perf events. This patch sets up the necessary mapping for Cortex-A75. Mappings are based on Cortex-A75 TRM r3p1, section C2.3 PMU Events (pages C2-578 to C2-586). Signed-off-by: Jisheng Zhang --- arch/arm64/kernel/perf_event.c | 22

[PATCH 1/3] arm64: perf: add support for Cortex-A55

2020-06-19 Thread Jisheng Zhang
The Cortex-A55 uses some implementation defined perf events. This patch sets up the necessary mapping for Cortex-A55. Mappings are based on Cortex-A55 TRM r2p0, section C2.4 PMU Events (pages C2-567 to C2-582). Signed-off-by: Jisheng Zhang --- arch/arm64/kernel/perf_event.c | 25

[PATCH] dt-bindings: mmc: pwrseq: Fix syntax errors in device tree examples

2020-06-18 Thread Jisheng Zhang
A ";" is missing in the pwrseq dt examples, fix them. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/mmc/mmc-pwrseq-emmc.txt | 2 +- Documentation/devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 2 +- Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt

Re: [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-06-17 Thread Jisheng Zhang
On Fri, 15 May 2020 19:30:38 +0200 Heiner Kallweit wrote: > > > On 15.05.2020 18:18, Florian Fainelli wrote: > > > > > > On 5/15/2020 12:41 AM, Jisheng Zhang wrote: > >> On Thu, 14 May 2020 21:50:53 +0200 Heiner Kallweit wrote: > >> > &g

[Query]usb: dwc2: suspend/resume support for DWC2_POWER_DOWN_PARAM_NONE case

2020-06-16 Thread Jisheng Zhang
Hi, After reading current dwc2 code, I got an impression that resume from suspend to ram isn't supported for DWC2_POWER_DOWN_PARAM_NONE case, right? In fact we do see usb device can't resume properly with DWC2_POWER_DOWN_PARAM_NONE case. If the impression is true, what's the proper technical

[PATCH] usb: dwc2: use well defined macros for power_down

2020-06-16 Thread Jisheng Zhang
Use the well defined macros such as DWC2_POWER_DOWN_PARAM_NONE, DWC2_POWER_DOWN_PARAM_PARTIAL and DWC2_POWER_DOWN_PARAM_HIBERNATION to make code more readable. Signed-off-by: Jisheng Zhang --- drivers/usb/dwc2/hcd.c| 4 ++-- drivers/usb/dwc2/params.c | 12 ++-- 2 files changed, 8

Re: [PATCH v2 06/15] ARM: berlin: Drop unneeded select of HAVE_SMP

2020-05-22 Thread Jisheng Zhang
On Fri, 22 May 2020 12:34:43 +0200 Arnd Bergmann wrote: > > > On Fri, May 22, 2020 at 12:13 PM Jisheng Zhang > wrote: > > > > Hi Arnd, Kevin, Olof, > > > > On Tue, 5 May 2020 17:07:13 +0200 Geert Uytterhoeven wrote: > > > > >

Re: [PATCH v2 06/15] ARM: berlin: Drop unneeded select of HAVE_SMP

2020-05-22 Thread Jisheng Zhang
series? If later, then Acked-by: Jisheng Zhang This is the first time I see a series touch different SoC platforms. Thanks in advance, Jisheng > --- > v2: > - Add Acked-by. > --- > arch/arm/mach-berlin/Kconfig | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/

Re: [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-05-15 Thread Jisheng Zhang
On Thu, 14 May 2020 21:50:53 +0200 Heiner Kallweit wrote: > > > On 14.05.2020 08:25, Jisheng Zhang wrote: > > On Wed, 13 May 2020 20:45:13 +0200 Heiner Kallweit wrote: > > > >> > >> On 13.05.2020 08:51, Jisheng Zhang wrote: > >>> Hi, &g

[PATCH] mmc: sdhci-of-dwcmshc: add suspend/resume support

2020-05-15 Thread Jisheng Zhang
Add dwcmshc specific system-level suspend and resume support. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index

Re: [PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-15 Thread Jisheng Zhang
On Thu, 14 May 2020 12:18:58 +0200 Ulf Hansson wrote: > > > On Thu, 14 May 2020 at 07:45, Jisheng Zhang > wrote: > > > > On Wed, 13 May 2020 14:15:21 +0200 Ulf Hansson wrote: > > > > > > > > > > > On Wed, 13 May 2020 at 11:47, Ji

Re: [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-05-14 Thread Jisheng Zhang
On Wed, 13 May 2020 20:45:13 +0200 Heiner Kallweit wrote: > > On 13.05.2020 08:51, Jisheng Zhang wrote: > > Hi, > > > > On Tue, 12 May 2020 20:43:40 +0200 Heiner Kallweit wrote: > > > >> > >> > >> On 12.05.2020 12:46, Jisheng Z

Re: [PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-13 Thread Jisheng Zhang
On Wed, 13 May 2020 14:15:21 +0200 Ulf Hansson wrote: > > > On Wed, 13 May 2020 at 11:47, Jisheng Zhang > wrote: > > > > This reverts commit a027b2c5fed78851e69fab395b02d127a7759fc7. > > > > The HW supports auto clock gating, so it's useless to do runtime p

[PATCH] mmc: sdhci-of-dwcmshc: implement specific set_uhs_signaling

2020-05-13 Thread Jisheng Zhang
We need a different set_uhs_signaling implementation for MMC_TIMING_MMC_HS and MMC_TIMING_MMC_HS400. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 31 - 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci

[PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-13 Thread Jisheng Zhang
This reverts commit a027b2c5fed78851e69fab395b02d127a7759fc7. The HW supports auto clock gating, so it's useless to do runtime pm in software. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-xenon.c | 87 +++--- drivers/mmc/host/sdhci-xenon.h | 1 - 2 files

Re: [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-05-13 Thread Jisheng Zhang
Hi, On Tue, 12 May 2020 20:43:40 +0200 Heiner Kallweit wrote: > > > On 12.05.2020 12:46, Jisheng Zhang wrote: > > The PHY Register Accessible Interrupt is enabled by default, so > > there's such an interrupt during init. In PHY POLL mode case, the > > IN

[PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-05-12 Thread Jisheng Zhang
The PHY Register Accessible Interrupt is enabled by default, so there's such an interrupt during init. In PHY POLL mode case, the INTB/PMEB pin is alway active, it is not good. Clear the interrupt by calling rtl8211f_ack_interrupt(). Signed-off-by: Jisheng Zhang --- drivers/net/phy/realtek.c

[PATCH v2] media: rc-map: Sort rc map name MACROs

2019-10-11 Thread Jisheng Zhang
Some MACROS such as RC_MAP_SU3000 and RC_MAP_HAUPPAUGE are not alphabetically sorted. Sort names alphabetically. Signed-off-by: Jisheng Zhang --- Since v1: - make RC_MAP_X96MAX and RC_MAP_PIXELVIEW sorted as well. include/media/rc-map.h | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH] pinctrl: berlin: as370: fix a typo s/spififib/spdifib

2019-10-11 Thread Jisheng Zhang
The function should be spdifib, fix this typo. Fixes: 423ddc580b13 ("pinctrl: berlin: add the as370 SoC pinctrl driver") Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/pinctrl-as370.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/berl

[PATCH] media: rc-map: Sort rc map name MACROs

2019-08-30 Thread Jisheng Zhang
Except RC_MAP_SU3000 and RC_MAP_HAUPPAUGE, others are alphabetically sorted. Sort names alphabetically. Signed-off-by: Jisheng Zhang --- include/media/rc-map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/media/rc-map.h b/include/media/rc-map.h index

Re: [PATCH v3] ARM: ftrace: remove mcount(),ftrace_caller_old() and ftrace_call_old()

2019-08-29 Thread Jisheng Zhang
Hi Russell, On Fri, 23 Aug 2019 18:22:39 +0800 Jisheng Zhang wrote: > Commit d3c61619568c ("ARM: 8788/1: ftrace: remove old mcount support") > removed the old mcount support, but forget to remove these three > declarations. This patch removes them. May I put this patch int

[PATCH] regulator: sy8824x: add prefixes to BUCK_EN and MODE macros

2019-08-29 Thread Jisheng Zhang
Add prefixes to BUCK_EN and MODE macros to namespace them. Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8824x.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/sy8824x.c b/drivers/regulator/sy8824x.c index d806fa7020d4..92adb4f3ee19

[PATCH] regulator: sy8824x: use c++style for the comment block near SPDX

2019-08-29 Thread Jisheng Zhang
Update the entire comment block to be C++ style so it looks consistent. Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8824x.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/sy8824x.c b/drivers/regulator/sy8824x.c index 1a7fa4865491

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