[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 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 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] 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 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 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 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

[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] 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

[PATCH v4] driver core: Move device_links_purge() after bus_remove_device()

2017-10-20 Thread Jeffy Chen
device_links_purge() call in device_del() after the invocation of bus_remove_device() which calls device_release_driver(). Fixes: 9ed9895370ae (driver core: Functional dependencies tracking support) Signed-off-by: Jeffy Chen Reviewed-by: Rafael J. Wysocki --- Changes in v4: Add Fixes. Changes

[PATCH v2] ARM: Remove .pad section when CONFIG_EFI_STUB enabled

2017-10-22 Thread Jeffy Chen
Currently we are using the .pad section to ensure the zImage file size aligned to 8 bytes. But that is not needed when CONFIG_EFI_STUB enabled, as it would followed by a 512 bytes aligned .data section. Signed-off-by: Jeffy Chen --- Changes in v2: Remove .pad section when CONFIG_EFI_STUB

[PATCH] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailink

2017-11-21 Thread Jeffy Chen
e and dai_name for rt5514 dsp) Signed-off-by: Jeffy Chen --- sound/soc/rockchip/rk3399_gru_sound.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index d64fbbd50544..aa8ffd035377 1

[PATCH] clk: rockchip: protect cpu and ddr clks

2017-11-29 Thread Jeffy Chen
These clks can never be turned off, so protect them as what we do in the sunxi clock-tree. Signed-off-by: Jeffy Chen --- drivers/clk/rockchip/clk-cpu.c | 5 + drivers/clk/rockchip/clk-ddr.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers

[tip:irq/core] genirq: Set irq masked state when initializing irq_desc

2017-06-26 Thread tip-bot for Jeffy Chen
Commit-ID: d829b8fb2431595422289cfc210f0a955a8bec74 Gitweb: http://git.kernel.org/tip/d829b8fb2431595422289cfc210f0a955a8bec74 Author: Jeffy Chen AuthorDate: Mon, 26 Jun 2017 19:33:33 +0800 Committer: Thomas Gleixner CommitDate: Mon, 26 Jun 2017 14:05:41 +0200 genirq: Set irq masked

[tip:irq/core] genirq: Avoid unnecessary low level irq function calls

2017-06-26 Thread tip-bot for Jeffy Chen
Commit-ID: bf22ff45bed664aefb5c4e43029057a199b7070c Gitweb: http://git.kernel.org/tip/bf22ff45bed664aefb5c4e43029057a199b7070c Author: Jeffy Chen AuthorDate: Mon, 26 Jun 2017 19:33:34 +0800 Committer: Thomas Gleixner CommitDate: Mon, 26 Jun 2017 15:47:00 +0200 genirq: Avoid

[tip:irq/urgent] irq/generic-chip: Don't replace domain's name

2017-09-28 Thread tip-bot for Jeffy Chen
Commit-ID: 72364d320644c12948786962673772f271039a4a Gitweb: https://git.kernel.org/tip/72364d320644c12948786962673772f271039a4a Author: Jeffy Chen AuthorDate: Thu, 28 Sep 2017 12:37:31 +0800 Committer: Thomas Gleixner CommitDate: Thu, 28 Sep 2017 12:18:59 +0200 irq/generic-chip: Don&#

<    2   3   4   5   6   7