Re: [PATCH v4 2/2] mailbox: sprd: Add Spreadtrum mailbox driver

2020-05-06 Thread Baolin Wang
Hi Jassi, On Thu, May 7, 2020 at 7:25 AM Jassi Brar wrote: > > On Wed, May 6, 2020 at 8:29 AM Baolin Wang wrote: > > > > Hi Jassi, > > > > On Tue, Apr 28, 2020 at 11:10 AM Baolin Wang wrote: > > > > > > From: Baolin Wang > > > &g

Re: [PATCH v4 2/2] mailbox: sprd: Add Spreadtrum mailbox driver

2020-05-06 Thread Baolin Wang
Hi Jassi, On Tue, Apr 28, 2020 at 11:10 AM Baolin Wang wrote: > > From: Baolin Wang > > The Spreadtrum mailbox controller supports 8 channels to communicate > with MCUs, and it contains 2 different parts: inbox and outbox, which > are used to send and receive messages by IR

Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support

2020-05-04 Thread Baolin Wang
Hi Arnd On Tue, Apr 28, 2020 at 4:41 PM Baolin Wang wrote: > > On Tue, Apr 28, 2020 at 4:19 PM Lee Jones wrote: > > > > On Tue, 28 Apr 2020, Baolin Wang wrote: > > > > > On Tue, Apr 28, 2020 at 3:14 PM Lee Jones wrote: > > > > &

[PATCH] mfd: sprd: Remove unnecessary spi_bus_type setting

2020-04-29 Thread Baolin Wang
The spi_register_driver() will set the spi_bus_type for the spi_driver, thus remove the redundant setting in this driver. Signed-off-by: Baolin Wang --- drivers/mfd/sprd-sc27xx-spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c

Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support

2020-04-28 Thread Baolin Wang
On Tue, Apr 28, 2020 at 4:19 PM Lee Jones wrote: > > On Tue, 28 Apr 2020, Baolin Wang wrote: > > > On Tue, Apr 28, 2020 at 3:14 PM Lee Jones wrote: > > > > > > On Tue, 28 Apr 2020, Baolin Wang wrote: > > > > > > > On Mon, Apr 27, 2020 at 5:

Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support

2020-04-28 Thread Baolin Wang
On Tue, Apr 28, 2020 at 3:14 PM Lee Jones wrote: > > On Tue, 28 Apr 2020, Baolin Wang wrote: > > > On Mon, Apr 27, 2020 at 5:05 PM Lee Jones wrote: > > > > > > On Mon, 27 Apr 2020, Baolin Wang wrote: > > > > > > > Hi Arnd and Lee, > &

Re: [RFC PATCH v2 1/7] block: Extand commit_rqs() to do batch processing

2020-04-28 Thread Baolin Wang
On Mon, Apr 27, 2020 at 11:46 PM Christoph Hellwig wrote: > > extand in the subject really shpuld be 'extend' Sorry for typo, and will fix in next version. > > On Sun, Apr 26, 2020 at 05:38:54PM +0800, Baolin Wang wrote: > > From: Ming Lei > > > > Now some SD/MM

Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support

2020-04-28 Thread Baolin Wang
On Mon, Apr 27, 2020 at 5:05 PM Lee Jones wrote: > > On Mon, 27 Apr 2020, Baolin Wang wrote: > > > Hi Arnd and Lee, > > > > On Tue, Apr 21, 2020 at 10:13 PM Baolin Wang wrote: > > > > > > Some platforms such as Spreadtrum platform, define a special

[PATCH] MAINTAINERS: Update the Spreadtrum SoC maintainer

2019-10-23 Thread Baolin Wang
Change my email address, and add more Spreadtrum PMIC drivers to maintain. Signed-off-by: Baolin Wang --- MAINTAINERS | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 55199ef..7e6fdcf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH] dmaengine: sprd: Add wrap address support for link-list mode

2019-10-23 Thread Baolin Wang
this case. [Baolin Wang changes the commit message] Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 13 + include/linux/dma/sprd-dma.h |4 2 files changed, 17 insertions(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index

[PATCH v4 3/3] mmc: host: sdhci-sprd: Add software queue support

2019-10-22 Thread Baolin Wang
Add software queue support to improve the performance. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 26 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig

[PATCH v4 2/3] mmc: host: sdhci: Add request_done ops for struct sdhci_ops

2019-10-21 Thread Baolin Wang
Add request_done ops for struct sdhci_ops as a preparation in case some host controllers have different method to complete one request, such as supporting request completion of MMC software queue. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci.c | 12 ++-- drivers/mmc/host

[PATCH v4 1/3] mmc: Add MMC host software queue support

2019-10-21 Thread Baolin Wang
ked request or packed command in future. Signed-off-by: Baolin Wang --- drivers/mmc/core/block.c | 61 drivers/mmc/core/mmc.c | 13 +- drivers/mmc/core/queue.c | 33 - drivers/mmc/host/Kconfig |7 + drivers/mmc/host/Makefile |1 + drivers/mmc/host/mmc_hsq.c |

[PATCH v4 0/3] Add MMC software queue support

2019-10-21 Thread Baolin Wang
. - Replace virtual command queue with software queue for functions and variables. - Rename the software queue file and add sqhci.h header file. Baolin Wang (3): mmc: Add MMC host software queue support mmc: host: sdhci: Add request_done ops for struct sdhci_ops mmc: host: sdhci-sprd: Add

Re: [PATCH 4/4] rtc: sc27xx: remove .remove

2019-10-21 Thread Baolin Wang
k. Right, feel free to add my tag, thanks. Reviewed-by: Baolin Wang > > Signed-off-by: Alexandre Belloni > --- > drivers/rtc/rtc-sc27xx.c | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c > index b95676899750..

[PATCH] pinctrl: sprd: Add CM4 sleep mode support

2019-10-16 Thread Baolin Wang
Chen Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c index 8869843..157712ab 100644 --- a/drivers/pinctrl/sprd/pinctrl-sprd.c

Re: [PATCH -next] clk: sprd: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread Baolin Wang
e { > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - base = devm_ioremap_resource(>dev, res); > + base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(base)) > return PTR_ERR(base); > > -- > 2.7.4 > > -- Baolin Wang Best Regards

[PATCH 2/4] hwspinlock: Let the PM runtime can be optional

2019-10-14 Thread Baolin Wang
is not enabled, and removing the return value validating of pm_runtime_put(). So that we can remove some redundant PM runtime code in drivers. Signed-off-by: Baolin Wang --- drivers/hwspinlock/hwspinlock_core.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 4/4] hwspinlock: u8500_hsem: Remove redundant PM runtime implementation

2019-10-14 Thread Baolin Wang
Since the hwspinlock core has changed the PM runtime to be optional, thus remove the redundant PM runtime implementation in the u8500 HWSEM driver. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff

[PATCH 0/4] Some improvements for hwspinlock

2019-10-14 Thread Baolin Wang
This patch set removes the BUG_ON() from hwspinlock core and changes the PM runtime support to be optional. Baolin Wang (4): hwspinlock: Remove BUG_ON() from the hwspinlock core hwspinlock: Let the PM runtime can be optional hwspinlock: sprd: Remove redundant PM runtime implementation

[PATCH 3/4] hwspinlock: sprd: Remove redundant PM runtime implementation

2019-10-14 Thread Baolin Wang
Since the hwspinlock core has changed the PM runtime to be optional, thus remove the redundant PM runtime implementation in the Spreadtrum hwlock driver. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c | 21 +++-- 1 file changed, 3 insertions(+), 18

[PATCH 1/4] hwspinlock: Remove BUG_ON() from the hwspinlock core

2019-10-14 Thread Baolin Wang
The original code use BUG_ON() to validate the parameters when locking or unlocking one hardware lock, but we should not crash the whole kernel though the hwlock parameters are incorrect, instead we can return the error number for users and give some warning. Signed-off-by: Baolin Wang

[PATCH] dmaengine: sprd: Fix the possible memory leak issue

2019-10-09 Thread Baolin Wang
check if current descriptor is completed or not, when freeing the descriptors associated with one channel, if not, we should free it to avoid this issue. Fixes: 9b3b8171f7f4 ("dmaengine: sprd: Add Spreadtrum DMA driver") Reported-by: Zhenfang Wang Tested-by: Zhenfang Wang Signed-off-by: B

[PATCH] pinctrl: sprd: Add PIN_CONFIG_BIAS_DISABLE configuration support

2019-10-08 Thread Baolin Wang
Add PIN_CONFIG_BIAS_DISABLE configuration support for Spreadtrum pin controller. Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c

[PATCH v2 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-10-08 Thread Baolin Wang
The syscon_regmap_lookup_by_phandle() will never return NULL, thus use IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") Signed-off-by: Baolin Wang --- Changes from v1: - Add fixes tag. --- drivers/clk/spr

[PATCH v2 2/2] clk: sprd: Change to use devm_platform_ioremap_resource()

2019-10-08 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- Changes from v1: - None. --- drivers/clk/sprd/common.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-28 Thread Baolin Wang
Hi Stephen, On Sat, 28 Sep 2019 at 02:45, Stephen Boyd wrote: > > Quoting Baolin Wang (2019-09-26 20:50:53) > > The syscon_regmap_lookup_by_phandle() will never return NULL, thus use > > IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). > > > &

Re: [PATCH v3 0/3] Add MMC software queue support

2019-09-27 Thread Baolin Wang
On Thu, 26 Sep 2019 at 20:08, Adrian Hunter wrote: > > On 26/09/19 12:43 PM, Baolin Wang wrote: > > Hi Adrian and Ulf, > > > > On Thu, 19 Sep 2019 at 13:59, Baolin Wang wrote: > >> > >> Hi All, > >> > >> Now the MMC read/write s

[PATCH 2/3] hwspinlock: u8500_hsem: Use devm_kzalloc() to allocate memory

2019-09-27 Thread Baolin Wang
Use devm_kzalloc() to allocate memory. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/hwspinlock/u8500_hsem.c b/drivers/hwspinlock/u8500_hsem.c index c247a87..0e8d4ff 100644

[PATCH 3/3] hwspinlock: u8500_hsem: Use devm_hwspin_lock_register() to register hwlock controller

2019-09-27 Thread Baolin Wang
Use devm_hwspin_lock_register() to register the hwlock controller instead of unregistering the hwlock controller explicitly when removing the device. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git

[PATCH 1/3] hwspinlock: u8500_hsem: Change to use devm_platform_ioremap_resource()

2019-09-27 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/hwspinlock/u8500_hsem.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 0/3] Optimize the u8500_hsem hwlock driver

2019-09-27 Thread Baolin Wang
This patch set did some Optimization with changing to use devm_xxx() APIs to simplify the code and make code more readable. Baolin Wang (3): hwspinlock: u8500_hsem: Change to use devm_platform_ioremap_resource() hwspinlock: u8500_hsem: Use devm_kzalloc() to allocate memory hwspinlock

[PATCH 1/4] hwspinlock: sprd: Change to use devm_platform_ioremap_resource()

2019-09-27 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hwspinlock

[PATCH 4/4] hwspinlock: sprd: Use devm_hwspin_lock_register() to register hwlock controller

2019-09-27 Thread Baolin Wang
Use devm_hwspin_lock_register() to register the hwlock controller instead of unregistering the hwlock controller explicitly when removing the device. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 2/4] hwspinlock: sprd: Check the return value of clk_prepare_enable()

2019-09-27 Thread Baolin Wang
We must check the return value of clk_prepare_enable() to make sure the hardware spinlock controller can be enabled successfully, otherwise we should return error. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 3/4] hwspinlock: sprd: Use devm_add_action_or_reset() for calls to clk_disable_unprepare()

2019-09-27 Thread Baolin Wang
Use devm_add_action_or_reset() for calls to clk_disable_unprepare(), which can simplify the error handling. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/hwspinlock

[PATCH 0/4] Some optimization for Spreadtrum hwlock controller

2019-09-27 Thread Baolin Wang
This patch set did some optimization for Spreadtrum hwlock controller, including using some devm_xxx APIs to simplify code and validating the return value when enabling clock. Baolin Wang (4): hwspinlock: sprd: Change to use devm_platform_ioremap_resource() hwspinlock: sprd: Check the return

[PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-26 Thread Baolin Wang
The syscon_regmap_lookup_by_phandle() will never return NULL, thus use IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). Signed-off-by: Baolin Wang --- drivers/clk/sprd/common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sprd/common.c b

[PATCH 2/2] clk: sprd: Change to use devm_platform_ioremap_resource()

2019-09-26 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/clk/sprd/common.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sprd/common.c b

[PATCH] dmaengine: sprd: Change to use devm_platform_ioremap_resource()

2019-09-26 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers

[PATCH] nvmem: sc27xx: Change to use devm_hwspin_lock_request_specific() to request one hwlock

2019-09-26 Thread Baolin Wang
Change to use devm_hwspin_lock_request_specific() to help to simplify the cleanup code for drivers requesting one hwlock. Thus we can remove the redundant sc27xx_efuse_remove() and platform_set_drvdata(). Signed-off-by: Baolin Wang --- drivers/nvmem/sc27xx-efuse.c | 13 + 1 file

[PATCH] iio: adc: sc27xx: Use devm_hwspin_lock_request_specific() to simplify code

2019-09-26 Thread Baolin Wang
Change to use devm_hwspin_lock_request_specific() to help to simplify the cleanup code for drivers requesting one hwlock. Signed-off-by: Baolin Wang --- drivers/iio/adc/sc27xx_adc.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/iio/adc

Re: [PATCH v3 0/3] Add MMC software queue support

2019-09-26 Thread Baolin Wang
Hi Adrian and Ulf, On Thu, 19 Sep 2019 at 13:59, Baolin Wang wrote: > > Hi All, > > Now the MMC read/write stack will always wait for previous request is > completed by mmc_blk_rw_wait(), before sending a new request to hardware, > or queue a work to complete request, that

Re: [BACKPORT 4.14.y v3 1/3] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-25 Thread Baolin Wang
On Wed, 25 Sep 2019 at 22:05, Waiman Long wrote: > > On 9/25/19 6:01 AM, Baolin Wang wrote: > > From: Waiman Long > > > > [Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf] > > > > Tetsuo Handa had reported he saw an incorrect "downgrading a read

[BACKPORT 4.14.y v3 3/3] power: supply: sysfs: ratelimit property read error message

2019-09-25 Thread Baolin Wang
reading a property that returns an error. Signed-off-by: David Lechner Signed-off-by: Sebastian Reichel Signed-off-by: Baolin Wang --- drivers/power/supply/power_supply_sysfs.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_sysfs.c b

[BACKPORT 4.14.y v3 2/3] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2019-09-25 Thread Baolin Wang
y: Nathan Chancellor Reviewed-by: Baolin Wang Signed-off-by: Linus Walleij Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c in

[BACKPORT 4.14.y v3 1/3] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-25 Thread Baolin Wang
Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-long...@redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Baolin Wang --- kernel/locking/lockde

[BACKPORT 4.14.y v3 0/3] Candidates from Spreadtrum 4.14 product kernel

2019-09-25 Thread Baolin Wang
With Arnd's script [1] help, I found some bugfixes in Spreadtrum 4.14 product kernel, but missing in v4.14.146: 513e1073d52e locking/lockdep: Add debug_locks check in __lock_downgrade() 957063c92473 pinctrl: sprd: Use define directive for sprd_pinconf_params values 87a2b65fc855 power: supply:

[BACKPORT 4.19.y 3/3] power: supply: sysfs: ratelimit property read error message

2019-09-25 Thread Baolin Wang
reading a property that returns an error. Signed-off-by: David Lechner Signed-off-by: Sebastian Reichel Signed-off-by: Baolin Wang --- drivers/power/supply/power_supply_sysfs.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_sysfs.c b

[BACKPORT 4.19.y 2/3] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2019-09-25 Thread Baolin Wang
y: Nathan Chancellor Reviewed-by: Baolin Wang Signed-off-by: Linus Walleij Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c in

[BACKPORT 4.19.y 1/3] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-25 Thread Baolin Wang
Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-long...@redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Baolin Wang --- kernel/locking/lockde

[BACKPORT 4.19.y 0/3] Candidates from Spreadtrum 4.14 product kernel

2019-09-25 Thread Baolin Wang
With Arnd's script [1] help, I found some bugfixes in Spreadtrum 4.14 product kernel, but missing in v4.19.75: 513e1073d52e locking/lockdep: Add debug_locks check in __lock_downgrade() 957063c92473 pinctrl: sprd: Use define directive for sprd_pinconf_params values 87a2b65fc855 power: supply:

Re: [PATCH v3 1/3] mmc: Add MMC software queue support

2019-09-23 Thread Baolin Wang
a note to help > improve the system. BTW, we also suggest to use '--base' option to specify the > base tree in git format-patch, please see > https://stackoverflow.com/a/37406982] > > url: > https://github.com/0day-ci/linux/commits/Baolin-Wang/mmc-Add-MMC-software-qu

[PATCH v3 1/3] mmc: Add MMC software queue support

2019-09-19 Thread Baolin Wang
= sdhci-sprd.o obj-$(CONFIG_MMC_CQHCI)+= cqhci.o +obj-$(CONFIG_MMC_SQHCI)+= sqhci.o ifeq ($(CONFIG_CB710_DEBUG),y) CFLAGS-cb710-mmc += -DDEBUG diff --git a/drivers/mmc/host/sqhci.c b/drivers/mmc/host/sqhci.c new file mode 100644 i

[PATCH v3 3/3] mmc: host: sdhci-sprd: Add software queue support

2019-09-18 Thread Baolin Wang
Add software queue support to improve the performance. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 26 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig

[PATCH v3 2/3] mmc: host: sdhci: Add request_done ops for struct sdhci_ops

2019-09-18 Thread Baolin Wang
Add request_done ops for struct sdhci_ops as a preparation in case some host controllers have different method to complete one request, such as supporting request completion of MMC software queue. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci.c | 12 ++-- drivers/mmc/host

[PATCH v3 0/3] Add MMC software queue support

2019-09-18 Thread Baolin Wang
sqhci.h header file. Baolin Wang (3): mmc: Add MMC software queue support mmc: host: sdhci: Add request_done ops for struct sdhci_ops mmc: host: sdhci-sprd: Add software queue support drivers/mmc/core/block.c | 61 drivers/mmc/core/mmc.c| 13 +- drivers/mmc/core/queue.c

Re: [PATCH v2] serial: sprd: Add polling IO support

2019-09-18 Thread Baolin Wang
t; > Signed-off-by: Lanqing Liu > --- > Change from v1: > - Add poll_init() support. Looks good to me and the KGDB can work well on my board, so feel free to add my tags: Reviewed-by: Baolin Wang Tested-by: Baolin Wang > --- > drivers/tty/serial/sprd_serial.c | 33 ++

Re: [PATCH] serial: sprd: Add polling IO support

2019-09-18 Thread Baolin Wang
ifdef CONFIG_CONSOLE_POLL > + .poll_get_char = sprd_poll_get_char, > + .poll_put_char = sprd_poll_put_char, > +#endif > }; > > #ifdef CONFIG_SERIAL_SPRD_CONSOLE > -- > 1.9.1 > -- Baolin Wang Best Regards

Re: [PATCH] spi: sifive: check return value for platform_get_resource()

2019-09-17 Thread Baolin Wang
); > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + if (!res) { > + dev_err(>dev, "no IOMEM resource found\n"); > + ret = -ENXIO; > + goto put_master; > + } Seems unnecessary, the devm_io

[PATCH] gpio: eic: sprd: Fix the incorrect EIC offset when toggling

2019-09-16 Thread Baolin Wang
From: Bruce Chen When toggling the level trigger to emulate the edge trigger, the EIC offset is incorrect without adding the corresponding bank index, thus fix it. Fixes: 7bf0d7f62282 ("gpio: eic: Add edge trigger emulation for EIC") Signed-off-by: Bruce Chen Signed-off-by: B

[PATCH] dmaengine: sprd: Fix the link-list pointer register configuration issue

2019-09-11 Thread Baolin Wang
. Fixes: 4ac695464763 ("dmaengine: sprd: Support DMA link-list mode") Signed-off-by: Zhenfang Wang Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c ind

[PATCH v2 3/4] mmc: host: sdhci: Add request_done ops for struct sdhci_ops

2019-09-11 Thread Baolin Wang
Add request_done ops for struct sdhci_ops as a preparation in case some host controllers have different method to complete one request, such as supporting request completion of MMC software queue. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci.c | 12 ++-- drivers/mmc/host

[PATCH v2 1/4] mmc: host: cqhci: Move the struct cqhci_slot into header file

2019-09-11 Thread Baolin Wang
The struct cqhci_slot will be used by MMC software queue introducing by following patches, thus move it to the header file. Signed-off-by: Baolin Wang --- drivers/mmc/host/cqhci.c | 10 -- drivers/mmc/host/cqhci.h | 11 ++- 2 files changed, 10 insertions(+), 11 deletions

[PATCH v2 4/4] mmc: host: sdhci-sprd: Add software queue support

2019-09-11 Thread Baolin Wang
Add software queue support to improve the performance. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 26 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig

[PATCH v2 2/4] mmc: Add MMC software queue support

2019-09-11 Thread Baolin Wang
e support */ + int next_tag; + struct mmc_request *mrq; +#endif }; struct cqhci_host_ops { diff --git a/drivers/mmc/host/sqhci.c b/drivers/mmc/host/sqhci.c new file mode 100644 index 000..e9c73d1 --- /dev/null +++ b/drivers/mmc/host/sqhci.c @@ -0,0 +1,345 @@ +// SPDX-License

[PATCH v2 0/4] Add MMC software queue support

2019-09-11 Thread Baolin Wang
for sdhci_ops. - Replace virtual command queue with software queue for functions and variables. - Rename the software queue file and add sqhci.h header file. Baolin Wang (4): mmc: host: cqhci: Move the struct cqhci_slot into header file mmc: Add MMC software queue support mmc: host: sdhci: Add

Re: [BACKPORT 4.14.y v2 2/6] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-10 Thread Baolin Wang
On Tue, 10 Sep 2019 at 22:32, Greg KH wrote: > > On Thu, Sep 05, 2019 at 11:07:14AM +0800, Baolin Wang wrote: > > From: Waiman Long > > > > [Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf] > > > > Tetsuo Handa had reported he saw an incorrect "d

[PATCH v2 2/2] nvmem: sprd: Add Spreadtrum SoCs eFuse support

2019-09-09 Thread Baolin Wang
From: Freeman Liu The Spreadtrum eFuse controller is widely used to dump chip ID, configuration setting, function select and so on, as well as supporting one-time programming. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang --- Changes from v1: - None --- drivers/nvmem/Kconfig

[PATCH v2 1/2] dt-bindings: nvmem: Add Spreadtrum eFuse controller documentation

2019-09-09 Thread Baolin Wang
From: Freeman Liu This patch adds the binding documentation for Spreadtrum eFuse controller. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- Changes from v1: - Add reviewed tag from Rob. --- .../devicetree/bindings/nvmem/sprd-efuse.txt | 39

Re: [PATCH 2/4] mmc: Add virtual command queue support

2019-09-09 Thread Baolin Wang
On Mon, 9 Sep 2019 at 20:45, Adrian Hunter wrote: > > On 9/09/19 3:16 PM, Baolin Wang wrote: > > Hi Adrian, > > > > On Mon, 9 Sep 2019 at 20:02, Adrian Hunter wrote: > >> > >> On 6/09/19 6:52 AM, Baolin Wang wrote: > >>> Now the MMC

Re: [PATCH 2/4] mmc: Add virtual command queue support

2019-09-09 Thread Baolin Wang
Hi Adrian, On Mon, 9 Sep 2019 at 20:02, Adrian Hunter wrote: > > On 6/09/19 6:52 AM, Baolin Wang wrote: > > Now the MMC read/write stack will always wait for previous request is > > completed by mmc_blk_rw_wait(), before sending a new request to hardware, > > or queue a

Re: [PATCH 4/4] mmc: host: sdhci: Add virtual command queue support

2019-09-09 Thread Baolin Wang
Hi Adrian, On Mon, 9 Sep 2019 at 20:04, Adrian Hunter wrote: > > On 6/09/19 6:52 AM, Baolin Wang wrote: > > Add cqhci_virt_finalize_request() to help to complete a request > > from virtual command queue. > > > > Signed-off-by: Baolin Wang > > ---

Re: [BACKPORT 4.14.y v2 5/6] ppp: mppe: Revert "ppp: mppe: Add softdep to arc4"

2019-09-06 Thread Baolin Wang
On Fri, 6 Sep 2019 at 00:16, Eric Biggers wrote: > > On Thu, Sep 05, 2019 at 11:10:45AM +0800, Baolin Wang wrote: > > From: Eric Biggers > > > > [Upstream commit 25a09ce79639a8775244808c17282c491cff89cf] > > > > Commit 0e5a610b5ca5 ("ppp: mppe: swi

[PATCH 3/4] mmc: host: sdhci-sprd: Add virtual command queue support

2019-09-05 Thread Baolin Wang
Add virtual command queue support. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 16 2 files changed, 17 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index e2a12c3..851e947 100644

[PATCH 4/4] mmc: host: sdhci: Add virtual command queue support

2019-09-05 Thread Baolin Wang
Add cqhci_virt_finalize_request() to help to complete a request from virtual command queue. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 4e9ebc8

[PATCH 1/4] mmc: host: cqhci: Move the struct cqhci_slot into header file

2019-09-05 Thread Baolin Wang
The struct cqhci_slot will be used by virtual command queue introducing by following patches, thus move it to the header file. Signed-off-by: Baolin Wang --- drivers/mmc/host/cqhci.c | 10 -- drivers/mmc/host/cqhci.h | 11 ++- 2 files changed, 10 insertions(+), 11 deletions

[PATCH 2/4] mmc: Add virtual command queue support

2019-09-05 Thread Baolin Wang
ead, increasing about 114% for random read, increasing about 81% for sequential write, and increasing about 127% for random write. Moreover we can expand the virtual command queue interface to support MMC packed request or packed command in future. Signed-off-by: Baolin Wang --- drivers/mmc/c

[PATCH 0/4] Add MMC virtual command queue support

2019-09-05 Thread Baolin Wang
write: Speed: 45.1MiB/s, 43.3MiB/s, 42.4MiB/s Average speed: 43.6MiB/s Form above data, we can see the virtual command queue can help to improve the performance obviously. Any comments are welcome. Thanks a lot. Baolin Wang (4): mmc: host: cqhci: Move the struct cqhci_slot into header file

Re: [BACKPORT 4.14.y v2 6/6] serial: sprd: Modify the baud rate calculation formula

2019-09-05 Thread Baolin Wang
Hi Johan, On Thu, 5 Sep 2019 at 17:01, Johan Hovold wrote: > > On Thu, Sep 05, 2019 at 11:11:26AM +0800, Baolin Wang wrote: > > From: Lanqing Liu > > > > [Upstream commit 5b9cea15a3de5d65000d49f626b71b00d42a0577] > > > > When the source clock is not

[PATCH] rtc: sc27xx: Remove clearing SPRD_RTC_POWEROFF_ALM_FLAG flag

2019-09-05 Thread Baolin Wang
bootloader will clear this flag after checking the booting mode. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c index b4eb3b3..46646aa 100644 --- a/drivers/rtc/rtc

[BACKPORT 4.14.y v2 6/6] serial: sprd: Modify the baud rate calculation formula

2019-09-04 Thread Baolin Wang
the actual baud rate less than the expected value and can not meet the external transmission requirements. Thus this patch modifies the baud rate calculation formula to support the serial controller output the maximum baud rate. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang Signed-off

[BACKPORT 4.14.y v2 5/6] ppp: mppe: Revert "ppp: mppe: Add softdep to arc4"

2019-09-04 Thread Baolin Wang
module rather than "arc4", and also due to the direct use of arc4_crypt(), no module soft-dependency is required. So revert the latter commit. Cc: Takashi Iwai Cc: Ard Biesheuvel Signed-off-by: Eric Biggers Signed-off-by: David S. Miller Signed-off-by: Baolin Wang --- drivers/net/p

[BACKPORT 4.14.y v2 4/6] power: supply: sysfs: ratelimit property read error message

2019-09-04 Thread Baolin Wang
reading a property that returns an error. Signed-off-by: David Lechner Signed-off-by: Sebastian Reichel Signed-off-by: Baolin Wang --- drivers/power/supply/power_supply_sysfs.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_sysfs.c b

[BACKPORT 4.14.y v2 3/6] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2019-09-04 Thread Baolin Wang
y: Nathan Chancellor Reviewed-by: Baolin Wang Signed-off-by: Linus Walleij Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/pinctrl-sprd.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c in

[BACKPORT 4.14.y v2 2/6] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-04 Thread Baolin Wang
Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-long...@redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Baolin Wang --- kernel/locking/lockde

[BACKPORT 4.14.y v2 1/6] ip6: fix skb leak in ip6frag_expire_frag_queue()

2019-09-04 Thread Baolin Wang
Signed-off-by: David S. Miller Signed-off-by: Baolin Wang --- include/net/ipv6_frag.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/net/ipv6_frag.h b/include/net/ipv6_frag.h index 28aa9b3..1f77fb4 100644 --- a/include/net/ipv6_frag.h +++ b/include/net/ipv6_frag.h @@ -94,7 +94,6 @@ sta

[BACKPORT 4.14.y v2 0/6] Candidates from Spreadtrum 4.14 product kernel

2019-09-04 Thread Baolin Wang
With Arnd's script [1] help, I found some bugfixes in Spreadtrum 4.14 product kernel, but missing in v4.14.141: 25a09ce79639 ppp: mppe: Revert "ppp: mppe: Add softdep to arc4" 47d3d7fdb10a ip6: fix skb leak in ip6frag_expire_frag_queue() 5b9cea15a3de serial: sprd: Modify the baud rate calculation

Re: [BACKPORT 4.14.y 1/8] drm/i915/fbdev: Actually configure untiled displays

2019-09-04 Thread Baolin Wang
On Thu, 5 Sep 2019 at 01:25, Greg KH wrote: > > On Tue, Sep 03, 2019 at 02:55:26PM +0800, Baolin Wang wrote: > > From: Chris Wilson > > > > If we skipped all the connectors that were not part of a tile, we would > > leave conn_seq=0 and conn_configured=0, convin

Re: [BACKPORT 4.14.y 1/8] drm/i915/fbdev: Actually configure untiled displays

2019-09-04 Thread Baolin Wang
On Wed, 4 Sep 2019 at 21:19, Jani Nikula wrote: > > On Tue, 03 Sep 2019, Baolin Wang wrote: > > From: Chris Wilson > > > > If we skipped all the connectors that were not part of a tile, we would > > leave conn_seq=0 and conn_configured=0, convincing ourselves th

Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Baolin Wang
On Wed, 4 Sep 2019 at 02:33, Greg KH wrote: > > On Tue, Sep 03, 2019 at 11:52:06AM -0300, Marcelo Ricardo Leitner wrote: > > On Tue, Sep 03, 2019 at 02:58:16PM +0800, Baolin Wang wrote: > > > From: Hariprasad Kelam > > > > > > This patch r

Re: [PATCH 0/3] keep console alive even if missing the 'enable' clock

2019-09-03 Thread Baolin Wang
he whole series: Reviewed-by: Baolin Wang Tested-by: Baolin Wang > > Chunyan Zhang (3): > serial: sprd: check the right port and membase > serial: sprd: add console_initcall in sprd's uart driver > serial: sprd: keep console alive even if missing the 'enabl

[BACKPORT 4.14.y 8/8] serial: sprd: Modify the baud rate calculation formula

2019-09-03 Thread Baolin Wang
not meet the external transmission requirements. Thus this patch modifies the baud rate calculation formula to support the serial controller output the maximum baud rate. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang Signed-off-by: Greg Kroah-Hartman Signed-off-by: Baolin Wang --- drivers

[BACKPORT 4.14.y 7/8] ppp: mppe: Revert "ppp: mppe: Add softdep to arc4"

2019-09-03 Thread Baolin Wang
ect use of arc4_crypt(), no module soft-dependency is required. So revert the latter commit. Cc: Takashi Iwai Cc: Ard Biesheuvel Signed-off-by: Eric Biggers Signed-off-by: David S. Miller Signed-off-by: Baolin Wang --- drivers/net/ppp/ppp_mppe.c |1 - 1 file changed, 1 deletion(-) diff --

[BACKPORT 4.14.y 6/8] power: supply: sysfs: ratelimit property read error message

2019-09-03 Thread Baolin Wang
-by: David Lechner Signed-off-by: Sebastian Reichel Signed-off-by: Baolin Wang --- drivers/power/supply/power_supply_sysfs.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index eb5dc74

[BACKPORT 4.14.y 5/8] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2019-09-03 Thread Baolin Wang
st drivers that take advantage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/138 Signed-off-by: Nathan Chancellor Reviewed-by: Baolin Wang Signed-off-by: L

[BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-03 Thread Baolin Wang
-by: Neil Horman Signed-off-by: David S. Miller Signed-off-by: Baolin Wang --- net/sctp/sm_make_chunk.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index f67df16..6dac492 100644 --- a/net/sctp/sm_make_chunk.c

[BACKPORT 4.14.y 3/8] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-03 Thread Baolin Wang
. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-long...@redhat.com Signed-off-by: Ingo Molnar Signed-off-by: Baolin Wang --- kernel/locking/lockdep.c |3 +++ 1 file changed, 3 insertions(+) diff --gi

[BACKPORT 4.14.y 2/8] ip6: fix skb leak in ip6frag_expire_frag_queue()

2019-09-03 Thread Baolin Wang
+0x234/0x330 [296583.091982] [] __do_softirq+0x109/0x2b0 Fixes: d4289fcc9b16 ("net: IP6 defrag: use rbtrees for IPv6 defrag") Signed-off-by: Eric Dumazet Reported-by: Stefan Bader Cc: Peter Oskolkov Cc: Florian Westphal Signed-off-by: David S. Miller Signed-off-by: Baolin Wang --- i

Re: [PATCH 0/6] Optimize the Spreadtrum SC27xx fuel gauge

2019-09-02 Thread Baolin Wang
Hi Sebastian, On Tue, 3 Sep 2019 at 05:04, Sebastian Reichel wrote: > > Hi, > > On Wed, Jul 31, 2019 at 06:00:22PM +0800, Baolin Wang wrote: > > This patch set adds new attributes for userspace, and fixes the the > > accuracy issue of coulomb counter calculatio

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