[PATCH mmc-next v2 1/3] mmc: sdhci: add adma_table_num member to struct sdhci_host

2018-07-26 Thread Jisheng Zhang
This patch adds adma_table_num member to struct sdhci_host to give more flexibility to drivers to control the ADMA table number. Default value of adma_table_num is set to (SDHCI_MAX_SEGS * 2 + 1). Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci.c | 17 + drivers/mmc

[PATCH mmc-next v2 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-07-26 Thread Jisheng Zhang
sdhci_ops so that driver can override it. patch3 finally solves the 128MB boundary limitation. since v1: - fix BOUNDARY_OK macro if addr+len is aligned to 128MB - use DIV_ROUND_UP to cal extra desc num - fix !len for dwcmshc_adma_write_desc() Jisheng Zhang (3): mmc: sdhci: add adma_table_num

[PATCH mmc-next v2 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-07-26 Thread Jisheng Zhang
sdhci_ops so that driver can override it. patch3 finally solves the 128MB boundary limitation. since v1: - fix BOUNDARY_OK macro if addr+len is aligned to 128MB - use DIV_ROUND_UP to cal extra desc num - fix !len for dwcmshc_adma_write_desc() Jisheng Zhang (3): mmc: sdhci: add adma_table_num

Re: [PATCH mmc-next 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
On Wed, 25 Jul 2018 17:47:49 +0800 Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > Signed-off-by: Jisheng Zhang > --- > drivers/mmc/host/sdhci

Re: [PATCH mmc-next 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
On Wed, 25 Jul 2018 17:47:49 +0800 Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > Signed-off-by: Jisheng Zhang > --- > drivers/mmc/host/sdhci

[PATCH mmc-next 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
When using DMA, if the DMA addr spans 128MB boundary, we have to split the DMA transfer into two so that each one doesn't exceed the boundary. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 41 + 1 file changed, 41 insertions(+) diff --git

[PATCH mmc-next 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
When using DMA, if the DMA addr spans 128MB boundary, we have to split the DMA transfer into two so that each one doesn't exceed the boundary. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 41 + 1 file changed, 41 insertions(+) diff --git

[PATCH mmc-next 2/3] mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

2018-07-25 Thread Jisheng Zhang
Add this hook so that it can be overridden with driver specific implementations. We also rename the original sdhci_adma_write_desc() to _sdhci_adma_write_desc() and export it, so that it could be reused by driver's specific implementations. Signed-off-by: Jisheng Zhang --- drivers/mmc/host

[PATCH mmc-next 2/3] mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

2018-07-25 Thread Jisheng Zhang
Add this hook so that it can be overridden with driver specific implementations. We also rename the original sdhci_adma_write_desc() to _sdhci_adma_write_desc() and export it, so that it could be reused by driver's specific implementations. Signed-off-by: Jisheng Zhang --- drivers/mmc/host

[PATCH mmc-next 1/3] mmc: sdhci: add adma_table_num member to struct sdhci_host

2018-07-25 Thread Jisheng Zhang
This patch adds adma_table_num member to struct sdhci_host to give more flexibility to drivers to control the ADMA table number. Default value of adma_table_num is set to (SDHCI_MAX_SEGS * 2 + 1). Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci.c | 17 + drivers/mmc

[PATCH mmc-next 1/3] mmc: sdhci: add adma_table_num member to struct sdhci_host

2018-07-25 Thread Jisheng Zhang
This patch adds adma_table_num member to struct sdhci_host to give more flexibility to drivers to control the ADMA table number. Default value of adma_table_num is set to (SDHCI_MAX_SEGS * 2 + 1). Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci.c | 17 + drivers/mmc

[PATCH mmc-next 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
sdhci_ops so that driver can override it. patch3 finally solves the 128MB boundary limitation. Jisheng Zhang (3): mmc: sdhci: add adma_table_num member to struct sdhci_host mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

[PATCH mmc-next 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-07-25 Thread Jisheng Zhang
sdhci_ops so that driver can override it. patch3 finally solves the 128MB boundary limitation. Jisheng Zhang (3): mmc: sdhci: add adma_table_num member to struct sdhci_host mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

Re: [PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC

2018-07-24 Thread Jisheng Zhang
Hi Rob, On Fri, 20 Jul 2018 09:21:17 -0600 Rob Herring wrote: > On Fri, Jul 13, 2018 at 05:26:26PM +0800, Jisheng Zhang wrote: > > Add initial dtsi file to support Synaptics AS370 SoC with quad > > Cortex-A53 CPUs. > > > > Signed-off-by: Jisheng Zhang > > --- &

Re: [PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC

2018-07-24 Thread Jisheng Zhang
Hi Rob, On Fri, 20 Jul 2018 09:21:17 -0600 Rob Herring wrote: > On Fri, Jul 13, 2018 at 05:26:26PM +0800, Jisheng Zhang wrote: > > Add initial dtsi file to support Synaptics AS370 SoC with quad > > Cortex-A53 CPUs. > > > > Signed-off-by: Jisheng Zhang > > --- &

Re: [PATCH 2/3] dt-bindings: arm: syna: add support for the AS370 SoC

2018-07-23 Thread Jisheng Zhang
Hi Rob On Fri, 20 Jul 2018 09:15:29 -0600 Rob Herring wrote: > On Fri, Jul 13, 2018 at 05:24:57PM +0800, Jisheng Zhang wrote: > > The AS370 SoC is a new derivative of the berlin family. The only > > difference is the SoC isn't named as berlin*. > > So is it a derivat

Re: [PATCH 2/3] dt-bindings: arm: syna: add support for the AS370 SoC

2018-07-23 Thread Jisheng Zhang
Hi Rob On Fri, 20 Jul 2018 09:15:29 -0600 Rob Herring wrote: > On Fri, Jul 13, 2018 at 05:24:57PM +0800, Jisheng Zhang wrote: > > The AS370 SoC is a new derivative of the berlin family. The only > > difference is the SoC isn't named as berlin*. > > So is it a derivat

[PATCH v2 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

2018-07-18 Thread Jisheng Zhang
Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/berlin

[PATCH v2 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

2018-07-18 Thread Jisheng Zhang
Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/berlin

[PATCH v2 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

2018-07-17 Thread Jisheng Zhang
Add as370 to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b

[PATCH v2 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

2018-07-17 Thread Jisheng Zhang
Add as370 to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b

[PATCH v2 0/2] pinctrl: berlin: add as370 SoC support

2018-07-17 Thread Jisheng Zhang
This series is to add the Synaptics AS370 SoC pinctrl driver. since v1: - remove MODULE_DEVICE_TABLE since the driver is non-modular. Thank kbuild test robot to report this issue. Jisheng Zhang (2): dt-binding: pinctrl: berlin: document AS370 SoC pinctrl pinctrl: berlin: add the as370

[PATCH v2 0/2] pinctrl: berlin: add as370 SoC support

2018-07-17 Thread Jisheng Zhang
This series is to add the Synaptics AS370 SoC pinctrl driver. since v1: - remove MODULE_DEVICE_TABLE since the driver is non-modular. Thank kbuild test robot to report this issue. Jisheng Zhang (2): dt-binding: pinctrl: berlin: document AS370 SoC pinctrl pinctrl: berlin: add the as370

[PATCH 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

2018-07-13 Thread Jisheng Zhang
Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/berlin

[PATCH 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

2018-07-13 Thread Jisheng Zhang
Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/berlin

[PATCH 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

2018-07-13 Thread Jisheng Zhang
Add as370 to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b

[PATCH 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

2018-07-13 Thread Jisheng Zhang
Add as370 to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b

[PATCH 0/2] pinctrl: berlin: add as370 SoC support

2018-07-13 Thread Jisheng Zhang
This series is to add the Synaptics AS370 SoC pinctrl driver. Jisheng Zhang (2): dt-binding: pinctrl: berlin: document AS370 SoC pinctrl pinctrl: berlin: add the as370 SoC pinctrl driver .../bindings/pinctrl/berlin,pinctrl.txt | 3 +- drivers/pinctrl/berlin/Kconfig

[PATCH 0/2] pinctrl: berlin: add as370 SoC support

2018-07-13 Thread Jisheng Zhang
This series is to add the Synaptics AS370 SoC pinctrl driver. Jisheng Zhang (2): dt-binding: pinctrl: berlin: document AS370 SoC pinctrl pinctrl: berlin: add the as370 SoC pinctrl driver .../bindings/pinctrl/berlin,pinctrl.txt | 3 +- drivers/pinctrl/berlin/Kconfig

[PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file to support Synaptics AS370 SoC with quad Cortex-A53 CPUs. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/synaptics/as370.dtsi | 177 +++ 1 file changed, 177 insertions(+) create mode 100644 arch/arm64/boot/dts/synaptics/as370.dtsi diff --git

[PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file to support Synaptics AS370 SoC with quad Cortex-A53 CPUs. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/synaptics/as370.dtsi | 177 +++ 1 file changed, 177 insertions(+) create mode 100644 arch/arm64/boot/dts/synaptics/as370.dtsi diff --git

[PATCH 2/3] dt-bindings: arm: syna: add support for the AS370 SoC

2018-07-13 Thread Jisheng Zhang
The AS370 SoC is a new derivative of the berlin family. The only difference is the SoC isn't named as berlin*. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/arm/syna.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH 2/3] dt-bindings: arm: syna: add support for the AS370 SoC

2018-07-13 Thread Jisheng Zhang
The AS370 SoC is a new derivative of the berlin family. The only difference is the SoC isn't named as berlin*. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/arm/syna.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH 1/3] dt-bindings: arm: move berlin binding documentation to syna.txt

2018-07-13 Thread Jisheng Zhang
Move berlin binding documentation as part of transition from Marvell berlin to Synaptics SoC. Signed-off-by: Jisheng Zhang --- .../bindings/arm/{marvell/marvell,berlin.txt => syna.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/

[PATCH 1/3] dt-bindings: arm: move berlin binding documentation to syna.txt

2018-07-13 Thread Jisheng Zhang
Move berlin binding documentation as part of transition from Marvell berlin to Synaptics SoC. Signed-off-by: Jisheng Zhang --- .../bindings/arm/{marvell/marvell,berlin.txt => syna.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/

[PATCH 0/3] arm64: dts: add Synaptics AS370 SoC support

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file for Synaptics AS370 SoC. patch1 moves berlin binding to syna.txt. patch2 add dt-binding for the AS370 SoC. patch3 add the initial dtsi file for the SoC. Jisheng Zhang (3): dt-bindings: arm: move berlin binding documentation to syna.txt dt-bindings: arm: syna: add

[PATCH 0/3] arm64: dts: add Synaptics AS370 SoC support

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file for Synaptics AS370 SoC. patch1 moves berlin binding to syna.txt. patch2 add dt-binding for the AS370 SoC. patch3 add the initial dtsi file for the SoC. Jisheng Zhang (3): dt-bindings: arm: move berlin binding documentation to syna.txt dt-bindings: arm: syna: add

Re: [PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-11 Thread Jisheng Zhang
Hi Rob, On Wed, 11 Jul 2018 10:12:06 -0600 Rob Herring wrote: > On Fri, Jul 06, 2018 at 03:20:47PM +0800, Jisheng Zhang wrote: > > Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host > > Controller can support eMMC/SD/SDIO. Add the bindings. > > > > S

Re: [PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-11 Thread Jisheng Zhang
Hi Rob, On Wed, 11 Jul 2018 10:12:06 -0600 Rob Herring wrote: > On Fri, Jul 06, 2018 at 03:20:47PM +0800, Jisheng Zhang wrote: > > Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host > > Controller can support eMMC/SD/SDIO. Add the bindings. > > > > S

[PATCH v6 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-11 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files

[PATCH v6 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-11 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files

[PATCH v6 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/

[PATCH v6 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/

[PATCH v6 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-11 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v6 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-11 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v6 0/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
h1. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3): serial: 8250: introduce get_divisor()

[PATCH v6 0/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
h1. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3): serial: 8250: introduce get_divisor()

[PATCH v5 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

[PATCH v5 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

Re: [PATCH v4 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
Hi Andy, On Tue, 10 Jul 2018 19:19:21 +0300 Andy Shevchenko wrote: > On Tue, 2018-07-10 at 11:15 +0800, Jisheng Zhang wrote: > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divisor latch fraction register. The fractional divisor width is

Re: [PATCH v4 3/3] serial: 8250_dw: add fractional divisor support

2018-07-11 Thread Jisheng Zhang
Hi Andy, On Tue, 10 Jul 2018 19:19:21 +0300 Andy Shevchenko wrote: > On Tue, 2018-07-10 at 11:15 +0800, Jisheng Zhang wrote: > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divisor latch fraction register. The fractional divisor width is

[PATCH v4 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

[PATCH v4 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

[PATCH v4 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-09 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files changed, 6 insertions(+), 2

[PATCH v4 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-09 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files changed, 6 insertions(+), 2

[PATCH v4 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v4 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v4 0/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3): serial: 8250: introduce get_divisor() and set_divisor() hook serial: 8250: export serial8250_do_set_divisor() serial: 8250_dw: add fractional divisor support drivers/tty/serial/8250/8250_core.

[PATCH v4 0/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3): serial: 8250: introduce get_divisor() and set_divisor() hook serial: 8250: export serial8250_do_set_divisor() serial: 8250_dw: add fractional divisor support drivers/tty/serial/8250/8250_core.

Re: [PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
Hi Andy, On Mon, 9 Jul 2018 16:32:41 +0800 Jisheng Zhang wrote: > Hi Andy, > > On Mon, 9 Jul 2018 16:23:15 +0800 Jisheng Zhang wrote: > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divisor latch fraction register. The fractional

Re: [PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
Hi Andy, On Mon, 9 Jul 2018 16:32:41 +0800 Jisheng Zhang wrote: > Hi Andy, > > On Mon, 9 Jul 2018 16:23:15 +0800 Jisheng Zhang wrote: > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divisor latch fraction register. The fractional

Re: [PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
Hi Andy, On Mon, 9 Jul 2018 16:23:15 +0800 Jisheng Zhang wrote: > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > valid divisor latch fraction register. The fractional divisor width is > 4bits ~ 6bits. > > Now the preparation is done, it's easy to add t

Re: [PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
Hi Andy, On Mon, 9 Jul 2018 16:23:15 +0800 Jisheng Zhang wrote: > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > valid divisor latch fraction register. The fractional divisor width is > 4bits ~ 6bits. > > Now the preparation is done, it's easy to add t

[PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

[PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
obe, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c in

[PATCH v3 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-09 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files changed, 6 insertions(+), 2

[PATCH v3 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-09 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files changed, 6 insertions(+), 2

Re: serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
oops, sorry, please ignore this patch. On Mon, 9 Jul 2018 16:19:22 +0800 Jisheng Zhang wrote: > Add these two hooks so that they can be overridden with driver specific > implementations. > > Signed-off-by: Jisheng Zhang > Reviewed-by: Andy Shevchenko > --- > dr

Re: serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
oops, sorry, please ignore this patch. On Mon, 9 Jul 2018 16:19:22 +0800 Jisheng Zhang wrote: > Add these two hooks so that they can be overridden with driver specific > implementations. > > Signed-off-by: Jisheng Zhang > Reviewed-by: Andy Shevchenko > --- > dr

[PATCH v3 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v3 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux

[PATCH v3 0/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
ied with well implemented GENMASK - Add Andy's Reviewed-by tag to patch1. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks

[PATCH v3 0/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
ied with well implemented GENMASK - Add Andy's Reviewed-by tag to patch1. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
On Fri, 6 Jul 2018 20:37:09 +0300 Andy Shevchenko wrote: > On Thu, 2018-07-05 at 14:39 +0800, Jisheng Zhang wrote: > > > On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: > > My comments below. > > > > > For Synopsys DesignWare 8250 uar

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
On Fri, 6 Jul 2018 20:37:09 +0300 Andy Shevchenko wrote: > On Thu, 2018-07-05 at 14:39 +0800, Jisheng Zhang wrote: > > > On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: > > My comments below. > > > > > For Synopsys DesignWare 8250 uar

[PATCH v2 2/2] mmc: sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC driver

2018-07-06 Thread Jisheng Zhang
Add a driver for SDHCI OF Synopsys DesignWare Cores Mobile Storage Signed-off-by: Jisheng Zhang --- drivers/mmc/host/Kconfig| 11 +++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-dwcmshc.c | 116 3 files changed, 128 insertions

[PATCH v2 2/2] mmc: sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC driver

2018-07-06 Thread Jisheng Zhang
Add a driver for SDHCI OF Synopsys DesignWare Cores Mobile Storage Signed-off-by: Jisheng Zhang --- drivers/mmc/host/Kconfig| 11 +++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-dwcmshc.c | 116 3 files changed, 128 insertions

[PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-06 Thread Jisheng Zhang
Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller can support eMMC/SD/SDIO. Add the bindings. Signed-off-by: Jisheng Zhang --- .../bindings/mmc/sdhci-of-dwcmshc.txt | 20 +++ 1 file changed, 20 insertions(+) create mode 100644 Documentation

[PATCH v2 1/2] dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC

2018-07-06 Thread Jisheng Zhang
Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller can support eMMC/SD/SDIO. Add the bindings. Signed-off-by: Jisheng Zhang --- .../bindings/mmc/sdhci-of-dwcmshc.txt | 20 +++ 1 file changed, 20 insertions(+) create mode 100644 Documentation

[PATCH v2 0/2] mmc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-06 Thread Jisheng Zhang
Add support for Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller which can support eMMC/SD/SDIO. Since v1: - move the dt bindings into a separate patch Jisheng Zhang (2): dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC mmc: sdhci-of-dwcmshc: add SDHCI

[PATCH v2 0/2] mmc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-06 Thread Jisheng Zhang
Add support for Synopsys SDHCI compatible DesignWare Cores Mobile Storage Host Controller which can support eMMC/SD/SDIO. Since v1: - move the dt bindings into a separate patch Jisheng Zhang (2): dt: bindings: Add bindings for SDHCI Synopsys DWC MSHC mmc: sdhci-of-dwcmshc: add SDHCI

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-05 Thread Jisheng Zhang
On Thu, 5 Jul 2018 14:39:21 +0800 Jisheng Zhang wrote: > > > > > + serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB); > > > + serial_dl_write(up, quot); > > > > At some point it would be a helper, I think. We can call > > serial8250_do_se

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-05 Thread Jisheng Zhang
On Thu, 5 Jul 2018 14:39:21 +0800 Jisheng Zhang wrote: > > > > > + serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB); > > > + serial_dl_write(up, quot); > > > > At some point it would be a helper, I think. We can call > > serial8250_do_se

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-05 Thread Jisheng Zhang
Hi Andy, On Wed, 04 Jul 2018 19:08:22 +0300 Andy Shevchenko wrote: > On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: > > Thanks for an update, my comments below. > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divi

Re: [PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-05 Thread Jisheng Zhang
Hi Andy, On Wed, 04 Jul 2018 19:08:22 +0300 Andy Shevchenko wrote: > On Wed, 2018-07-04 at 17:03 +0800, Jisheng Zhang wrote: > > Thanks for an update, my comments below. > > > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > > valid divi

[PATCH] mmc: sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-04 Thread Jisheng Zhang
Add a driver for SDHCI OF Synopsys DesignWare Cores Mobile Storage Host Controller. Signed-off-by: Jisheng Zhang --- .../bindings/mmc/sdhci-of-dwcmshc.txt | 20 +++ drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 1 + drivers

[PATCH] mmc: sdhci-of-dwcmshc: add SDHCI OF Synopsys DWC MSHC dirver

2018-07-04 Thread Jisheng Zhang
Add a driver for SDHCI OF Synopsys DesignWare Cores Mobile Storage Host Controller. Signed-off-by: Jisheng Zhang --- .../bindings/mmc/sdhci-of-dwcmshc.txt | 20 +++ drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 1 + drivers

Re: [PATCH] ARM: dts: berlin: switch to earlycon

2018-07-04 Thread Jisheng Zhang
Hi Thomas, On Tue, 29 May 2018 11:41:42 -0400 Thomas Hebb wrote: > The Synopsys DesignWare 8250 UART in Berlin SoCs is now supported by > 8250_early, so we can use earlycon for early console output instead > of earlyprintk, which requires an SoC-specific kernel. IIRC, earlyprintk still works

Re: [PATCH] ARM: dts: berlin: switch to earlycon

2018-07-04 Thread Jisheng Zhang
Hi Thomas, On Tue, 29 May 2018 11:41:42 -0400 Thomas Hebb wrote: > The Synopsys DesignWare 8250 UART in Berlin SoCs is now supported by > 8250_early, so we can use earlycon for early console output instead > of earlyprintk, which requires an SoC-specific kernel. IIRC, earlyprintk still works

[PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
ion >= 4.00a, then calculates the fractional divisor width, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/tty/seria

[PATCH v2 3/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
ion >= 4.00a, then calculates the fractional divisor width, then setups dw specific get_divisor() and set_divisor() hook. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/tty/seria

[PATCH v2 2/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-04 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux/serial_core.h | 7 +++ 3

[PATCH v2 2/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-04 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux/serial_core.h | 7 +++ 3

[PATCH v2 1/3] serial: 8250: let serial8250_get_divisor() get uart_port * as param

2018-07-04 Thread Jisheng Zhang
Align serial8250_get_divisor() with serial8250_set_divisor() to accept uart_port pointer as the first parameter. No functionality changes. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty

[PATCH v2 1/3] serial: 8250: let serial8250_get_divisor() get uart_port * as param

2018-07-04 Thread Jisheng Zhang
Align serial8250_get_divisor() with serial8250_set_divisor() to accept uart_port pointer as the first parameter. No functionality changes. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty

[PATCH v2 0/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
nal divisor support for Synopsys DW 8250. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3):

[PATCH v2 0/3] serial: 8250_dw: add fractional divisor support

2018-07-04 Thread Jisheng Zhang
nal divisor support for Synopsys DW 8250. Since v1: - add an extra patch to let serial8250_get_divisor() get uart_port * as param - take Andy's suggestions to "integrates hooks in the same way like it's done for the rest of 8250 ones". Many thanks to Andy. Jisheng Zhang (3):

Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support

2018-07-02 Thread Jisheng Zhang
On Tue, 3 Jul 2018 10:22:57 +0800 Jisheng Zhang wrote: > Hi, > > On Mon, 2 Jul 2018 14:51:03 +0300 Andy Shevchenko wrote: > > > On Mon, 2018-07-02 at 13:18 +0300, Andy Shevchenko wrote: > > > On Mon, 2018-07-02 at 18:04 +0800, Jisheng Zhang wrote: > > >

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