[PATCH v3 3/9] ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp

2017-08-16 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 v3: None Changes in v2: None sound/soc/rockchip/rk3399_gru_sound.c | 34 ++ 1 file changed, 2 insertions(+), 32 deletions(-) diff

[PATCH v3 5/9] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru

2017-08-16 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 v3: None Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 4 ++-- 1

[PATCH v3 2/9] ASoC: rockchip: Remove obsolete dmic-delay

2017-08-16 Thread Jeffy Chen
This property is no longer used. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None .../bindings/sound/rockchip,rk3399-gru-sound.txt | 7 --- sound/soc/rockchip/rk3399_gru_sound.c | 14 -- 2

[PATCH v3 2/9] ASoC: rockchip: Remove obsolete dmic-delay

2017-08-16 Thread Jeffy Chen
This property is no longer used. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None .../bindings/sound/rockchip,rk3399-gru-sound.txt | 7 --- sound/soc/rockchip/rk3399_gru_sound.c | 14 -- 2 files changed, 21 deletions

[PATCH v3 0/9] ASoC: rockchip: Parse dai links from dts

2017-08-16 Thread Jeffy Chen
in the dts. Changes in v3: Use compatible to match audio codecs -- Suggested-by Matthias Kaehlcke <m...@chromium.org> Changes in v2: 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 (9):

[PATCH v3 1/9] ASoC: rt5514: Switch to snd_soc_register_codec

2017-08-16 Thread Jeffy Chen
Currently we are using devm_snd_soc_register_component, which would use legacy dai name. Switch to snd_soc_register_codec to use dai driver name. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None sound/soc/codecs/rt5514-spi.

[PATCH v3 0/9] ASoC: rockchip: Parse dai links from dts

2017-08-16 Thread Jeffy Chen
in the dts. Changes in v3: Use compatible to match audio codecs -- Suggested-by Matthias Kaehlcke Changes in v2: 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 (9): ASoC: rt5514: Switch

[PATCH v3 1/9] ASoC: rt5514: Switch to snd_soc_register_codec

2017-08-16 Thread Jeffy Chen
Currently we are using devm_snd_soc_register_component, which would use legacy dai name. Switch to snd_soc_register_codec to use dai driver name. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None sound/soc/codecs/rt5514-spi.c | 19 ++- 1 file changed, 14

[PATCH] arm64: dts: rockchip: Assign mic irq to correct device for Gru

2017-08-16 Thread Jeffy Chen
Currently we are assigning mic irq to rt5514 i2c driver, which is wrong. Assign it to rt5514 spi driver instead. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[PATCH] arm64: dts: rockchip: Assign mic irq to correct device for Gru

2017-08-16 Thread Jeffy Chen
Currently we are assigning mic irq to rt5514 i2c driver, which is wrong. Assign it to rt5514 spi driver instead. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts

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

2017-08-16 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 <jeffy.c...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)

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

2017-08-16 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 --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts

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

2017-08-16 Thread Jeffy Chen
Add support for PCIE_WAKE pin in rockchip pcie driver. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/pci/host/pcie-rockchip.c | 58 1 file changed, 58 insertions(+) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pc

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

2017-08-16 Thread Jeffy Chen
Add an optional interrupt for PCIE_WAKE pin. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Documentation/devicetree/bindings/pci/rockchip-pcie.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/rockchip-pc

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

2017-08-16 Thread Jeffy Chen
Add support for PCIE_WAKE pin in rockchip pcie driver. Signed-off-by: Jeffy Chen --- drivers/pci/host/pcie-rockchip.c | 58 1 file changed, 58 insertions(+) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index

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

2017-08-16 Thread Jeffy Chen
Add an optional interrupt for PCIE_WAKE pin. Signed-off-by: Jeffy Chen --- Documentation/devicetree/bindings/pci/rockchip-pcie.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt b/Documentation/devicetree

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

2017-08-16 Thread Jeffy Chen
Currently we are handling pcie wake in mrvl wifi driver. But Brian suggests to move it into rockchip pcie driver. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Jeffy Chen (3): PCI: rockchip: Add support for pcie wake irq dt-bindings: PCI: rockchip: Add support for pcie

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

2017-08-16 Thread Jeffy Chen
Currently we are handling pcie wake in mrvl wifi driver. But Brian suggests to move it into rockchip pcie driver. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Jeffy Chen (3): PCI: rockchip: Add support for pcie wake irq dt-bindings: PCI: rockchip: Add support for pcie

[RESENT PATCH] ASoC: hdmi-codec: Use different name for playback streams

2017-08-11 Thread Jeffy Chen
to them to avoid that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- sound/soc/codecs/hdmi-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 509ab51..a2af440 100644 --- a/sound/soc/

[RESENT PATCH] ASoC: hdmi-codec: Use different name for playback streams

2017-08-11 Thread Jeffy Chen
to them to avoid that. Signed-off-by: Jeffy Chen --- sound/soc/codecs/hdmi-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 509ab51..a2af440 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound

[PATCH] ASoC: hdmi-codec: Use different name for playback streams

2017-08-11 Thread Jeffy Chen
to them to avoid that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- sound/soc/codecs/hdmi-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 509ab51..a2af440 100644 --- a/sound/soc/

[PATCH] ASoC: hdmi-codec: Use different name for playback streams

2017-08-11 Thread Jeffy Chen
to them to avoid that. Signed-off-by: Jeffy Chen --- sound/soc/codecs/hdmi-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 509ab51..a2af440 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound

[PATCH v2 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Let rockchip,codec-names be a required property. Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2

[PATCH v2 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen --- Changes in v2: Let rockchip,codec-names be a required property. Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++ 1 file changed, 2 insertions

[PATCH v2 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/bo

[PATCH v2 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index

[PATCH v2 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
in the dts. Changes in v2: 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. Let rockchip,codec-names be a required property. Jeffy Chen (3): ASoC: rockchip: Parse dai links from dts arm64: dts: rockchip: Add

[PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Let rockchip,codec-names be a required property, because we plan to add more supported codecs to the fixed dai link list in the

[PATCH v2 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
in the dts. Changes in v2: 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. Let rockchip,codec-names be a required property. Jeffy Chen (3): ASoC: rockchip: Parse dai links from dts arm64: dts: rockchip: Add

[PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen --- Changes in v2: 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. sound/soc/rockchip

[PATCH 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- sound/soc/rockchip/rk3399_gru_sound.c | 129 ++ 1 file changed, 86 insertions(+), 43 deletions(-) diff --git a

[PATCH 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen --- sound/soc/rockchip/rk3399_gru_sound.c | 129 ++ 1 file changed, 86 insertions(+), 43 deletions(-) diff --git a/sound/soc/rockchip

[PATCH 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documen

[PATCH 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen --- Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rockchip

[PATCH 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Currently we are using a fixed list of dai links in the driver. This serial of patches would let the driver parse dai links from dts, so that we can reorder/disable them in the dts. Tested on my chromebook bob(with cros 4.4 kernel), it still works after disabled rt5514 codec in the dts. Jeffy

[PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gr

[PATCH 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Currently we are using a fixed list of dai links in the driver. This serial of patches would let the driver parse dai links from dts, so that we can reorder/disable them in the dts. Tested on my chromebook bob(with cros 4.4 kernel), it still works after disabled rt5514 codec in the dts. Jeffy

[PATCH 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index d48e98b..c8f7f0c

[PATCH] drm/rockchip: Fix suspend crash when drm is not bound

2017-08-09 Thread Jeffy Chen
<briannor...@chromium.com> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/

[PATCH] drm/rockchip: Fix suspend crash when drm is not bound

2017-08-09 Thread Jeffy Chen
Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index c41f48a..ff3d0f5 100644 --- a/drivers/gpu

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

2017-08-07 Thread Jeffy Chen
The runtime suspend callback might be called by pm domain framework at suspend_noirq stage. It would try to disable the clocks which already been disabled by rockchip_spi_suspend. Call pm_runtime_force_suspend/pm_runtime_force_resume when suspend/resume to avoid that. Signed-off-by: Jeffy Chen

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

2017-08-07 Thread Jeffy Chen
The runtime suspend callback might be called by pm domain framework at suspend_noirq stage. It would try to disable the clocks which already been disabled by rockchip_spi_suspend. Call pm_runtime_force_suspend/pm_runtime_force_resume when suspend/resume to avoid that. Signed-off-by: Jeffy Chen

[PATCH 2/3] spi: rockchip: Fix clock handling in remove

2017-08-07 Thread Jeffy Chen
We are assuming clocks enabled when calling rockchip_spi_remove, which is not always true. Those clocks might already been disabled by the runtime PM at that time. Call pm_runtime_get_sync before trying to disable clocks to avoid that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.

[PATCH 2/3] spi: rockchip: Fix clock handling in remove

2017-08-07 Thread Jeffy Chen
We are assuming clocks enabled when calling rockchip_spi_remove, which is not always true. Those clocks might already been disabled by the runtime PM at that time. Call pm_runtime_get_sync before trying to disable clocks to avoid that. Signed-off-by: Jeffy Chen --- drivers/spi/spi-rockchip.c

[PATCH 1/3] spi: rockchip: Slightly rework return value handling

2017-08-07 Thread Jeffy Chen
Slightly rework return value handling, no functional changes. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/spi/spi-rockchip.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/s

[PATCH 1/3] spi: rockchip: Slightly rework return value handling

2017-08-07 Thread Jeffy Chen
Slightly rework return value handling, no functional changes. Signed-off-by: Jeffy Chen --- drivers/spi/spi-rockchip.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 0b4a52b..5497650

[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

[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

[PATCH] platform/chrome: cros_ec_dev - Use devm_mfd_add_devices

2017-08-07 Thread Jeffy Chen
: 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 <jeffy.c...@rock-chips.com> --- drivers/platform/chrome/cros_ec_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH] platform/chrome: cros_ec_dev - Use devm_mfd_add_devices

2017-08-07 Thread Jeffy Chen
: 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/drivers/platform

[PATCH v6] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-20 Thread Jeffy Chen
-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v6: Don't print error msg when dropping urbs, since we already log it when failed to submit. Changes in v5: Fix compile warning reported by "kbuild test robot": drivers/bluetooth/btusb.c:3288:3: warning: 'err' may be us

[PATCH v6] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-20 Thread Jeffy Chen
-by: Jeffy Chen --- Changes in v6: Don't print error msg when dropping urbs, since we already log it when failed to submit. Changes in v5: Fix compile warning reported by "kbuild test robot": drivers/bluetooth/btusb.c:3288:3: warning: 'err' may be used uninitialized in this functio

[PATCH v5] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-19 Thread Jeffy Chen
-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: Fix compile warning reported by "kbuild test robot": drivers/bluetooth/btusb.c:3288:3: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] This 'err' would be set in the send loop, a

[PATCH v5] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-19 Thread Jeffy Chen
-by: Jeffy Chen --- Changes in v5: Fix compile warning reported by "kbuild test robot": drivers/bluetooth/btusb.c:3288:3: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] This 'err' would be set in the send loop, and would be used in the cleanup res

[RESEND PATCH v4] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Drop the rest deferred urbs when error happens. Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 21 +++--

[RESEND PATCH v4] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen --- Changes in v4: Drop the rest deferred urbs when error happens. Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 21 +++-- 1 file changed, 19 insertions(+), 2

[PATCH] devfreq: simple_ondemand: Update devfreq stats when governor started

2017-07-18 Thread Jeffy Chen
devfreq stats when governor started to avoid that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/devfreq/governor_simpleondemand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/governor_simpleondemand.c b/drivers/devfreq/governor_simpleondemand.c index a

[PATCH] devfreq: simple_ondemand: Update devfreq stats when governor started

2017-07-18 Thread Jeffy Chen
devfreq stats when governor started to avoid that. Signed-off-by: Jeffy Chen --- drivers/devfreq/governor_simpleondemand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/governor_simpleondemand.c b/drivers/devfreq/governor_simpleondemand.c index ae72ba5..26e0e58 100644

[PATCH v4] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Drop the rest deferred urbs when error happens. Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 21 +++--

[PATCH v4] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen --- Changes in v4: Drop the rest deferred urbs when error happens. Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 21 +++-- 1 file changed, 19 insertions(+), 2

[PATCH v3] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/blu

[PATCH v3] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Jeffy Chen
-by: Jeffy Chen --- Changes in v3: Put the deferred urbs in tx_anchor. Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth

[PATCH 0/5] earlycon hang under some conditions

2017-07-18 Thread Jeffy Chen
/ case only. Jeffy Chen (5): serial: arc: Remove __init marking from early write serial: omap: Remove __init marking from early write serial: xuartps: Remove __init marking from early write serial: 8250_ingenic: Remove __init marking from early write serial: 8250_early: Remove __init

[PATCH 0/5] earlycon hang under some conditions

2017-07-18 Thread Jeffy Chen
/ case only. Jeffy Chen (5): serial: arc: Remove __init marking from early write serial: omap: Remove __init marking from early write serial: xuartps: Remove __init marking from early write serial: 8250_ingenic: Remove __init marking from early write serial: 8250_early: Remove __init

[PATCH 4/5] serial: 8250_ingenic: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[PATCH 5/5] serial: 8250_early: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[PATCH 3/5] serial: xuartps: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/

[PATCH 4/5] serial: 8250_ingenic: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/8250/8250_ingenic.c | 8 1

[PATCH 5/5] serial: 8250_early: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/8250/8250_early.c | 8 1

[PATCH 3/5] serial: xuartps: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file

[PATCH 2/5] serial: omap: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[PATCH 2/5] serial: omap: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/omap-serial.c | 13 ++--- 1

[PATCH 1/5] serial: arc: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/

[PATCH 1/5] serial: arc: Remove __init marking from early write

2017-07-18 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/arc_uart.c | 4 ++-- 1 file changed

[RFC PATCH 5/5] serial: 8250_early: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[RFC PATCH 5/5] serial: 8250_early: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/8250/8250_early.c | 8 1

[RFC PATCH 2/5] serial: omap: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[RFC PATCH 4/5] serial: 8250_ingenic: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/seria

[RFC PATCH 2/5] serial: omap: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/omap-serial.c | 13 ++--- 1

[RFC PATCH 4/5] serial: 8250_ingenic: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/8250/8250_ingenic.c | 8 1

[RFC PATCH 3/5] serial: xuartps: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/

[RFC PATCH 3/5] serial: xuartps: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file

[RFC PATCH 1/5] serial: arc: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/

[RFC PATCH 1/5] serial: arc: Remove __init marking from early write

2017-07-17 Thread Jeffy Chen
The earlycon would be alive outside the init code in these cases: 1/ we have keep_bootcon in cmdline. 2/ we don't have a real console to switch to. So remove the __init marking to avoid invalid memory access. Signed-off-by: Jeffy Chen --- drivers/tty/serial/arc_uart.c | 4 ++-- 1 file changed

[RFC PATCH 0/5] earlycon hang under some conditions

2017-07-17 Thread Jeffy Chen
/ case only. Jeffy Chen (5): serial: arc: Remove __init marking from early write serial: omap: Remove __init marking from early write serial: xuartps: Remove __init marking from early write serial: 8250_ingenic: Remove __init marking from early write serial: 8250_early: Remove __init

[RFC PATCH 0/5] earlycon hang under some conditions

2017-07-17 Thread Jeffy Chen
/ case only. Jeffy Chen (5): serial: arc: Remove __init marking from early write serial: omap: Remove __init marking from early write serial: xuartps: Remove __init marking from early write serial: 8250_ingenic: Remove __init marking from early write serial: 8250_early: Remove __init

[RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-17 Thread Jeffy Chen
-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c

[RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-17 Thread Jeffy Chen
-off-by: Jeffy Chen --- Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 0d533b2..a22a08b 100644

[RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-17 Thread Jeffy Chen
-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c

[RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-17 Thread Jeffy Chen
-off-by: Jeffy Chen --- Changes in v2: Call usb_free_urb instead of reusing submit_tx_urb. drivers/bluetooth/btusb.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 0d533b2..a22a08b 100644

[PATCH] drm: Add missing field copy in compat_drm_version

2017-07-12 Thread Jeffy Chen
DRM_IOCTL_VERSION is supposed to update the name_len/date_len/desc_len fields to user. Fixes: 012c6741c6aa("switch compat_drm_version() to drm_ioctl_kernel()") Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/drm_ioc32.c | 3 +++ 1 file changed, 3 ins

[PATCH] drm: Add missing field copy in compat_drm_version

2017-07-12 Thread Jeffy Chen
DRM_IOCTL_VERSION is supposed to update the name_len/date_len/desc_len fields to user. Fixes: 012c6741c6aa("switch compat_drm_version() to drm_ioctl_kernel()") Signed-off-by: Jeffy Chen --- drivers/gpu/drm/drm_ioc32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive

[PATCH v2] mwifiex: uninit wakeup info in the error handling

2017-07-06 Thread Jeffy Chen
We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info when removing device Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Uninit wakeu

[PATCH v2] mwifiex: uninit wakeup info in the error handling

2017-07-06 Thread Jeffy Chen
We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info when removing device Signed-off-by: Jeffy Chen --- Changes in v2: Uninit wakeup when _mwifiex_fw_dpc failed too

[PATCH] mwifiex: uninit wakeup info when failed to add card

2017-07-03 Thread Jeffy Chen
We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info when removing device Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/net/wireless/m

[PATCH] mwifiex: uninit wakeup info when failed to add card

2017-07-03 Thread Jeffy Chen
We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info when removing device Signed-off-by: Jeffy Chen --- drivers/net/wireless/marvell/mwifiex/main.c | 2 ++ 1 file

[PATCH v3 1/2] spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CS

2017-06-27 Thread Jeffy Chen
The rockchip spi still requires slave selection when using GPIO CS. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/spi/spi-rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-rockchip.c b/drivers/s

[PATCH v3 1/2] spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CS

2017-06-27 Thread Jeffy Chen
The rockchip spi still requires slave selection when using GPIO CS. Signed-off-by: Jeffy Chen --- Changes in v3: None Changes in v2: None drivers/spi/spi-rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index bab9b13

[PATCH v3 2/2] spi: rockchip: Disable Runtime PM when chip select is asserted

2017-06-27 Thread Jeffy Chen
instead of pm_runtime_put_sync. Suggested-by: Doug Anderson <diand...@chromium.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Store cs states in struct rockchip_spi, and use it to detect cs state instead of hw register. Changes in v2: Improve co

[PATCH v3 2/2] spi: rockchip: Disable Runtime PM when chip select is asserted

2017-06-27 Thread Jeffy Chen
instead of pm_runtime_put_sync. Suggested-by: Doug Anderson Signed-off-by: Jeffy Chen --- Changes in v3: Store cs states in struct rockchip_spi, and use it to detect cs state instead of hw register. Changes in v2: Improve commit message and comments and coding style. drivers/spi/spi-rockchip.c

<    4   5   6   7   8   9   10   11   12   13   >