maker
> 发送时间: 2016年9月2日 2:46
> 收件人: Chunyan Zhang; trond.mykleb...@primarydata.com;
> anna.schuma...@netapp.com; da...@davemloft.net
> 抄送: linux-...@vger.kernel.org; net...@vger.kernel.org;
> linux-kernel@vger.kernel.org; Ke Wang (王科)
> 主题: Re: [PATCH] sunrpc: queue work on syst
On Tue, Jun 7, 2016 at 6:04 PM, Alexander Shishkin
wrote:
> Chunyan Zhang writes:
>
>> This patch is introducing a new function to print Ftrace messages
>> to STM buffer when the traces happen. In order to reduce the
>> effect on timing overhead as much as possible, only
ce' to save the physical
base address of channel region which mmap operation needs to know.
Signed-off-by: Chunyan Zhang
---
drivers/hwtracing/coresight/coresight-stm.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/drivers/hwtracing/coresight/coresight-stm.c
m stm/ftrace.c
* Added Acked-by from Steven Rostedt on 4/4.
Chunyan Zhang (4):
trace: Introduce an output interface from ftrace to STM
STM Ftrace: Adding generic buffer interface driver
trace: duplicate function pointer to STM
stm: Mark the functions of writing buffer with notrace
dr
ed by Philippe Langlais
at ST-Microelectronics a long time ago[1].
[1] http://thread.gmane.org/gmane.linux.kernel/1114274/focus=1114275
Signed-off-by: Chunyan Zhang
---
include/linux/stm.h | 7 +++
include/linux/trace_output_stm.h | 17 +
kernel/trace/Mak
This patch inserts an output from Ftrace to STM, logs the pointer of
the functions and their parents to STM.
Signed-off-by: Chunyan Zhang
---
kernel/trace/trace.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8a4bd6b
This patch adds a driver that models itself as an stm_source and
who's sole purpose is to be an interface to the rest of the
kernel. Once the stm and stm_source have been linked via sysfs,
everything that is passed to the interface will endup in the STM
trace engine.
Signed-off-by: Chunyan
If CONFIG_STM_FTRACE is selected, Function trace data would be
writen to STM buffer, all functions that related to writing data
packets to STM buffer should be marked 'notrace' to avoid being
traced by Ftrace, otherwise the program would stall into an endless loop.
Signed-off-by: Chu
nlink hooks for stm_ftrace.
* Removed useless header file include from stm/ftrace.c
* Added Acked-by from Steven Rostedt on 4/4.
Chunyan Zhang (3):
tracing: add a possibility of exporting function trace to other places
instead of ring buffer only
stm class: ftrace: Add ftrace-export
other destination
rather than ring buffer only, we just need to register a new
trace_export and implement its own .write() function for writing traces
to storage.
With this patch, only Function trace (trace type is TRACE_FN)
is supported.
Signed-off-by: Chunyan Zhang
---
include/linux/trace.h
If CONFIG_STM_FTRACE is selected, Function trace data can be writen
to sink via STM, all functions that related to writing data packets
to STM should be marked 'notrace' to avoid being traced by Ftrace,
otherwise the program would stall into an endless loop.
Signed-off-by: Chunyan Zhang
it);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("stm_ftrace driver");
+MODULE_AUTHOR("Chunyan Zhang ");
--
2.7.4
mpt_enable/disable_notrace instead in
this_cpu_read().
Since Yonghui Yang helped a lot to find the root cause of this problem,
so also add his SOB.
Signed-off-by: Yonghui Yang
Signed-off-by: Chunyan Zhang
---
arch/arm64/include/asm/percpu.h | 8
1 file changed, 4 insertions(+), 4 deletion
mpt_enable/disable_notrace instead in
this_cpu_read().
Since Yonghui Yang helped a lot to find the root cause of this problem,
so also add his SOB.
Signed-off-by: Yonghui Yang
Signed-off-by: Chunyan Zhang
---
arch/arm64/include/asm/percpu.h | 8
1 file changed, 4 insertions(+), 4 deletion
Hi Balbi,
On 8 September 2016 at 20:07, Felipe Balbi wrote:
>
> Hi,
>
> Chunyan Zhang writes:
>> IP blocks allowing a variety of trace sources to log debugging
>> information to a pre-defined area have been introduced on a couple of
>> architecture [1][2]. These s
s,
> Mark.
>
> On Thu, Sep 08, 2016 at 08:46:42PM +0800, Chunyan Zhang wrote:
>> When debug preempt or preempt tracer is enabled, preempt_count_add/sub()
>> can be traced by function and function graph tracing, and
>> preempt_disable/enable() would call preempt_cou
, STM framework driver will stall into a dead loop.
Returning -EACCES (Permission denied) in .packet() if the device is
disabled makes more sense, and this is the same for returning -EINVAL
if the channel passed into is not supported.
Signed-off-by: Chunyan Zhang
---
drivers/hwtracing/core
On 30 August 2016 at 22:30, Steven Rostedt wrote:
> On Tue, 30 Aug 2016 16:07:28 +0800
> Chunyan Zhang wrote:
>
>> Currently Function traces can be only exported to ring buffer, this
>> patch added trace_export concept which can process traces and export
>> them to a r
From: Ke Wang
sunrpc uses workqueue to clean cache regulary. There is no real dependency
of executing work on the cpu which queueing it.
On a idle system, especially for a heterogeneous systems like big.LITTLE,
it is observed that the big idle cpu was woke up many times just to service
this work
ACE_FN) is supported.
Signed-off-by: Chunyan Zhang
---
include/linux/trace.h | 31 +
kernel/trace/trace.c | 124 +-
kernel/trace/trace.h | 31 +
3 files changed, 185 insertions(+), 1 deletion(-)
create mode 100644 include/lin
stm_ftrace.
* Removed useless header file include from stm/ftrace.c
* Added Acked-by from Steven Rostedt on 4/4.
Chunyan Zhang (3):
tracing: add a possibility of exporting function trace to other places
instead of ring buffer only
stm class: ftrace: Add ftrace-export-over-stm driver
stm
If CONFIG_STM_FTRACE is selected, Function trace data can be writen
to sink via STM, all functions that related to writing data packets
to STM should be marked 'notrace' to avoid being traced by Ftrace,
otherwise the program would stall into an endless loop.
Signed-off-by: Chunyan Zhang
This patch adds a driver that models itself as an stm_source and
registers itself as a trace_export. Once the stm and stm_source
have been linked via sysfs, everything that is passed to the
interface from Ftrace subsystem will endup in the STM trace engine.
Signed-off-by: Chunyan Zhang
Removing maxime.coque...@st.com since it seems an unreachable address
On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote:
> IP blocks allowing a variety of trace sources to log debugging
> information to a pre-defined area have been introduced on a couple of
> architecture [1][2]. The
Removing maxime.coque...@st.com since it seems an unreachable address
On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote:
> Currently ring buffer is the only output of Function traces, this patch
> added trace_export concept which would process the traces and export
> traces to a r
Removing maxime.coque...@st.com since it seems an unreachable address
On Tue, Aug 9, 2016 at 2:32 PM, Chunyan Zhang wrote:
> This patch adds a driver that models itself as an stm_source and
> registers itself as a trace_export. Once the stm and stm_source
> have been linked
Hi Stephen,
On 20 June 2017 at 09:25, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> In the last cycle, the patches support Whale2 sc9860 mobile chip have been
>> merged. This patchset adds clock driver which is used on almost all
>> Spreadtrum SoCs.
>&
On 20 June 2017 at 09:29, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> Added Spreadtrum's clock driver common structure and registration code.
>>
>> Signed-off-by: Chunyan Zhang
>> ---
>> drivers/clk/Makefile | 1 +
>> drivers/c
On 20 June 2017 at 09:31, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile
>> index 8f802b2..333e2b2 100644
>> --- a/drivers/clk/sprd/Makefile
>> +++ b/drivers/clk/sprd/Makefile
>> @@ -1
On 20 June 2017 at 09:37, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile
>> index 83232e5..c593a93 100644
>> --- a/drivers/clk/sprd/Makefile
>> +++ b/drivers/clk/sprd/Makefile
>> @@ -1
Hi Stephen,
On 20 June 2017 at 09:41, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile
>> index c593a93..0d90b40 100644
>> --- a/drivers/clk/sprd/Makefile
>> +++ b/drivers/clk/sprd/Makefile
&
Hi Stephen,
On 20 June 2017 at 09:24, Stephen Boyd wrote:
> On 06/18, Chunyan Zhang wrote:
>> diff --git a/arch/arm64/boot/dts/sprd/sc9860-ccu.dtsi
>> b/arch/arm64/boot/dts/sprd/sc9860-ccu.dtsi
>> new file mode 100644
>> index 000..e15bf2d
>> --- /dev/null
Hi Arnd,
On 22 June 2017 at 19:15, Arnd Bergmann wrote:
> On Thu, Jun 22, 2017 at 12:17 PM, Chunyan Zhang wrote:
>> On 20 June 2017 at 09:37, Stephen Boyd wrote:
>>> On 06/18, Chunyan Zhang wrote:
>
>>>> + kint = DIV_ROUND_CLOSEST(((fvco -
Move the fixed clocks out from the soc node.
- Switch to use 64-bit math in pll driver instead of 32-bit math.
* Revise binding documentation according to dt modification.
* Rename sc9860.c to sc9860-clk.c
Chunyan Zhang (11):
drivers: move clock common macros out from vendor directories
d
These macros are used by more than one SoC vendor platforms, avoid to
have many copies of these code, this patch moves them to the common
clock directory which every clock drivers can access to.
Signed-off-by: Chunyan Zhang
---
drivers/clk/clk_common.h | 60
Some clocks on the Spreadtrum's SoCs are just simple gates. Add
support for those clocks.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Makefile | 1 +
drivers/clk/sprd/gate.c | 106 ++
drivers/clk/sprd/gate.h
Introduce a new binding with its documentation for Spreadtrum clock
sub-framework.
Signed-off-by: Chunyan Zhang
---
Documentation/devicetree/bindings/clock/sprd.txt | 55
1 file changed, 55 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock
This is a feature that can also be found in sprd composite clocks,
provide a bunch of helpers that can be reused later on.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Makefile | 1 +
drivers/clk/sprd/div.c| 100 ++
drivers/clk/sprd/div.h
Introduced a common adjustable pll clock driver for Spreadtrum SoCs.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Makefile | 1 +
drivers/clk/sprd/pll.c| 268 ++
drivers/clk/sprd/pll.h| 110 +++
3 files changed, 379
This patch added the list of clocks for Spreadtrum's SC9860 SoC,
together with clock initialization code.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Kconfig| 10 +
drivers/clk/sprd/Makefile |3 +
drivers/clk/sprd/sc9860-
Some clocks on SC9860 are in the same address area with syscon devices,
those are what have a property of 'sprd,syscon' which would refer to
syscon devices, others would have a reg property indicated their address
ranges.
Signed-off-by: Chunyan Zhang
---
arch/arm64/boot/dts/sprd/s
Some clocks on the SoC of Whale2 families (e.g. SC9860) are in the same
address area with syscon devices, the proper syscon node will be
quoted under the definitions of those clocks in DT.
Signed-off-by: Chunyan Zhang
---
arch/arm64/boot/dts/sprd/whale2.dtsi | 46
This patch introduced composite driver for Spreadtrum's SoCs. The
functions of this composite clock simply consist of divider and
mux clocks.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Makefile| 1 +
drivers/clk/sprd/composite.c
This patch adds clock multiplexor support for Spreadtrum platforms,
the mux clocks also can be found in sprd composite clocks, so
provides two helpers that can be reused later on.
Signed-off-by: Chunyan Zhang
---
drivers/clk/sprd/Makefile | 1 +
drivers/clk/sprd/mux.c| 89
Added Spreadtrum's clock driver framework together with common
structures and interface functions.
Signed-off-by: Chunyan Zhang
---
drivers/clk/Kconfig | 1 +
drivers/clk/Makefile | 1 +
drivers/clk/sprd/Kconfig | 4 ++
drivers/clk/sprd/Makefile | 3 ++
drivers/clk
On 3 November 2017 at 02:22, Julien Thierry wrote:
>
>
> On 02/11/17 18:11, Julien Thierry wrote:
>>
>> Hi,
>>
>> On 02/11/17 06:56, Chunyan Zhang wrote:
>>>
>>> This patch adds clock multiplexor support for Spreadtrum platforms,
>>> t
Hi Julien,
On 3 November 2017 at 01:45, Julien Thierry wrote:
> Hi,
>
>
> On 02/11/17 06:56, Chunyan Zhang wrote:
>>
>> Some clocks on the Spreadtrum's SoCs are just simple gates. Add
>> support for those clocks.
>>
>> Signed-off-by: Chunyan Zha
Hi Julien,
On 3 November 2017 at 02:11, Julien Thierry wrote:
> Hi,
>
>
> On 02/11/17 06:56, Chunyan Zhang wrote:
>>
>> This patch adds clock multiplexor support for Spreadtrum platforms,
>> the mux clocks also can be found in sprd composite clocks, so
>> pro
1 indicates two pairs, and so on ...
So, the total number of resource selection control registers which we can
access is (TRCIDR4.NUMRSPAIR * 2)
Signed-off-by: Chunyan Zhang
---
drivers/hwtracing/coresight/coresight-etm4x.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-
Hello Shuah,
Can this patch be allowed to merge into next realse?
Thanks,
Chunyan
On Thu, Oct 1, 2015 at 3:33 PM, Chunyan Zhang wrote:
> There is a mandate of 16-byte aligned stack on AArch64 [1], so the
> STACK_SIZE here should also be 16-byte aligned, otherwise we would
> get an e
There is a mandate of 16-byte aligned stack on AArch64 [1], so the
STACK_SIZE here should also be 16-byte aligned, otherwise we would
get an error when calling clone().
[1] http://lxr.free-electrons.com/source/arch/arm64/kernel/process.c#L265
Signed-off-by: Chunyan Zhang
---
tools/testing
Hi Adrian,
On 30 July 2018 at 21:05, Adrian Hunter wrote:
> On 24/07/18 05:51, Chunyan Zhang wrote:
>> Host Controller Version 4.10 re-defines SDMA System Address register
>> as 32-bit Block Count for v4 mode, and SDMA uses ADMA System
>> Address register (05Fh-058h)
On 21 June 2018 at 18:49, Adrian Hunter wrote:
> On 15/06/18 05:04, Chunyan Zhang wrote:
>> For SD host controller version 4.00 or later ones, there're two
>> modes of implementation - Version 3.00 compatible mode or
>> Version 4 mode. This patch introduces a flag to
On 27 August 2018 at 15:07, Adrian Hunter wrote:
> On 24/08/18 12:20, Chunyan Zhang wrote:
>> Host Controller Version 4.10 re-defines SDMA System Address register
>> as 32-bit Block Count for v4 mode, and SDMA uses ADMA System
>> Address register (05Fh-058h) instead if v4
On 27 August 2018 at 18:07, Ulf Hansson wrote:
> On 23 August 2018 at 14:50, Adrian Hunter wrote:
>> On 16/08/18 10:54, Chunyan Zhang wrote:
>>> For version 4.10 and aboves, SDHCI_ARGUMENT2 is also uses to indicate
>>> 32-bit number of blocks, it doesn't s
rg/lkml/2018/8/24/205
v5: https://lkml.org/lkml/2018/8/16/122
v4: https://lkml.org/lkml/2018/7/23/269
v3: https://lkml.org/lkml/2018/7/8/239
v2: https://lkml.org/lkml/2018/6/14/936
v1: https://lkml.org/lkml/2018/6/8/108
Chunyan Zhang (9):
mmc: sdhci: Add version V4 definition
mmc: sdhci: Add sd host v4
Added definitions for v400, v410, v420.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 2 +-
drivers/mmc/host/sdhci.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 97e4efa..01bf88c 100644
--- a
According to the SD host controller specification version 4.10, when
Host Version 4 is enabled, SDMA uses ADMA System Address register
(05Fh-058h) instead of using SDMA System Address register to
support both 32-bit and 64-bit addressing.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host
For SD host controller version 4.00 or later ones, there're two
modes of implementation - Version 3.00 compatible mode or
Version 4 mode. This patch introduced an interface to enable
v4 mode.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 29 +
dr
From: Chunyan Zhang
This patch adds the device-tree binding documentation for Spreadtrum
SDHCI driver.
Signed-off-by: Chunyan Zhang
---
.../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/devicetree
.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 62d843ac90..ac92e0f 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3834,10
via Host Control 2
register.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 92 +++-
drivers/mmc/host/sdhci.h | 12 +--
2 files changed, 78 insertions(+), 26 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
23 is used and if CMD23 Enable =0, Auto CMD12 is
used. In case of Version 4.10 or later, use of Auto CMD Auto Select is
recommended rather than use of Auto CMD12 Enable or Auto CMD23
Enable.
This patch add this new mode support.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sd
From: Chunyan Zhang
This patch adds the initial support of Secure Digital Host Controller
Interface compliant controller found in some latest Spreadtrum chipsets.
This patch has been tested on the version of SPRD-R11 controller.
R11 is a variant based on SD v4.0 specification.
With this driver
Block Count would cause problems for auto-cmd23,
it can be chosen via host->quirk2.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 14 +-
drivers/mmc/host/sdhci.h | 8
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.
On 29 August 2018 at 18:59, Adrian Hunter wrote:
> On 29/08/18 10:03, Chunyan Zhang wrote:
>> When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address
>> register (05Fh-058h) instead of using register (000h-004h) to indicate
>> its system address of data locatio
On 30 August 2018 at 13:59, Adrian Hunter wrote:
> On 29/08/18 14:39, Chunyan Zhang wrote:
>> On 29 August 2018 at 18:59, Adrian Hunter wrote:
>>> On 29/08/18 10:03, Chunyan Zhang wrote:
>>>> When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address
>
According to the SD host controller specification version 4.10, when
Host Version 4 is enabled, SDMA uses ADMA System Address register
(05Fh-058h) instead of using SDMA System Address register to
support both 32-bit and 64-bit addressing.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
For SD host controller version 4.00 or later ones, there're two
modes of implementation - Version 3.00 compatible mode or
Version 4 mode. This patch introduced an interface to enable
v4 mode.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
---
drivers/mmc/host/sdhci.c
Block Count would cause problems for auto-cmd23,
it can be chosen via host->quirk2.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
---
drivers/mmc/host/sdhci.c | 14 +-
drivers/mmc/host/sdhci.h | 8
2 files changed, 21 insertions(+), 1 deletion(-)
diff --gi
23 is used and if CMD23 Enable =0, Auto CMD12 is
used. In case of Version 4.10 or later, use of Auto CMD Auto Select is
recommended rather than use of Auto CMD12 Enable or Auto CMD23
Enable.
This patch add this new mode support.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
---
driver
From: Chunyan Zhang
This patch adds the device-tree binding documentation for Spreadtrum
SDHCI driver.
Signed-off-by: Chunyan Zhang
---
.../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/devicetree
.
Signed-off-by: Chunyan Zhang
---
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 62d843ac90..606d331 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3834,10
Added definitions for v400, v410, v420.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
---
drivers/mmc/host/sdhci.c | 2 +-
drivers/mmc/host/sdhci.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 97e4efa
From: Chunyan Zhang
This patch adds the initial support of Secure Digital Host Controller
Interface compliant controller found in some latest Spreadtrum chipsets.
This patch has been tested on the version of SPRD-R11 controller.
R11 is a variant based on SD v4.0 specification.
With this driver
6/14/936
v1: https://lkml.org/lkml/2018/6/8/108
Chunyan Zhang (9):
mmc: sdhci: Add version V4 definition
mmc: sdhci: Add sd host v4 mode
mmc: sdhci: Change SDMA address register for v4 mode
mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode
mmc: sdhci: Add 32-bit block count support
via Host Control 2
register.
Signed-off-by: Chunyan Zhang
Acked-by: Adrian Hunter
---
drivers/mmc/host/sdhci.c | 92 +++-
drivers/mmc/host/sdhci.h | 12 +--
2 files changed, 78 insertions(+), 26 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b
On 30 August 2018 at 15:51, Adrian Hunter wrote:
> On 30/08/18 10:04, Chunyan Zhang wrote:
>> On 30 August 2018 at 13:59, Adrian Hunter wrote:
>>> On 29/08/18 14:39, Chunyan Zhang wrote:
>>>> On 29 August 2018 at 18:59, Adrian Hunter wrote:
>>>&g
On 23 August 2018 at 20:55, Adrian Hunter wrote:
> On 16/08/18 10:54, Chunyan Zhang wrote:
>> As SD Host Controller Specification v4.10 documents:
>> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode.
>> Selection of Auto CMD depends on sett
iver;
- Added sdhci_sprd_request() function to hook to mmc_host_ops.request.
Previous patch series:
v5: https://lkml.org/lkml/2018/8/16/122
v4: https://lkml.org/lkml/2018/7/23/269
v3: https://lkml.org/lkml/2018/7/8/239
v2: https://lkml.org/lkml/2018/6/14/936
v1: https://lkml.org/lkml/2018/6/8/108
Chunyan Zha
Added definitions for v400, v410, v420.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 2 +-
drivers/mmc/host/sdhci.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 8793340..f70135c 100644
--- a
For SD host controller version 4.00 or later ones, there're two
modes of implementation - Version 3.00 compatible mode or
Version 4 mode. This patch introduced an interface to enable
v4 mode.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 29 +
dr
via Host Control 2
register.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 92 +++-
drivers/mmc/host/sdhci.h | 12 +--
2 files changed, 78 insertions(+), 26 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
23 is used and if CMD23 Enable =0, Auto CMD12 is
used. In case of Version 4.10 or later, use of Auto CMD Auto Select is
recommended rather than use of Auto CMD12 Enable or Auto CMD23
Enable.
This patch add this new mode support.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sd
Block Count would cause problems for auto-cmd23,
it can be chosen via host->quirk2.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 15 ++-
drivers/mmc/host/sdhci.h | 3 +++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.c b/driv
According to the SD host controller specification version 4.10, when
Host Version 4 is enabled, SDMA uses ADMA System Address register
(05Fh-058h) instead of using SDMA System Address register to
support both 32-bit and 64-bit addressing.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host
From: Chunyan Zhang
This patch adds the device-tree binding documentation for Spreadtrum
SDHCI driver.
Signed-off-by: Chunyan Zhang
---
.../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++
1 file changed, 41 insertions(+)
create mode 100644 Documentation/devicetree
.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 7e01601..1cb55f2 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3828,10
From: Chunyan Zhang
This patch adds the initial support of Secure Digital Host Controller
Interface compliant controller found in some latest Spreadtrum chipsets.
This patch has been tested on the version of SPRD-R11 controller.
R11 is a variant based on SD v4.0 specification.
With this driver
On 17 July 2018 at 19:16, Adrian Hunter wrote:
> On 09/07/18 06:19, Chunyan Zhang wrote:
>> As SD Host Controller Specification v4.10 documents:
>> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode.
>> Selection of Auto CMD depends on sett
On 17 July 2018 at 16:29, Adrian Hunter wrote:
> On 09/07/18 06:19, Chunyan Zhang wrote:
>> When Host Version 4 is enabled, SDMA System Address register is
>> re-defined as 32-bit Block Count, and SDMA uses ADMA System
>> Address register (05Fh-058h) instead.
>>
>
Hi Adrian,
On 30 July 2018 at 21:06, Adrian Hunter wrote:
> On 23/07/18 13:08, Chunyan Zhang wrote:
>> As SD Host Controller Specification v4.10 documents:
>> Host Controller Version 4.10 defines this "Auto CMD Auto Select" mode.
>> Selection of Auto CMD depends on
On 31 July 2018 at 16:05, Adrian Hunter wrote:
> On 31/07/18 10:04, Chunyan Zhang wrote:
>> Hi Adrian,
>>
>> On 30 July 2018 at 21:06, Adrian Hunter wrote:
>>> On 23/07/18 13:08, Chunyan Zhang wrote:
>>>> As SD Host Controller Specification v4.10 do
On 31 July 2018 at 16:56, Adrian Hunter wrote:
> On 31/07/18 11:36, Chunyan Zhang wrote:
>> On 31 July 2018 at 16:05, Adrian Hunter wrote:
>>> On 31/07/18 10:04, Chunyan Zhang wrote:
>>>> Hi Adrian,
>>>>
>>>> On 30 July 2018 at 21:06, Adrian
On 31 July 2018 at 16:56, Adrian Hunter wrote:
> On 31/07/18 11:36, Chunyan Zhang wrote:
>> On 31 July 2018 at 16:05, Adrian Hunter wrote:
>>> On 31/07/18 10:04, Chunyan Zhang wrote:
>>>> Hi Adrian,
>>>>
>>>> On 30 July 2018 at 21:06, Adrian
On 31 July 2018 at 17:36, Adrian Hunter wrote:
> On 31/07/18 12:20, Chunyan Zhang wrote:
>> On 31 July 2018 at 16:56, Adrian Hunter wrote:
>>> On 31/07/18 11:36, Chunyan Zhang wrote:
>>>> On 31 July 2018 at 16:05, Adrian Hunter wrote:
>>>>> On 3
sdio clock;
- Removed unuseful print;
- Removed two functions which are not used;
- Add back the missing pm_runtime_put_autosuspend() after adding sdhci host.
* Changed Spreadtrum sdhci driver name to sdhci-sprd.
Chunyan Zhang (7):
mmc: sdhci: add sd host v4 mode
mmc: sdhci: Change SDMA ad
According to the SD host controller specification version 4.10, when
Host Version 4 is enabled, SDMA uses ADMA System Address register
(05Fh-058h) instead of using SDMA System Address register to
support both 32-bit and 64-bit addressing.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host
via Host Control 2
register.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 90 ++--
drivers/mmc/host/sdhci.h | 15 ++--
2 files changed, 78 insertions(+), 27 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
For SD host controller version 4.00 or later ones, there're two
modes of implementation - Version 3.00 compatible mode or
Version 4 mode. This patch introduced an interface to enable
v4 mode.
Signed-off-by: Chunyan Zhang
---
drivers/mmc/host/sdhci.c | 28
dr
1 - 100 of 869 matches
Mail list logo