[linux-sunxi] Re: [PATCH v10 03/15] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-05-05 Thread Ulf Hansson
, +}; +module_platform_driver(sunxi_mmc_driver); + +MODULE_DESCRIPTION(Allwinner's SD/MMC Card Controller Driver); +MODULE_LICENSE(GPL v2); +MODULE_AUTHOR(David Lanzendörfer david.lanzendoer...@o2s.ch); +MODULE_ALIAS(platform:sunxi-mmc); -- 1.9.0 Kind regards Ulf Hansson -- You received

[linux-sunxi] Re: [PATCH v10 03/15] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-05-05 Thread Ulf Hansson
[snip] On 05/05/2014 02:41 PM, Ulf Hansson wrote: +struct sunxi_mmc_host { + struct mmc_host *mmc; + struct regulator *vmmc; Instead of having a specific regulator for this driver, please use the mmc_regulator_get_supply API. We cannot use mmc_regulator_get_supply because

[linux-sunxi] Re: [PATCH v12 1/6] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-05-12 Thread Ulf Hansson
--; + } + + clk_sunxi_mmc_phase_control(hw, sclk_dly, oclk_dly); + + return sunxi_mmc_oclk_onoff(host, 1); +} + [snip] Besides the above, I think this looks good! Kind regards Ulf Hansson -- You received this message because you are subscribed to the Google Groups linux-sunxi

[linux-sunxi] Re: [PATCH v12 1/6] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-05-12 Thread Ulf Hansson
On 12 May 2014 13:20, Hans de Goede hdego...@redhat.com wrote: Hi, On 05/12/2014 11:15 AM, Ulf Hansson wrote: On 11 May 2014 09:46, Hans de Goede hdego...@redhat.com wrote: From: David Lanzendörfer david.lanzendoer...@o2s.ch The Allwinner sunxi mmc host uses dma in bus-master mode using

[linux-sunxi] Re: [PATCH v13 2/2] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-05-14 Thread Ulf Hansson
will include this in the next PR I send to Chris, I will also take the liberty to fixup the commit msg as pointed out by Arend. Kind regards Ulf Hansson -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails

[linux-sunxi] Re: [PATCH v13 1/2] clk: sunxi: Fixup clk_sunxi_mmc_phase_control to take a clk rather then a hw_clk

2014-05-14 Thread Ulf Hansson
On 12 May 2014 14:04, Hans de Goede hdego...@redhat.com wrote: __clk_get_hw is supposed to be used by clk providers, not clk consumers. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Ulf Hansson ulf.hans...@linaro.org --- drivers/clk/sunxi/clk-sunxi.c | 3 ++- include/linux

Re: [linux-sunxi] [PATCH v2 1/4] dt: bindings: mmc: Document the practice of using subnodes for slots

2014-06-02 Thread Ulf Hansson
with a decision on how-to represent non probable info for sdio devices in device nodes. So do you have any other remarks other then that the slot subnode should be dropped ? And if not can you please review and ack (*) v3 of this patch-set once I've send it? Chris Ball and Ulf Hansson, what is your

Re: [linux-sunxi] [PATCH v2 1/4] dt: bindings: mmc: Document the practice of using subnodes for slots

2014-06-02 Thread Ulf Hansson
On 2 June 2014 10:38, Jaehoon Chung jh80.ch...@samsung.com wrote: On 06/02/2014 05:29 PM, Ulf Hansson wrote: On 1 June 2014 11:23, Hans de Goede hdego...@redhat.com wrote: Hi, On 05/31/2014 10:13 PM, Olof Johansson wrote: On Sat, May 31, 2014 at 12:03 PM, Hans de Goede hdego...@redhat.com

Re: [linux-sunxi] [PATCH v2 1/4] dt: bindings: mmc: Document the practice of using subnodes for slots

2014-06-02 Thread Ulf Hansson
On 2 June 2014 10:46, Jaehoon Chung jh80.ch...@samsung.com wrote: On 06/02/2014 05:38 PM, Jaehoon Chung wrote: On 06/02/2014 05:29 PM, Ulf Hansson wrote: On 1 June 2014 11:23, Hans de Goede hdego...@redhat.com wrote: Hi, On 05/31/2014 10:13 PM, Olof Johansson wrote: On Sat, May 31, 2014

Re: [linux-sunxi] [PATCH v2 1/4] dt: bindings: mmc: Document the practice of using subnodes for slots

2014-06-03 Thread Ulf Hansson
On 3 June 2014 03:50, Jaehoon Chung jh80.ch...@samsung.com wrote: +Suegnwon Jeon On 06/02/2014 05:48 PM, Ulf Hansson wrote: On 2 June 2014 10:38, Jaehoon Chung jh80.ch...@samsung.com wrote: On 06/02/2014 05:29 PM, Ulf Hansson wrote: On 1 June 2014 11:23, Hans de Goede hdego...@redhat.com

[linux-sunxi] Re: [PATCH resend v3 0/2] mmc: Add SDIO function devicetree subnode parsing

2015-01-02 Thread Ulf Hansson
On 30 June 2014 at 11:07, Hans de Goede hdego...@redhat.com wrote: Hi All, Here is a resend of 3 of my submission of Sascha Hauer's mmc: Add SDIO function devicetree subnode parsing patch. Can we please get some movement on these patches, either a review specifying why this cannot go

[linux-sunxi] Re: [PATCH 1/2] mmc: Add support for marking hpi as broken through devicetree

2015-03-30 Thread Ulf Hansson
On 29 March 2015 at 20:09, Hans de Goede hdego...@redhat.com wrote: The eMMC on a tablet I've will stop working / communicating as soon as the kernel executes: mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HPI_MGMT, 1,

Re: [linux-sunxi] [PATCH v3 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-25 Thread Ulf Hansson
On 12 August 2015 at 16:49, Hans de Goede hdego...@redhat.com wrote: Hi, On 08/12/2015 03:29 PM, Michal Suchanek wrote: The 250ms timeout is too short. On my system enabling the oclk takes under 50ms and disabling slightly over 100ms when idle. Under load disabling the clock can take over

[linux-sunxi] Re: [PATCH] mmc: sunxi: Fix clk-delay settings

2015-09-23 Thread Ulf Hansson
On 23 September 2015 at 22:06, Hans de Goede wrote: > In recent allwinner kernel sources the mmc clk-delay settings have been > slightly tweaked, and for sun9i they are completely different then what > we are using. > > This commit brings us in sync with what allwinner does,

[linux-sunxi] Re: [PATCH RFC 03/15] mmc: sunxi: Block signal voltage switching (CMD11)

2016-01-29 Thread Ulf Hansson
On 21 January 2016 at 06:26, Chen-Yu Tsai wrote: > Allwinner's mmc controller supports signal voltage switching. This is > supported in code in Allwinner's kernel. However, publicly available > boards all tie it to a fixed 3.0/3.3V regulator, with options to tie > it to 1.8V for

[linux-sunxi] Re: [PATCH RFC 01/15] mmc: sunxi: Document host init sequence

2016-01-29 Thread Ulf Hansson
On 21 January 2016 at 06:26, Chen-Yu Tsai wrote: > sunxi_mmc_init_host() originated from Allwinner kernel sources. The > magic numbers written to various registers was never documented. > > Add comments for values found in Allwinner user manuals. > > Signed-off-by: Chen-Yu Tsai

[linux-sunxi] Re: [PATCH RFC 04/15] mmc: sunxi: Support vqmmc regulator

2016-01-29 Thread Ulf Hansson
On 21 January 2016 at 06:26, Chen-Yu Tsai wrote: > eMMC chips require 2 power supplies, vmmc for internal logic, and vqmmc > for driving output buffers. vqmmc also controls signaling voltage. Most > boards we've seen use the same regulator for both, nevertheless the 2 > have

[linux-sunxi] Re: [PATCH RFC 02/15] mmc: sunxi: Return error on mmc_regulator_set_ocr() fail in .set_ios op

2016-01-29 Thread Ulf Hansson
On 21 January 2016 at 06:26, Chen-Yu Tsai wrote: > Let .set_ios() fail if mmc_regulator_set_ocr() fails to enable and set a > proper voltage for vmmc. > > Signed-off-by: Chen-Yu Tsai Thanks, applied for next! Kind regards Uffe > --- >

[linux-sunxi] Re: [PATCH 0/3] mmc: sunxi: Support eMMC DDR modes

2016-02-02 Thread Ulf Hansson
On 29 January 2016 at 18:21, Chen-Yu Tsai wrote: > Hi everyone, > > This was "mmc: sunxi: Support vqmmc regulator and eMMC DDR modes". vqmmc > support and DT patches were merged even though it was an RFC series, to > my suprise. > > These are the remaining patches that add eMMC

[linux-sunxi] Re: [PATCH RESEND] mmc: sunxi: Check the value returned by clk_round_rate

2016-08-22 Thread Ulf Hansson
On 13 August 2016 at 18:01, Jean-Francois Moine wrote: > clk_round_rate() may return an error. Check it. > > Signed-off-by: Jean-Francois Moine > Acked-by: Maxime Ripard Please re-spins this as it doesn't apply cleanly due to

[linux-sunxi] Re: [PATCH RESEND] mmc: sunxi: Check the value returned by clk_round_rate

2016-08-24 Thread Ulf Hansson
On 23 August 2016 at 10:51, Jean-Francois Moine wrote: > clk_round_rate() may return an error. Check it. > > Signed-off-by: Jean-Francois Moine > Acked-by: Maxime Ripard Thanks, applied for next! For some reason this patch

[linux-sunxi] Re: [PATCH] mmc: sunxi: change controller error info to debug level

2017-03-24 Thread Ulf Hansson
On 16 March 2017 at 14:29, Icenowy Zheng wrote: > The controller's errors are usually normal (for example, for MMC or SDIO > cards, some errors are expected to happen; and for boards without a > dedicated card detect pin the error info will even flood console and > hide other

[linux-sunxi] Re: [PATCH v3 00/10] ARM: sun8i: a83t: Add support for MMC controllers

2017-08-03 Thread Ulf Hansson
On 26 July 2017 at 21:45, Maxime Ripard wrote: > On Wed, Jul 26, 2017 at 10:09:41PM +0800, Chen-Yu Tsai wrote: >> On Mon, Jul 24, 2017 at 9:58 PM, Chen-Yu Tsai wrote: >> > Hi everyone, >> > >> > This is v3 of my MMC controller support series. >> >

[linux-sunxi] Re: [PATCH 04/11] mmc: sunxi: Keep default timing phase settings for new timing mode

2017-07-17 Thread Ulf Hansson
+stable On 14 July 2017 at 08:42, Chen-Yu Tsai wrote: > The register for the "new timing mode" also has bit fields for setting > output and sample timing phases. According to comments in Allwinner's > BSP kernel, the default values are good enough. > > Keep the default values

[linux-sunxi] Re: [PATCH 04/11] mmc: sunxi: Keep default timing phase settings for new timing mode

2017-07-14 Thread Ulf Hansson
On 14 July 2017 at 08:42, Chen-Yu Tsai wrote: > The register for the "new timing mode" also has bit fields for setting > output and sample timing phases. According to comments in Allwinner's > BSP kernel, the default values are good enough. > > Keep the default values already in

[linux-sunxi] Re: [PATCH 05/11] mmc: sunxi: Support controllers that can use both old and new timings

2017-07-14 Thread Ulf Hansson
On 14 July 2017 at 11:40, Chen-Yu Tsai <w...@csie.org> wrote: > On Fri, Jul 14, 2017 at 5:26 PM, Ulf Hansson <ulf.hans...@linaro.org> wrote: >> On 14 July 2017 at 08:42, Chen-Yu Tsai <w...@csie.org> wrote: >>> On the SoCs that introduced the new timing mode f

[linux-sunxi] Re: [PATCH v2] mmc: sunxi: fix support for new timings mode only SoCs

2017-08-08 Thread Ulf Hansson
On 8 August 2017 at 09:09, Icenowy Zheng wrote: > The A83T MMC support code introduces the timings mode switch, however > such a switch doesn't exist on new SoCs with only new timings mode. > > Only execute the switch if the SoC really have the timings mode switch, > to fix the

[linux-sunxi] Re: [PATCH v2] mmc: sunxi: Fix NULL pointer reference on clk_delays

2017-08-08 Thread Ulf Hansson
On 8 August 2017 at 09:02, Chen-Yu Tsai wrote: > Some SoCs do not support clk delays for MMC in the clock control unit. > These include the old controllers in A10/A10s/A13/R8, and the new eMMC > controller in A64. The config structure for these controllers do not > specify

[linux-sunxi] Re: [PATCH v3 00/10] ARM: sun8i: a83t: Add support for MMC controllers

2017-08-03 Thread Ulf Hansson
On 3 August 2017 at 13:25, Chen-Yu Tsai <w...@csie.org> wrote: > On Thu, Aug 3, 2017 at 7:19 PM, Ulf Hansson <ulf.hans...@linaro.org> wrote: >> On 26 July 2017 at 21:45, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote: >>> On Wed, Jul 26, 20

[linux-sunxi] Re: [PATCH] mmc: sunxi: Fix clock rate passed to sunxi_mmc_clk_set_phase

2017-08-21 Thread Ulf Hansson
On 10 August 2017 at 05:29, Chen-Yu Tsai wrote: > sunxi_mmc_clk_set_phase expects the actual card clock rate to be passed > to it. When the internal divider code was reworked in commit 9a639c6073d3 > ("mmc: sunxi: Support MMC DDR52 transfer mode with new timing mode"), > this

[linux-sunxi] Re: [PATCH 1/3] mmc: sunxi: add support for the MMC controller on H6

2018-05-02 Thread Ulf Hansson
On 26 April 2018 at 16:07, Icenowy Zheng wrote: > The new Allwinner H6 SoC have 3 MMC controllers. The first and second > ones are similar to the ones on A64, but the third one adds EMCE > (Embedded Crypto Engine) support which does hardware transparent crypto > on the eMMC. > >

[linux-sunxi] Re: [PATCH v2 1/3] mmc: sunxi: Disable HS-DDR mode for H5 eMMC controller by default

2019-02-06 Thread Ulf Hansson
On Tue, 5 Feb 2019 at 16:42, Chen-Yu Tsai wrote: > > Some H5 boards seem to not have proper trace lengths for eMMC to be able > to use the default setting for the delay chains under HS-DDR mode. These > include the Bananapi M2+ H5 and NanoPi NEO Core2. However the Libre > Computer ALL-H3-CC-H5

[linux-sunxi] Re: [PATCH v2 2/3] mmc: sunxi: Filter out unsupported modes declared in the device tree

2019-02-06 Thread Ulf Hansson
On Tue, 5 Feb 2019 at 16:42, Chen-Yu Tsai wrote: > > The MMC device tree bindings include properties used to signal various > signalling speed modes. Until now the sunxi driver was accepting them > without any further filtering, while the sunxi device trees were not > actually using them. > >

[linux-sunxi] Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR

2019-08-29 Thread Ulf Hansson
On Wed, 28 Aug 2019 at 12:52, Alejandro González wrote: > > El 27/8/19 a las 15:24, Ulf Hansson escribió:> Assuming this should go stable > as well? Perhaps you can find a > > relevant commit that we can put as a fixes tag as well? > > > > Kind regards > > Uf

[linux-sunxi] Re: [PATCH v2 08/21] dt-bindings: mmc: sunxi: Add Allwinner A100 and H616 compatibles

2021-01-11 Thread Ulf Hansson
On Fri, 11 Dec 2020 at 02:20, Andre Przywara wrote: > > From: Yangtao Li > > Add binding for A100's and H616's mmc and emmc controller. > > Signed-off-by: Yangtao Li > Signed-off-by: Andre Przywara Applied for next to my mmc tree, thanks! Kind regards Uffe > --- >

[linux-sunxi] Re: [PATCH v2 09/21] mmc: sunxi: add support for A100 mmc controller

2021-01-11 Thread Ulf Hansson
On Fri, 11 Dec 2020 at 02:20, Andre Przywara wrote: > > From: Yangtao Li > > This patch adds support for A100 MMC controller, which use word address > for internal dma. > > Signed-off-by: Yangtao Li > Signed-off-by: Andre Przywara Applied for next to my mmc tree, thanks! Kind regards Uffe

[linux-sunxi] Re: [PATCH v2 30/52] dt-bindings: mmc: Convert MMC Card binding to a schema

2021-09-06 Thread Ulf Hansson
L schema. > > Some of these properties were already described in the MMC controller > binding, even though they are not generic and do not apply to any > device, so we took the occasion to fix this. > > Cc: linux-...@vger.kernel.org > Cc: Ulf Hansson > Signed-off-by: Maxime Ripard > Q

[linux-sunxi] Re: [PATCH 25/54] dt-bindings: mmc: Convert MMC Card binding to a schema

2021-08-04 Thread Ulf Hansson
bindings/mmc/mmc-card.yaml > > b/Documentation/devicetree/bindings/mmc/mmc-card.yaml > > new file mode 100644 > > index ..aefdd8748b72 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml > > @@ -0,0 +1,48 @@ > > +