[PATCH v1 2/8] clk: rockchip: add dt-binding header for rk3228

2015-12-09 Thread Jeffy Chen
Add the dt-bindings header for the rk3228, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- include/dt-bindings/clock/rk3228-cru.h | 220 + 1 file changed, 220 inse

[PATCH v1 0/8] This serial of patches add dts/pinctrl/clock-tree/doc for rk3228

2015-12-09 Thread Jeffy Chen
platform, with these patches, my evb board could boot into initramfs. Jeffy Chen (8): pinctrl: rockchip: add support for the rk3228 clk: rockchip: add dt-binding header for rk3228 rockchip: add clock controller for rk3228 dt-bindings: add documentation of rk3228 clock controller clk

[PATCH v1 6/8] ARM: rockchip: enable support for RK3228 SoCs

2015-12-09 Thread Jeffy Chen
Add a rockchip,rk3228 compatible. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm/mach-rockchip/rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c index 608b31c..0cd4313 100644 --- a/ar

[PATCH v1 7/8] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-09 Thread Jeffy Chen
Initial release for rk3228 shared dtsi. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm/boot/dts/rk3228.dtsi | 478 ++ 1 file changed, 478 insertions(+) create mode 100644 arch/arm/boot/dts/rk3228.dtsi diff --git a/arch/arm/bo

[PATCH v1 5/8] clk: rockchip: allow more than 2 parents for cpuclk

2015-12-09 Thread Jeffy Chen
RK3228's armclk has 3 parents, so allow cpuclk to have more than 2 parents. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/clk/rockchip/clk-cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockch

[PATCH v1 8/8] ARM: dts: rockchip: add rk3228-evb board

2015-12-09 Thread Jeffy Chen
Initial release for rk3228 sdk board. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3228-evb.dts | 56 2 files changed, 57 insertions(+) create mode 100644 arch/arm/boot/dts/

[PATCH v1 1/8] pinctrl: rockchip: add support for the rk3228

2015-12-09 Thread Jeffy Chen
The pinctrl of rk3228 is much the same as rk3288's, but without pmu. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- .../bindings/pinctrl/rockchip,pinctrl.txt | 3 +- drivers/pinctrl/pinctrl-rockchip.c | 53 ++ 2 files chang

[PATCH v1 3/8] rockchip: add clock controller for rk3228

2015-12-09 Thread Jeffy Chen
Add the clock tree definition for the new rk3228 SoC. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-rk3228.c | 762 ++ drivers/clk/rockchip/clk.h| 11 +- 3 files c

[PATCH v1 4/8] dt-bindings: add documentation of rk3228 clock controller

2015-12-09 Thread Jeffy Chen
Add the devicetree binding for the cru on the rk3228 which quite similar structured as previous clock controllers. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- .../bindings/clock/rockchip,rk3228-cru.txt | 58 ++ 1 file changed, 58 insertions(+)

[PATCH v1] serial: core: support more baud rates when serial console setup

2015-12-08 Thread Jeffy Chen
Currently, when tring to set up a serial console with a higher baud rate, it would fallback to 921600. So, add more baud rates to the baud rate array. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/tty/serial/serial_core.c | 10 ++ 1 file changed, 10 inse

Re: [PATCH v1 7/8] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-11 Thread Jeffy Chen
Hi Heiko, On 2015-12-11 18:12, Heiko Stübner wrote: Hi Jeffy, Am Freitag, 11. Dezember 2015, 09:53:59 schrieb Jeffy Chen: On 2015-12-10 8:32, Heiko Stuebner wrote: Am Mittwoch, 9. Dezember 2015, 17:04:12 schrieb Jeffy Chen: Initial release for rk3228 shared dtsi. Signed-off-by: Jeffy Chen

[PATCH v2 2/4] rockchip: add clock controller for rk3228

2015-12-10 Thread Jeffy Chen
Add the clock tree definition for the new rk3228 SoC. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Fix some clock tree errors. Fix some coding styles. drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-rk3228.c

[PATCH v2 4/4] ARM: dts: rockchip: add rk3228-evb board

2015-12-10 Thread Jeffy Chen
Initial release for rk3228 sdk board. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Move board properties here. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3228-evb.dts | 66 2 files changed, 67 inse

[PATCH v2 3/4] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-10 Thread Jeffy Chen
Initial release for rk3228 shared dtsi. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Separate board and core properties. Remove phy clocks. Order nodes by register address. Add vgic registers and interrupt. arch/arm/boot/dts/rk3228.dtsi

[PATCH v2 0/4] Add support for rk3228 Soc platform

2015-12-10 Thread Jeffy Chen
vgic registers and interrupt. Move board properties into board dts. Jeffy Chen (4): pinctrl: rockchip: add support for the rk3228 rockchip: add clock controller for rk3228 ARM: dts: rockchip: add core rk3228 dtsi ARM: dts: rockchip: add rk3228-evb board .../bindings/pinctrl/rockchip

[PATCH v2 1/4] pinctrl: rockchip: add support for the rk3228

2015-12-10 Thread Jeffy Chen
The pinctrl of rk3228 is much the same as rk3288's, but without pmu. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Heiko Stuebner <he...@sntech.de> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v2: None .../bindings/pinctrl/rockchip,pinctrl

Re: [PATCH v1 7/8] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-10 Thread Jeffy Chen
Hi Heiko, On 2015-12-10 8:32, Heiko Stuebner wrote: Hi Jeffy, Am Mittwoch, 9. Dezember 2015, 17:04:12 schrieb Jeffy Chen: Initial release for rk3228 shared dtsi. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm/boot/dts/rk3228.dtsi

Re: [PATCH v1 3/8] rockchip: add clock controller for rk3228

2015-12-10 Thread Jeffy Chen
Hi Heiko, Thank you for your comments :) On 2015-12-10 8:19, Heiko Stuebner wrote: Hi Jeffy, Am Mittwoch, 9. Dezember 2015, 17:04:08 schrieb Jeffy Chen: Add the clock tree definition for the new rk3228 SoC. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/clk/ro

[PATCH v2] serial: core: remove baud_rates when serial console setup

2016-01-03 Thread Jeffy Chen
Currently, when tring to set up a serial console with a higher baud rate, it would fallback to 921600. Tested-by: Jianqun Xu <jay...@rock-chips.com> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: remove baud_rates as Alan's suggestion. driver

Re: [v11, 1/3] Bluetooth: hci_uart: add prepare callbacks to hci_uart_proto structure.

2016-06-24 Thread Jeffy Chen
ff *skb); struct sk_buff *(*dequeue)(struct hci_uart *hu); }; This serial of patches work well on my device... Tested-by: Jeffy Chen <jeffy.c...@rock-chips.com>

Re: [v11,3/3] Bluetooth: hci_uart: Support firmware download for Marvell

2016-06-24 Thread Jeffy Chen
b4..8c53b50 100644 --- a/drivers/bluetooth/hci_uart.h +++ b/drivers/bluetooth/hci_uart.h @@ -35,7 +35,7 @@ #define HCIUARTGETFLAGS _IOR('U', 204, int) /* UART protocols */ -#define HCI_UART_MAX_PROTO 10 +#define HCI_UART_MAX_PROTO 11 #define HCI_UART_H4 0 #define HCI_UART_BCSP 1 @@ -47,6 +47,7 @@ #define HCI_UART_BCM 7 #define HCI_UART_QCA 8 #define HCI_UART_AG6XX9 +#define HCI_UART_MRVL 10 #define HCI_UART_RAW_DEVICE 0 #define HCI_UART_RESET_ON_INIT1 @@ -192,3 +193,8 @@ int qca_deinit(void); int ag6xx_init(void); int ag6xx_deinit(void); #endif + +#ifdef CONFIG_BT_HCIUART_MRVL +int mrvl_init(void); +int mrvl_deinit(void); +#endif This serial of patches work well on my device... Tested-by: Jeffy Chen <jeffy.c...@rock-chips.com>

Re: [v11, 2/3] Bluetooth: hci_uart: check if hdev is present before using it

2016-06-24 Thread Jeffy Chen
ame, + BT_DBG("%s: New tty speeds: %d/%d", hu->hdev ? hu->hdev->name : "", tty->termios.c_ispeed, tty->termios.c_ospeed); } This serial of patches work well on my device... Tested-by: Jeffy Chen <jeffy.c...@rock-chips.com>

[PATCH v2 2/3] btmrvl: set irq_bt to -1 when failed to parse it

2017-01-22 Thread Jeffy Chen
The irq_of_parse_and_map will return 0 as a invalid irq. Set irq_bt to -1 in this case, so that the btmrvl resume/suspend code would not try to enable/disable it. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <briannor...@chromium.org> --- Changes i

[PATCH v2 1/3] btmrvl: avoid double-disable_irq() race

2017-01-22 Thread Jeffy Chen
nable it in case if we have double-disabled it." Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <briannor...@chromium.org> --- Changes in v2: Update commit message. drivers/bluetooth/btmrvl_sdio.c | 8 ++-- 1 file changed, 6 insertions(+), 2 de

[PATCH v2 3/3] btmrvl: use dt's irqflags for wakeup pin

2017-01-22 Thread Jeffy Chen
Use irqflags parsed from dt. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <briannor...@chromium.org> --- Changes in v2: None drivers/bluetooth/btmrvl_sdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/b

[PATCH 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-01-23 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- net/bluetooth/hidp/

[PATCH 1/3] Bluetooth: bnep: fix possible might sleep error in bnep_session

2017-01-23 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- net/bluetooth/bnep/core.

[PATCH 2/3] Bluetooth: cmtp: fix possible might sleep error in cmtp_session

2017-01-23 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- net/bluetooth/cmtp/core.

[PATCH 1/3] btmrvl: avoid double-disable_irq() race

2017-01-20 Thread Jeffy Chen
It's much the same as what we did for mwifiex in: b9da4d2 mwifiex: avoid double-disable_irq() race Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/bluetooth/btmrvl_sdio.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/blu

[PATCH] Bluetooth: hidp: might sleep error in hidp_session_thread

2017-01-20 Thread Jeffy Chen
-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- net/bluetooth/hidp/core.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 0bec458..bfd3fb8 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/blu

[PATCH 2/3] btmrvl: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen <jeff

[PATCH 3/3] mwifiex: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen <jeff

[PATCH 1/3] btusb: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen <jeff

[PATCH v4 2/3] Bluetooth: cmtp: fix possible might sleep error in cmtp_session

2017-02-13 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <

[PATCH v4 1/3] Bluetooth: bnep: fix possible might sleep error in bnep_session

2017-02-13 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <

[PATCH v4 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-02-13 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> 1/ Fix could not w

[PATCH v2 1/3] Bluetooth: bnep: fix possible might sleep error in bnep_session

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Remove unnec

[PATCH v2 2/3] Bluetooth: cmtp: fix possible might sleep error in cmtp_session

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Remove unnecessary memory b

[PATCH v3 1/3] Bluetooth: bnep: fix possible might sleep error in bnep_session

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <

[PATCH v3 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> 1/ Fix could not w

[PATCH v3 2/3] Bluetooth: cmtp: fix possible might sleep error in cmtp_session

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Brian Norris <

[PATCH v2 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-02-12 Thread Jeffy Chen
(); } __set_current_state(TASK_RUNNING); Which fixed at: dfb2fae Bluetooth: Fix nested sleeps So let's fix it at the same way, also follow the suggestion of: https://lwn.net/Articles/628628/ Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> 1/ Fix could not w

[PATCH 3/3] btmrvl: use dt's irqflags for wakeup pin

2017-01-20 Thread Jeffy Chen
Use irqflags parsed from dt. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/bluetooth/btmrvl_sdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 796f719..23711fe

[PATCH 2/3] btmrvl: set irq_bt to -1 when failed to parse it

2017-01-20 Thread Jeffy Chen
The irq_of_parse_and_map will return 0 as a invalid irq. Set irq_bt to -1 in this case, so that the btmrvl resume/suspend code would not get confused. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/bluetooth/btmrvl_sdio.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] pinctrl: rockchip: add irq_enable & irq_disable ops

2017-03-01 Thread Jeffy Chen
isable-> noop irq_enable-> enable clk again irq_disable-> noop Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/pinctrl/pinctrl-rockchip.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.

[PATCH v2 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (2): PCI: return resource_entry in pci_add_resource helpers of/pci

[PATCH v2 1/2] PCI: return resource_entry in pci_add_resource helpers

2017-03-23 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/pci/bus.c | 13 - include/linux/pci.h | 8 +--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index bc56cf1..36a1861

[PATCH v2 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Don't change the resource_list_create_entry's behavior. drivers/of/of_pci.

[PATCH v3 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Add some comments. Changes in v2: Don't change the resource_list_create_entry's be

[PATCH v3 1/2] PCI: return resource_entry in pci_add_resource helpers

2017-03-23 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/pci/bus.c | 13 - include/linux/pci.h | 8 +--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index b

[PATCH v3 0/2] Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Jeffy Chen
In of_pci_get_host_bridge_resources, we alloced some struct resource variables, and they would cause memory leak since no where to free them. Changes in v3: Add some comments. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (2): PCI: return resource_entry

[PATCH 0/2] This patches set cros_ec_keyb as a wakeup source, so the chromeos's powerd

2017-03-30 Thread Jeffy Chen
can control the keyboard's wakeup ability along with other ec event sources. Jeffy Chen (2): input: cros_ec_keyb: Report wakeup events ARM: dts: cros-ec-keyboard: Enable as wakeup source arch/arm/boot/dts/cros-ec-keyboard.dtsi | 1 + drivers/input/keyboard/cros_ec_keyb.c | 9 + 2

[PATCH 1/2] input: cros_ec_keyb: Report wakeup events

2017-03-30 Thread Jeffy Chen
Report wakeup events when process events. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/input/keyboard/cros_ec_keyb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index 6

[PATCH 2/2] ARM: dts: cros-ec-keyboard: Enable as wakeup source

2017-03-30 Thread Jeffy Chen
Enable cros-ec-keyboard as a wakeup source. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- arch/arm/boot/dts/cros-ec-keyboard.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/cros-ec-keyboard.dtsi b/arch/arm/boot/dts/cros-ec-keyboard.dtsi index c0

[PATCH v3] drm/rockchip: Refactor the component match logic.

2017-03-15 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Andrzej Hajda <a.ha...@sa

[PATCH v6] drm/rockchip: Refactor the component match logic.

2017-03-19 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Andrzej Hajda <a.ha...@samsung.c

[PATCH v4] drm/rockchip: Refactor the component match logic.

2017-03-15 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Andrzej Hajda <a.ha...@sa

[PATCH 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-21 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/of/of_pci.c | 48 +++- 1 file changed, 15 insertions(

[PATCH 1/2] resource: Copy the whole res in resource_list_create_entry

2017-03-21 Thread Jeffy Chen
We do this so the callers may not need worry about when to free the allocated resource struct. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- kernel/resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/resource.c b/kernel/resource.c index 9

[PATCH v8] drm/rockchip: Refactor the component match logic.

2017-03-21 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Andrzej Hajda <a.ha...@samsung.c

[PATCH v2] input: cros_ec_keyb: Report wakeup events

2017-04-01 Thread Jeffy Chen
Report wakeup events when process events. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Remove unneeded dts changes. drivers/input/keyboard/cros_ec_keyb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/d

[PATCH v2 0/1] Set cros_ec_keyb as a wakeup source

2017-04-01 Thread Jeffy Chen
This patches set cros_ec_keyb as a wakeup source, so the chromeos's powerd can control the keyboard's wakeup ability along with other ec event sources. Changes in v2: Remove unneeded dts changes. Jeffy Chen (1): input: cros_ec_keyb: Report wakeup events drivers/input/keyboard/cros_ec_keyb.c

[PATCH v5 0/1] Fix memory leak in of_pci_get_host_bridge_resources

2017-04-04 Thread Jeffy Chen
some comments. Changes in v2: Don't change the resource_list_create_entry's behavior. Jeffy Chen (1): of/pci: Fix memory leak in of_pci_get_host_bridge_resources drivers/of/of_pci.c | 51 ++- drivers/pci/bus.c | 7 ++- 2 files changed, 24

[PATCH v5] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-04-04 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: Fix some careless compile errors. Changes in v4: Use IORESOURCE_AUTO to mark struct res

[PATCH v4] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-04-04 Thread Jeffy Chen
Currently we only free the allocated resource struct when error. This would cause memory leak after pci_free_resource_list. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Use IORESOURCE_AUTO to mark struct resources which could be copied. Changes in v3: Ad

[PATCH v4 0/1] Fix memory leak in of_pci_get_host_bridge_resources

2017-04-04 Thread Jeffy Chen
the resource_list_create_entry's behavior. Jeffy Chen (1): of/pci: Fix memory leak in of_pci_get_host_bridge_resources drivers/of/of_pci.c | 51 ++- drivers/pci/bus.c | 7 ++- 2 files changed, 24 insertions(+), 34 deletions(-) -- 2.1.4

[PATCH v3 0/9] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-05 Thread Jeffy Chen
<dan...@ffwll.ch>'s comments. Update commit message. Address Daniel Vetter <dan...@ffwll.ch>'s comments. Update commit message. Update commit message. Changes in v2: Fix some commit messages. Jeffy Chen (9): drm: bridge: analogix: Detach panel when unbinding analogix dp drm: bri

[PATCH v3 6/9] drm/rockchip: Reoder drm bind/unbind sequence

2017-04-05 Thread Jeffy Chen
Current drm bind/unbind sequence would cause some memory issues. For example we should not cleanup iommu before cleanup mode config. Reorder bind/unbind sequence, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Address Sean Paul <seanp...@chr

[PATCH v3 7/9] drm/rockchip: Shutdown all crtcs when unbinding drm

2017-04-05 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Address Daniel Vetter <dan...@ffwll.ch>'s comments. Update commit message. Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/

[PATCH v3 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp

2017-04-05 Thread Jeffy Chen
The panel is attached when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: Fix some commit messages. drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/

[PATCH v3 5/9] drm/rockchip: vop: Enable pm domain before vop_initial

2017-04-05 Thread Jeffy Chen
to the end of vop_bind for eaiser error handling. 2/ correct the err_put_pm_runtime of vop_enable. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Address Sean Paul <seanp...@chromium.org>'s comments. Update commit message. Changes in v2: None drivers/gpu/

[PATCH v3 8/9] drm/rockchip: gem: Don't alloc/free gem buf when dev_private is invalid

2017-04-05 Thread Jeffy Chen
After unbinding drm, the userspace may still has a chance to access gem buf. Add a sanity check for a NULL dev_private to prevent that from happening. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Address Daniel Vetter <dan...@ffwll.ch>'s comments. U

[PATCH v3 9/9] drm/rockchip: cdn-dp: Don't unregister audio dev when unbinding

2017-04-05 Thread Jeffy Chen
After snd_soc_unregister_codec, the dai link would remain bound to the invalid codec. That would cause crashes after unbind dp driver. Let's unregister audio codec when removing dp driver to prevent that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Update

[PATCH v3 4/9] drm/rockchip: cdn-dp: Don't try to release firmware when not loaded

2017-04-05 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c

[PATCH v3 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-05 Thread Jeffy Chen
The dp aux is registered when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/an

[PATCH v3 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-05 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But analogix dp's connector is allocated in bind, and freed after unbind. So we need to destroy it in unbind to avoid further access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None Changes in v2: None drive

[PATCH] drm: Fixup hang when unregistering drm dev with open_count 0

2017-04-11 Thread Jeffy Chen
directly. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/drm_drv.c | 15 +-- include/drm/drm_drv.h | 1 - 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index ad13e20..cc2d018

[PATCH 0/9] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-01 Thread Jeffy Chen
Verified on rk3399 chromebook kevin: 1/ stop ui && pkill -9 frecon 2/ unbind/bind drm Jeffy Chen (9): drm: bridge: analogix: Detach panel when unbinding analogix dp drm: bridge: analogix: Unregister dp aux when unbinding drm: bridge: analogix: Destroy connector when unbindi

[PATCH 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp

2017-04-01 Thread Jeffy Chen
The panel is attached when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/

[PATCH 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-01 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But analogix dp's connector is allocated when binding, and would be freed after unbind. So we need to destroy it when unbinding, to avoid further access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/bridge/an

[PATCH 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-01 Thread Jeffy Chen
The dp aux is registered when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/

[PATCH 4/9] drm/rockchip: cdn-dp: Don't try to release firmware when not loaded

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index fd79a70..a97f3f4 100644 --- a/drive

[PATCH 5/9] drm/rockchip: vop: Enable pm domain when resetting vop

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 +++-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm

[PATCH 6/9] drm/rockchip: Reoder unload sequence

2017-04-01 Thread Jeffy Chen
We should don't cleanup iommu before cleanup other resources. Reorder unload sequence, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 7/9] drm/rockchip: Force disable all crtc when unload

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index a5d83cb..5dbf011 100644 --- a/drivers/g

[PATCH v2 9/9] drm/rockchip: cdn-dp: Don't unregister audio dev when unbinding

2017-04-01 Thread Jeffy Chen
In current sound framework, there's no way to unbind dai link after unregister codec. So move unregister codec to driver remove for now. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 6 +++--- 1 file chan

[PATCH 8/9] drm/rockchip: gem: Don't alloc/free gem buf before drm dev registered

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index df9e570..19679b2 100644 --- a/d

[PATCH 9/9] drm/rockchip: cdn-dp: Don't unregister audio dev when unbinding

2017-04-01 Thread Jeffy Chen
In current sound framework, there's no way to unbind dai link after unregister codec. So don't unregister the codec when unbinding for now. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[PATCH v2 0/9] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-01 Thread Jeffy Chen
Verified on rk3399 chromebook kevin: 1/ stop ui && pkill -9 frecon 2/ unbind/bind drm Changes in v2: Fix some commit messages. Jeffy Chen (9): drm: bridge: analogix: Detach panel when unbinding analogix dp drm: bridge: analogix: Unregister dp aux when unbinding drm: bridge:

[PATCH v2 5/9] drm/rockchip: vop: Enable pm domain when resetting vop

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 31 +++-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/ro

[PATCH v2 8/9] drm/rockchip: gem: Don't alloc/free gem buf before drm dev registered

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index df9e570..2

[PATCH v2 7/9] drm/rockchip: Force disable all crtc when unload

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index a5d83cb..5dbf011

[PATCH v2 1/9] drm: bridge: analogix: Detach panel when unbinding analogix dp

2017-04-01 Thread Jeffy Chen
The panel is attached when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: Fix some commit messages. drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/an

[PATCH v2 6/9] drm/rockchip: Reoder unload sequence

2017-04-01 Thread Jeffy Chen
We should not cleanup iommu before cleanup other resources. Reorder unload sequence, follow exynos drm. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH v2 3/9] drm: bridge: analogix: Destroy connector when unbinding

2017-04-01 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But analogix dp's connector is allocated in bind, and freed after unbind. So we need to destroy it in unbind to avoid further access. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/bridge/an

[PATCH v2 4/9] drm/rockchip: cdn-dp: Don't try to release firmware when not loaded

2017-04-01 Thread Jeffy Chen
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index fd79a70..a

[PATCH v2 2/9] drm: bridge: analogix: Unregister dp aux when unbinding

2017-04-01 Thread Jeffy Chen
The dp aux is registered when binding analogix dp. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v2: None drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/d

[PATCH v8 1/2] drm: Unplug drm device when unregistering it

2017-04-11 Thread Jeffy Chen
After unbinding drm, the user space may still owns the drm dev fd, and may still be able to call drm ioctl. We're using an unplugged state to prevent something like that, so let's reuse it here. Also drop drm_unplug_dev, because it would be unused after other changes. Signed-off-by: Jeffy Chen

[PATCH v8 2/2] drm: Prevent release fb after cleanup drm_mode_config

2017-04-11 Thread Jeffy Chen
that. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v8: None Changes in v7: Update commit message. Changes in v6: None Changes in v5: None Changes in v2: None drivers/gpu/drm/drm_framebuffer.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/g

[PATCH v8 0/2] drm: rockchip: Fix rockchip drm unbind crash error

2017-04-11 Thread Jeffy Chen
essage. Changes in v6: Address Daniel Vetter <dan...@ffwll.ch>'s comments. Changes in v5: Fix wrong git account. Changes in v2: Fix some commit messages. Jeffy Chen (2): drm: Unplug drm device when unregistering it drm: Prevent release fb after cleanup drm_mode_config drivers/gpu/d

  1   2   3   4   5   6   7   8   9   10   >