[RESENT PATCH v6 1/8] ASoC: rockchip: Correct 'dmic-delay' property name

2017-08-22 Thread Jeffy Chen
The 'dmic-delay' property name is different with the dt-binding. So correct it with 'dmic-wakeup-delay-ms'. Fixes: 3a6f9dce6116 (ASoC: rk3399_gru_sound: fix recording pop at first attempt) Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: Keep the dmic

[RESENT PATCH v6 0/8] ASoC: rockchip: Parse dai links from dts

2017-08-22 Thread Jeffy Chen
: Let rockchip,codec-names be a required property, because we plan to add more supported codecs to the fixed dai link list in the driver. Jeffy Chen (8): ASoC: rockchip: Correct 'dmic-delay' property name ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp arm64: dts: roc

[RESENT PATCH v6 2/8] ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp

2017-08-22 Thread Jeffy Chen
Currently we are using codec name for rt5514 dsp dai link, use codec of_node instead. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 34 ++ 1 file changed, 2

[RESENT PATCH v6 3/8] arm64: dts: rockchip: Add rt5514 dsp for Gru

2017-08-22 Thread Jeffy Chen
Add rt5514 dsp of_node to codec list for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot

[RESENT PATCH v6 4/8] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-08-22 Thread Jeffy Chen
Currently the rt5514 i2c driver and rt5514 spi driver are using the same compatible string. Add additional unused compatible strings to identify them for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None arch/arm64/boot

[RESENT PATCH v6 6/8] ASoC: rockchip: Add support for DP codec

2017-08-22 Thread Jeffy Chen
Add support for optional cdn dp codec. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None sound/soc/rockchip/Kconfig| 1 + sound/soc/rockchip/rk3399_gru_sound.c | 59 +-- 2 files changed

[RESENT PATCH v6 5/8] ASoC: rockchip: Parse dai links from dts

2017-08-22 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v6: None Changes in v5: None Changes in v3: Use compatible to match audio codecs -- Suggested-by

[RESENT PATCH v6 7/8] ASoC: rockchip: Add support for DMIC codec

2017-08-22 Thread Jeffy Chen
Add support for optional dmic codec. Signed-off-by: Jeffy Chen --- Changes in v6: Add dmic wakeup delay(not used for now). Changes in v5: None Changes in v3: None Changes in v2: None sound/soc/rockchip/Kconfig| 1 + sound/soc/rockchip/rk3399_gru_sound.c | 36

[RESENT PATCH v6 8/8] dt-bindings: ASoC: rockchip: Update description of rockchip,codec

2017-08-22 Thread Jeffy Chen
Update description for newly added optional audio codecs. Signed-off-by: Jeffy Chen Acked-by: Rob Herring --- Changes in v6: None Changes in v5: None Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 +- 1 file changed, 1

[PATCH v2] ASoC: Add a sanity check before using dai driver name

2017-08-23 Thread Jeffy Chen
The dai driver's name is allowed to be NULL. So add a sanity check for that. Signed-off-by: Jeffy Chen Reported-by: Donglin Peng --- Changes in v2: Keep the oringinal check style. sound/soc/soc-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-c

[PATCH v3] ASoC: Add a sanity check before using dai driver name

2017-08-23 Thread Jeffy Chen
The dai driver's name is allowed to be NULL. So add a sanity check for that. Signed-off-by: Jeffy Chen Reported-by: Donglin Peng --- Changes in v3: Fix typo Changes in v2: Keep the oringinal check style. sound/soc/soc-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru

2017-08-23 Thread Jeffy Chen
Add rt5514 dsp of_node to codec list for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v7: None Changes in v6: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot

[RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-08-23 Thread Jeffy Chen
Currently the rt5514 i2c driver and rt5514 spi driver are using the same compatible string. Add additional unused compatible strings to identify them for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v7: None Changes in v6: None Changes in v3: None Changes in v2: None arch/arm64/boot

[RESENT PATCH v7 1/7] ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp

2017-08-23 Thread Jeffy Chen
Currently we are using codec name for rt5514 dsp dai link, use codec of_node instead. Signed-off-by: Jeffy Chen --- Changes in v7: Rebase on the newest for-next Changes in v6: None Changes in v3: None Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 34

[RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts

2017-08-23 Thread Jeffy Chen
supported codecs to the fixed dai link list in the driver. Jeffy Chen (7): ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp arm64: dts: rockchip: Add rt5514 dsp for Gru arm64: dts: rockchip: Update rt5514 devices' compatible for Gru ASoC: rockchip: Parse dai links fro

[RESENT PATCH v7 6/7] ASoC: rockchip: Add support for DMIC codec

2017-08-23 Thread Jeffy Chen
Add support for optional dmic codec. Signed-off-by: Jeffy Chen --- Changes in v7: None Changes in v6: Add dmic wakeup delay(not used for now). Changes in v3: None Changes in v2: None sound/soc/rockchip/Kconfig| 1 + sound/soc/rockchip/rk3399_gru_sound.c | 36

[RESENT PATCH v7 7/7] dt-bindings: ASoC: rockchip: Update description of rockchip,codec

2017-08-23 Thread Jeffy Chen
Update description for newly added optional audio codecs. Signed-off-by: Jeffy Chen Acked-by: Rob Herring --- Changes in v7: None Changes in v6: None Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 +- 1 file changed, 1

[RESENT PATCH v7 4/7] ASoC: rockchip: Parse dai links from dts

2017-08-23 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v7: None Changes in v6: None Changes in v3: Use compatible to match audio codecs -- Suggested-by

[RESENT PATCH v7 5/7] ASoC: rockchip: Add support for DP codec

2017-08-23 Thread Jeffy Chen
Add support for optional cdn dp codec. Signed-off-by: Jeffy Chen --- Changes in v7: None Changes in v6: None Changes in v3: None Changes in v2: None sound/soc/rockchip/Kconfig| 1 + sound/soc/rockchip/rk3399_gru_sound.c | 59 +-- 2 files changed

[PATCH v10] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-17 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v10: Put rt5514-i2c doc & rt5514-spi doc together. Changes in v9: Address comments from Brian. Docu

[PATCH v2 2/3] Asoc: rockchip: Add dapm route for DMic

2017-09-17 Thread Jeffy Chen
Add dapm route for DMIC codec. Signed-off-by: Jeffy Chen --- Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index b050510be65f..ad19e391c4a6 100644

[PATCH v2 1/3] Asoc: rockchip: Add dapm route for HDMI

2017-09-17 Thread Jeffy Chen
Add dapm route for DP codec. Signed-off-by: Jeffy Chen --- Changes in v2: Separate HDMI/DMIC patches. sound/soc/rockchip/rk3399_gru_sound.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0513fe480353

[PATCH v2 3/3] Asoc: rockchip: Init dapm routes dynamically

2017-09-17 Thread Jeffy Chen
Currently we are using a fixed list of dapm routes. Init dapm routes dynamically when parsing dailinks, since we are supporting optional codecs. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v2: Fix DMic typo. sound/soc/rockchip

[PATCH v11 1/2] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-18 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Signed-off-by: Jeffy Chen --- Changes in v11: Use same compatible for rt5514-i2c & rt5514-spi. Changes in v10: Put rt5514-i2c doc & rt5514-spi doc together. Changes in v9: Address comments from Brian. Documentation/devicetree/

[PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

2017-09-18 Thread Jeffy Chen
Currently rt5514 dsp and rt5514 codec are sharing the same compatible. Use bus_type to distinguish rt5514 dsp from rt5514 codec. Signed-off-by: Jeffy Chen --- Changes in v11: None Changes in v10: None Changes in v9: None sound/soc/rockchip/rk3399_gru_sound.c | 57

[RESEND PATCH v2 1/3] ASoC: rockchip: Add dapm route for HDMI

2017-09-18 Thread Jeffy Chen
Add dapm route for DP codec. Signed-off-by: Jeffy Chen --- Changes in v2: Separate HDMI/DMIC patches. sound/soc/rockchip/rk3399_gru_sound.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0513fe480353

[RESEND PATCH v2 2/3] ASoC: rockchip: Add dapm route for DMic

2017-09-18 Thread Jeffy Chen
Add dapm route for DMIC codec. Signed-off-by: Jeffy Chen --- Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index b050510be65f..ad19e391c4a6 100644

[RESEND PATCH v2 3/3] ASoC: rockchip: Init dapm routes dynamically

2017-09-18 Thread Jeffy Chen
Currently we are using a fixed list of dapm routes. Init dapm routes dynamically when parsing dailinks, since we are supporting optional codecs. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v2: Fix DMic typo. sound/soc/rockchip

[PATCH v12 1/2] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-18 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Signed-off-by: Jeffy Chen --- Changes in v12: None Changes in v11: Use same compatible for rt5514-i2c & rt5514-spi. Changes in v10: Put rt5514-i2c doc & rt5514-spi doc together. Changes in v9: Address comments fr

[PATCH v12 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

2017-09-18 Thread Jeffy Chen
Currently rt5514 dsp and rt5514 codec are sharing the same compatible. Use bus_type to distinguish rt5514 dsp from rt5514 codec. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v12: Fix device leak. Changes in v11: None Changes in v10

[PATCH v3 1/5] ASoC: rockchip: Add dapm route for HDMI

2017-09-19 Thread Jeffy Chen
Add dapm route for DP codec. Signed-off-by: Jeffy Chen --- Changes in v3: Rebase onto for-next 20170919 Changes in v2: Separate HDMI/DMIC patches. sound/soc/rockchip/rk3399_gru_sound.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc

[PATCH v3 2/5] ASoC: rockchip: Add dapm route for DMic

2017-09-19 Thread Jeffy Chen
Add dapm route for DMIC codec. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index b050510be65f

[PATCH v3 0/5] This series of patches fix the boot time dapm route warnings(without rt5514):

2017-09-19 Thread Jeffy Chen
to add route Int Mic -> direct -> DMIC1R And support detect rt5514-dsp codec and rt5514 codec by checking bus_type. Changes in v3: Rebase onto for-next 20170919 Changes in v2: Separate HDMI/DMIC patches. Fix DMic typo. Jeffy Chen (5): ASoC: rockchip: Add dapm route for HDMI ASoC: rockch

[PATCH v3 3/5] ASoC: rockchip: Init dapm routes dynamically

2017-09-19 Thread Jeffy Chen
Currently we are using a fixed list of dapm routes. Init dapm routes dynamically when parsing dailinks, since we are supporting optional codecs. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v3: None Changes in v2: Fix DMic typo. sound

[PATCH v3 5/5] ASoC: rt5514: Add devicetree binding support for rt5514-spi

2017-09-19 Thread Jeffy Chen
Add devicetree binding support for rt5514 spi dsp codec. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/sound/rt5514.txt | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH v3 4/5] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

2017-09-19 Thread Jeffy Chen
Currently rt5514 dsp and rt5514 codec are sharing the same compatible. Use bus_type to distinguish rt5514 dsp from rt5514 codec. Signed-off-by: Jeffy Chen Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- Changes in v3: None Changes in v2: None sound/soc/rockchip

[PATCH v5 1/3] PCI: rockchip: Add support for pcie wake irq

2017-09-11 Thread Jeffy Chen
Add support for PCIE_WAKE pin in rockchip pcie driver. Signed-off-by: Jeffy Chen --- Changes in v5: Rebase Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris drivers/pci/host/pcie-rockchip.c | 19 +-- 1

[PATCH v5 2/3] dt-bindings: PCI: Add definition of pcie wake irq

2017-09-11 Thread Jeffy Chen
Add an optional interrupt for PCIE_WAKE pin. Signed-off-by: Jeffy Chen --- Changes in v5: Move to pci.txt Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/pci/pci.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/pci.txt

[PATCH v5 3/3] arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru

2017-09-11 Thread Jeffy Chen
Currently we are handling pcie wake irq in mrvl wifi driver. Move it to rockchip pcie driver for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v5: Use "wakeup" instead of "wake" Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/

[PATCH v5 0/3] PCI: rockchip: Move PCIE_WAKE handling into rockchip pcie driver

2017-09-11 Thread Jeffy Chen
handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris Jeffy Chen (3): PCI: rockchip: Add support for pcie wake irq dt-bindings: PCI: Add definition of pcie wake irq arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru Documentation/dev

[PATCH] CHROMIUM: devfreq: rk3399: Clear edev->dev drvdata before enabling dfi

2017-09-01 Thread Jeffy Chen
Currently we are using edev->dev drvdata to get rk3399-dmc data, but it would be inited to edev in devfreq_event_add_edev. So we need to clear the edev->dev drvdata before enabling dfi, to prevent dfi from getting the wrong rk3399-dmc data when the irq triggered too early. Signed-off-by:

[PATCH] Asoc: rockchip: Init dapm routes dynamically

2017-09-04 Thread Jeffy Chen
Currently we are using a fixed list of dapm routes. Init dapm routes dynamically when parsing dailinks, since we are supporting optional codecs. Signed-off-by: Jeffy Chen --- sound/soc/rockchip/rk3399_gru_sound.c | 88 +-- 1 file changed, 74 insertions(+), 14

[PATCH v8 2/2] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-09-04 Thread Jeffy Chen
Currently the rt5514 i2c driver and rt5514 spi driver are using the same compatible string. Add additional unused compatible strings to identify them for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v8: Add new compatible to rt5514 dt doc. arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi

[PATCH v8 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-04 Thread Jeffy Chen
Add devicetree bindings documentation file for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible. Signed-off-by: Jeffy Chen --- Changes in v8: None .../devicetree/bindings/sound/rt5514-spi.txt | 32 ++ Documentation/devicetree/bindings/

[PATCH v9 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-05 Thread Jeffy Chen
Add devicetree bindings documentation file for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v9: Address comments from Brian. .../devicetree/bindings/sound/rt5514-spi.txt

[RESENT PATCH v9 2/2] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-09-05 Thread Jeffy Chen
Currently the rt5514 i2c driver and rt5514 spi driver are using the same compatible string. Add additional compatible strings to identify them for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v9: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 4 ++-- 1 file changed, 2 insertions

[RESENT PATCH v9 1/2] ASoC: rt5514: Add devicetree bindings for rt5514-spi

2017-09-05 Thread Jeffy Chen
Add devicetree bindings documentation file for rt5514 spi dsp codec. Also update rt5514 i2c dt-binding's compatible to distinguish it from rt5514 spi. Signed-off-by: Jeffy Chen --- Changes in v9: Address comments from Brian. .../devicetree/bindings/sound/rt5514-spi.txt

[PATCH] arm64: dts: rockchip: Fix wrong rt5514 dmic delay property for Gru

2017-08-18 Thread Jeffy Chen
According to rt5514 dt-binding, it should be "realtek,dmic-init-delay-ms". Fixes: 48f4d9796d99 (arm64: dts: rockchip: add Gru/Kevin DTS) Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] serial: earlycon: Only try fdt when specify 'earlycon' exactly

2017-08-18 Thread Jeffy Chen
e. Fixes: d503187b6cc4 (of/serial: move earlycon early_param handling to serial) Signed-off-by: Jeffy Chen --- drivers/tty/serial/earlycon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c index c3651540e1ba..3359

[PATCH v4 0/4] PCI: rockchip: Move PCIE_WAKE handling into rockchip pcie driver

2017-08-21 Thread Jeffy Chen
inactive PHY(s) Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris Jeffy Chen (4): PCI: rockchip: Fix error handlings PCI: rockchip: Add support for pcie wake irq dt-bindings: PCI: rockchip: Add support for pcie wake irq

[PATCH v4 2/4] PCI: rockchip: Add support for pcie wake irq

2017-08-21 Thread Jeffy Chen
Add support for PCIE_WAKE pin in rockchip pcie driver. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris drivers/pci/host/pcie-rockchip.c | 21 +++-- 1

[PATCH v4 3/4] dt-bindings: PCI: rockchip: Add support for pcie wake irq

2017-08-21 Thread Jeffy Chen
Add an optional interrupt for PCIE_WAKE pin. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None .../devicetree/bindings/pci/rockchip-pcie.txt| 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Documentation

[PATCH v4 1/4] PCI: rockchip: Fix error handlings

2017-08-21 Thread Jeffy Chen
Fix error handlings in probe & resume. Signed-off-by: Jeffy Chen --- Changes in v4: Rebase on newest for-next branch, also fix error handling by: 1e7f570a1b86 PCI: rockchip: Idle inactive PHY(s) Changes in v3: None Changes in v2: None drivers/pci/host/pcie-rockchip.c |

[PATCH v4 4/4] arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru

2017-08-21 Thread Jeffy Chen
Currently we are handling pcie wake irq in mrvl wifi driver. Move it to rockchip pcie driver for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 15 +-- 1 file changed, 9

[PATCH] iommu/rockchip: Remove build dependency on ARM

2017-05-10 Thread Jeffy Chen
This patch removes the build dependency on ARM, so we can build on arm64 as well. Signed-off-by: Jeffy Chen --- drivers/iommu/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 6ee3a25..cb26f45 100644 --- a/drivers/iommu/Kconfig

[RFC PATCH] pinctrl: rockchip: add irq_shutdown

2017-06-23 Thread Jeffy Chen
+0x54/0x64 [ 37.312138] [] devm_irq_release+0x24/0x30 Add an irq_shutdown callback, and do a sanity check for irq state to prevent that. Signed-off-by: Jeffy Chen --- drivers/pinctrl/pinctrl-rockchip.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rockchip.c

[PATCH] spi: rockchip: Keep master alive when CS asserted

2017-06-25 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Keep spi alive after CS asserted to prevent that. Suggested-by: Doug Anderson Signed-off-by: Jeffy Chen --- drivers/spi/spi-rockchip.c | 22

[RFC PATCH] genirq: Avoid unnecessary low level irq function calls

2017-06-25 Thread Jeffy Chen
Check irq state in enable/disable/unmask/mask_irq to avoid unnecessary low level irq function calls. Suggested-by: Thomas Gleixner Signed-off-by: Jeffy Chen --- kernel/irq/chip.c | 55 +++ 1 file changed, 35 insertions(+), 20 deletions

[RFC PATCH v2 1/2] genirq: Set irq masked state by default

2017-06-26 Thread Jeffy Chen
We are setting irq default state to disabled when allocating irq desc, so set it masked there too. Signed-off-by: Jeffy Chen --- Changes in v2: None kernel/irq/irqdesc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index c5bbaed..f1248ee

[RFC PATCH v2 2/2] genirq: Avoid unnecessary low level irq function calls

2017-06-26 Thread Jeffy Chen
Check irq state in enable/disable/unmask/mask_irq to avoid unnecessary low level irq function calls. Suggested-by: Thomas Gleixner Signed-off-by: Jeffy Chen --- Changes in v2: Remove unnecessary started state check. kernel/irq/chip.c | 53

[PATCH] drm/rockchip: Don't allow zero sized gem buffer

2017-05-22 Thread Jeffy Chen
The system would crash when trying to alloc zero sized gem buffer: [6.712435] Unable to handle kernel NULL pointer dereference at virtual address 0010 <--ZERO_SIZE_PTR ... [6.757502] PC is at sg_alloc_table_from_pages+0x170/0x1ec Signed-off-by: Jeffy Chen --- drivers/gpu/

[PATCH] mfd: cros_ec: Add missing free_irq in cros_ec_remove

2017-06-11 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/mfd/cros_ec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c index e31ac60..dc6ce90 100644 --- a/drivers/mfd/cros_ec.c +++ b/drivers/mfd/cros_ec.c @@ -183,6 +183,9 @@ int cros_ec_remove(struct

[PATCH 1/2] spi: rockchip: add support for "cs-gpios" dts property

2017-06-11 Thread Jeffy Chen
Support using "cs-gpios" property to specify cs gpios. Signed-off-by: Jeffy Chen --- .../devicetree/bindings/spi/spi-rockchip.txt | 2 + drivers/spi/spi-rockchip.c | 52 ++ 2 files changed, 54 insertions(+) diff --git a/Doc

[PATCH 2/2] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-11 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Use GPIO CS to prevent that. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 6 ++ 1 file changed, 6 insertions

[PATCH v2] mfd: cros_ec: Free IRQ on exit

2017-06-12 Thread Jeffy Chen
64: error -16 [ 2683.338610] cros-ec-spi spi5.0: cannot register EC [ 2683.338656] cros-ec-spi: probe of spi5.0 failed with error -16 Signed-off-by: Jeffy Chen --- Changes in v2: Improve the commit message. drivers/mfd/cros_ec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH v2 1/4] spi: rockchip: fix error handling when probe

2017-06-12 Thread Jeffy Chen
After failed to request dma tx chain, we need to disable pm_runtime. Also cleanup error labels for better readability. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/spi/spi-rockchip.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a

[PATCH v2 3/4] dt-bindings: spi/rockchip: add "cs-gpios" optional property

2017-06-12 Thread Jeffy Chen
Update document devicetree bindings to support "cs-gpios" property. Signed-off-by: Jeffy Chen --- Changes in v2: None Documentation/devicetree/bindings/spi/spi-rockchip.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-rockc

[PATCH v2 2/4] spi: rockchip: add support for "cs-gpios" dts property

2017-06-12 Thread Jeffy Chen
Support using "cs-gpios" property to specify cs gpios. Signed-off-by: Jeffy Chen 1/ request cs gpios in probe for better error handling 2/ use gpiod* function (suggested by Heiko Stuebner) 3/ split dt-binding changes to new patch (suggested by Shawn Lin & Heiko Stuebner) ---

[PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-12 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Use GPIO CS to prevent that. Signed-off-by: Jeffy Chen --- Changes in v2: Fix wrong pinconf for spi5_cs0. arch/arm64/boot/dts/rockchip/rk3399

[PATCH v3 1/3] spi: rockchip: add support for "cs-gpios" dts property

2017-06-13 Thread Jeffy Chen
Support using "cs-gpios" property to specify cs gpios. Signed-off-by: Jeffy Chen --- Changes in v3: include linux/gpio/consumer.h for compile errors on ARCH_X86 (reported by kbuild test robot ) Changes in v2: 1/ request cs gpios in probe for better error handling 2/ use gpiod

[PATCH v3 3/3] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-13 Thread Jeffy Chen
The cros_ec requires CS line to be active after last message. But the CS would be toggled when powering off/on rockchip spi, which breaks ec xfer. Use GPIO CS to prevent that. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: Fix wrong pinconf for spi5_cs0. arch/arm64/boot/dts

[PATCH v3 2/3] dt-bindings: spi/rockchip: add "cs-gpios" optional property

2017-06-13 Thread Jeffy Chen
Update document devicetree bindings to support "cs-gpios" property. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/spi/spi-rockchip.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH] drm/rockchip: analogix_dp: Remove unused check and variables

2017-04-29 Thread Jeffy Chen
Remove unused check and variables after: drm/rockchip: Set line flag config register in vop_crtc_enable Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip

[RFC PATCH 1/2] block: Treat all read ops as synchronous

2017-09-30 Thread Jeffy Chen
We added some in/out ops(eg. REQ_OP_SCSI_IN/OUT), but currently the op_is_sync() is only checking REQ_OP_READ. So treat all read ops as synchronous. Fixes: aebf526b53ae ("block: fold cmd_type into the REQ_OP_ space") Signed-off-by: Jeffy Chen --- include/linux/blk_types.h | 3 +

[RFC PATCH 2/2] block/cfq: Fix memory leak of async cfqq

2017-09-30 Thread Jeffy Chen
x1bc/0x444 [] elv_set_request+0x88/0x9c [] get_request+0x494/0x914 [] blk_get_request+0xdc/0x160 [] scsi_execute+0x70/0x23c [] scsi_test_unit_ready+0xf4/0x1ec Signed-off-by: Jeffy Chen --- block/cfq-iosched.c | 28 ++-- 1 file changed, 18 insertions(+), 10

[PATCH] drm/rockchip: Fix memory leak in rockchip_drm_sys_resume()

2017-09-27 Thread Jeffy Chen
Free the drm_atomic_state allocated by drm_atomic_helper_suspend(). Fixes: 5a5873830972 ("drm/rockchip: Use atomic PM helpers") Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/dr

[PATCH] irq/generic-chip: Fix memory leak of domain->name

2017-09-27 Thread Jeffy Chen
Free domain->name when IRQ_DOMAIN_NAME_ALLOCATED been set. Fixes: d59f6617eef0 ("genirq: Allow fwnode to carry name information only") Signed-off-by: Jeffy Chen --- kernel/irq/generic-chip.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/irq/generic-chip.c b/kerne

[PATCH] dm-crypt: Fix memory leak in crypt_ctr_cipher_old()

2017-09-27 Thread Jeffy Chen
Fix memory leak of cipher_api. Fixes: 33d2f09fcb35 (dm crypt: introduce new format of cipher with "capi:" prefix) Signed-off-by: Jeffy Chen --- drivers/md/dm-crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index a5

[PATCH v2] irq/generic-chip: Don't replace domain's name

2017-09-27 Thread Jeffy Chen
fwnode to carry name information only") Signed-off-by: Jeffy Chen --- Changes in v2: Don't replace domain's name instead of trying to free the old name. kernel/irq/generic-chip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip

[PATCH] ASoC: rockchip: Fix wrong allocation size of dapm routes

2017-09-28 Thread Jeffy Chen
The allocation size of dapm routes is wrong, correct it. Fixes: d9f9c167edae ("ASoC: rockchip: Init dapm routes dynamically") Signed-off-by: Jeffy Chen --- sound/soc/rockchip/rk3399_gru_sound.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/so

[PATCH] xhci: Cancel cmd_timer before cleanup the command queue in xhci_hc_died()

2017-09-29 Thread Jeffy Chen
andle unresponsive or hoptlug removed hosts") Signed-off-by: Jeffy Chen --- drivers/usb/host/xhci-ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index a9443651ce0f..69ac3deffb7b 100644 --- a/drivers/usb/host/xhci-ri

[PATCH] cros_ec: sysfs: Fix memory leak in show/store_kb_wake_angle()

2017-09-29 Thread Jeffy Chen
Add missing kfree of allocated cros_ec_command. Fixes: ff00af859354 ("platform/chrome: cros_ec: Add sysfs entry to set keyboard wake lid angle") Signed-off-by: Jeffy Chen --- drivers/platform/chrome/cros_ec_sysfs.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletion

[PATCH v2] xhci: Cleanup current_cmd in xhci_cleanup_command_queue()

2017-09-29 Thread Jeffy Chen
current_cmd in xhci_cleanup_command_queue() to avoid that. Fixes: d9f11ba9f107 ("xhci: Rework how we handle unresponsive or hoptlug removed hosts") Signed-off-by: Jeffy Chen --- Changes in v2: We cannot cancel cmd_timer in xhci_hc_died(), which would cause might_sleep warning. drivers/usb

[PATCH v2] media: uvcvideo: Fix uvc dev reference management

2017-10-12 Thread Jeffy Chen
Remove the kref_get() in uvc_register_video(), which is not needed as the kref_init() already initializes refcount to 1 for us. Fixes: 9d15cd958c17 ("media: uvcvideo: Convert from using an atomic variable to a reference count") Signed-off-by: Jeffy Chen --- Changes in v2: Rewr

[PATCH v2 1/2] block: Treat all read ops as synchronous

2017-10-12 Thread Jeffy Chen
The comment for op_is_sync() says "Reads are always treated as synchronous", but it only checks for REQ_OP_READ. Use op_is_write() to detect read ops and treat them as synchronous. Fixes: aebf526b53ae ("block: fold cmd_type into the REQ_OP_ space") Signed-off-by: Jeffy Chen

[PATCH v2 2/2] block/cfq: Fix memory leak without CFQ_GROUP_IOSCHED

2017-10-12 Thread Jeffy Chen
x1bc/0x444 [] elv_set_request+0x88/0x9c [] get_request+0x494/0x914 [] blk_get_request+0xdc/0x160 [] scsi_execute+0x70/0x23c [] scsi_test_unit_ready+0xf4/0x1ec Fixes: 60a837077e2b ("cfq-iosched: charge async IOs to the appropriate blkcg's instead of the root")

[PATCH 2/2] arm64: dts: rockchip: Enable edp disaplay on kevin

2017-10-13 Thread Jeffy Chen
Add edp panel and enable related nodes on kevin. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 + 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot

[PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread Jeffy Chen
Currently we are suspending the spi master in it's ->suspend callback, which is racy as some other drivers may still want to transmit messages on the bus(e.g. spi based pwm backlight). Convert to late and early system PM callbacks to avoid the race. Signed-off-by: Jeffy Chen --- dri

[RESEND PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread Jeffy Chen
Currently we are suspending the spi master in it's ->suspend callback, which is racy as some other drivers may still want to transmit messages on the bus(e.g. spi based pwm backlight). Convert to late and early system PM callbacks to avoid the race. Signed-off-by: Jeffy Chen --- dri

[RESEND PATCH 0/2] rockchip: kevin: Enable edp display

2017-10-13 Thread Jeffy Chen
Make edp display works on chromebook kevin. Jeffy Chen (2): spi: rockchip: Convert to late and early system PM callbacks arm64: dts: rockchip: Enable edp disaplay on kevin arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399

[RESEND PATCH 2/2] arm64: dts: rockchip: Enable edp disaplay on kevin

2017-10-13 Thread Jeffy Chen
Add edp panel and enable related nodes on kevin. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 + 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot

[PATCH v6 0/3] PCI: rockchip: Move PCIE_WAKE handling into rockchip pcie driver

2017-10-13 Thread Jeffy Chen
Use "wakeup" instead of "wake" Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by Brian Norris Jeffy Chen (3): PCI: rockchip: Add support for pcie wake irq dt-bindings: PCI: Add definition of pcie wake irq arm64: d

[PATCH v6 1/3] PCI: rockchip: Add support for pcie wake irq

2017-10-13 Thread Jeffy Chen
Add support for PCIE_WAKE pin in rockchip pcie driver. Signed-off-by: Jeffy Chen --- Changes in v6: Fix device_init_wake error handling, and add some comments. Changes in v5: Rebase Changes in v3: Fix error handling Changes in v2: Use dev_pm_set_dedicated_wake_irq -- Suggested by

[PATCH v6 3/3] arm64: dts: rockchip: Handle pcie wake in pcie driver for Gru

2017-10-13 Thread Jeffy Chen
Currently we are handling pcie wake irq in mrvl wifi driver. Move it to rockchip pcie driver for Gru boards. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: Use "wakeup" instead of "wake" Changes in v3: None Changes in v2: None arch/arm64/boot/dts/rock

[PATCH v6 2/3] dt-bindings: PCI: Add definition of pcie wake irq

2017-10-13 Thread Jeffy Chen
Add an optional interrupt for PCIE_WAKE pin. Signed-off-by: Jeffy Chen --- Changes in v6: None Changes in v5: Move to pci.txt Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/pci/pci.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree

[PATCH] media: uvcvideo: Fix memory leak of uvc resources

2017-10-08 Thread Jeffy Chen
The refcount would be inited to 1 in kref_init(), so we don't need to increase it at the end of uvc_probe(). Fixes: 9d15cd958c17 ("media: uvcvideo: Convert from using an atomic variable to a reference count") Signed-off-by: Jeffy Chen --- drivers/media/usb/uvc/uvc_driver.

[RESEND PATCH] media: uvcvideo: Fix memory leak of uvc resources

2017-10-08 Thread Jeffy Chen
The refcount would be inited to 1 in kref_init(), so we don't need to increase it at the end of uvc_register_video(). Fixes: 9d15cd958c17 ("media: uvcvideo: Convert from using an atomic variable to a reference count") Signed-off-by: Jeffy Chen --- drivers/media/usb/uvc/uvc_dr

[PATCH v2] drm/atomic: Unref duplicated drm_atomic_state in drm_atomic_helper_resume()

2017-10-08 Thread Jeffy Chen
0x28/0x158 [] drm_atomic_helper_suspend+0x5c/0xf0 Problem here is that we are duplicating the drm_atomic_state in drm_atomic_helper_suspend(), but not unreference it in the resume path. Fixes: 1494276000db ("drm/atomic-helper: Implement subsystem-level suspend/resume") Signed-off-by: Jeffy Chen

[PATCH] platform/chrome: cros_ec_dev - Use devm_mfd_add_devices

2017-08-07 Thread Jeffy Chen
6242] task: ffc0f28bab80 task.stack: ffc0f1b3 [ 123.536247] PC is at sysfs_warn_dup+0x68/0x84 [ 123.536251] LR is at sysfs_warn_dup+0x68/0x84 Signed-off-by: Jeffy Chen --- drivers/platform/chrome/cros_ec_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 0/3] Fix clock handling in rockchip spi suspend/resume/remove

2017-08-07 Thread Jeffy Chen
I saw unpaired spi clock disable warnings when suspend/unbind spi device. Fix them follow spi-s3c64xx.c. Jeffy Chen (3): spi: rockchip: Slightly rework return value handling spi: rockchip: Fix clock handling in remove spi: rockchip: Fix clock handling in suspend/resume drivers/spi/spi

<    1   2   3   4   5   6   7   >