Skip to contentSkip to conversation

Add SDHCI driver for Tegra

PATCH Superseded Olof Johansson 4 participants 13 messages Dec 22, 2010 – Dec 23, 2010

Subsystems (5)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add SDHCI driver for Tegra

This is the second version of the SDHCI driver for tegra. I moved it over to a sdhci-pltfm variant, which turned out to be feasible -- at least as long as the platform_data is never required by sdhci-pltfm and can be used by the sub-driver.

I also did away with wone of the quirks, since based on current testing it seems to no longer be required. If needed it can be reintroduced in some way or other later on instead.

The one remaining quirk is of the kind that can be moved entirely into the driver, and I will look at doing so when I get around to cleaning up other quirks together with it. Until then, at least we have one more bit left to allocate. :-)

Thanks,

-Olof

#1 lore raw

PATCH v2 1/3 sdhci: add quirk for max len ADMA descriptors

Some controllers misparse segment length 0 as being 0, not 65536. Add a quirk to deal with it.

---
 drivers/mmc/host/sdhci.c  |   10 +++++++---
 include/linux/mmc/sdhci.h |    2 ++
 2 files changed, 9 insertions(+), 3 deletions(-)
drivers/mmc/host/sdhci.c +7 -3
index a25db426..c0094c1 100644
@@ -1928,10 +1928,14 @@ int sdhci_add_host(struct sdhci_host *host)
 	 * of bytes. When doing hardware scatter/gather, each entry cannot
 	 * be larger than 64 KiB though.
 	 */
-	if (host->flags & SDHCI_USE_ADMA)
-		mmc->max_seg_size = 65536;
-	else
+	if (host->flags & SDHCI_USE_ADMA) {
+		if (host->quirks & SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC)
+			mmc->max_seg_size = 65535;
+		else
+			mmc->max_seg_size = 65536;
+	} else {
 		mmc->max_seg_size = mmc->max_req_size;
+	}
 
 	/*
 	 * Maximum block size. This varies from controller to controller and
include/linux/mmc/sdhci.h +2 -0
index 1fdc673..dfb2106 100644
@@ -83,6 +83,8 @@ struct sdhci_host {
 #define SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12		(1<<28)
 /* Controller doesn't have HISPD bit field in HI-SPEED SD card */
 #define SDHCI_QUIRK_NO_HISPD_BIT			(1<<29)
+/* Controller treats ADMA descriptors with length 0000h incorrectly */
+#define SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC		(1<<30)
 
 	int irq;		/* Device IRQ */
 	void __iomem *ioaddr;	/* Mapped address */
Signature · 1 line
1.7.3.1
#2 lore raw

PATCH v2 2/3 sdhci: don't finish commands in flight

In reply to Olof Johansson

Don't schedule the finish_tasklet unless the command complete bit is set in the interrupt status register.

---
 drivers/mmc/host/sdhci.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci.c +2 -1
index c0094c1..562aaea 100644
@@ -1432,7 +1432,8 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask)
 		host->cmd->error = -EILSEQ;
 
 	if (host->cmd->error) {
-		tasklet_schedule(&host->finish_tasklet);
+		if (intmask & SDHCI_INT_RESPONSE)
+			tasklet_schedule(&host->finish_tasklet);
 		return;
 	}
 
Signature · 1 line
1.7.3.1
#3 lore raw

Re: [PATCH 2/3] sdhci: don't finish commands in flight

Hi Olof,

Quoted 4 lines · Olof Johansson

Don't schedule the finish_tasklet unless the command complete bit is set in the interrupt status register.

Could we have some more detail here, please? What are the symptoms of running without this patch? Should we apply it to the stable tree too?

Quoted 9 lines
---
 drivers/mmc/host/sdhci.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci.c +0 -0
index c0094c1..562aaea 100644

drivers/mmc/host/sdhci.c static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask) · line 1439

Quoted 9 lines
drivers/mmc/host/sdhci.c +2 -1
@@ -1432,7 +1432,8 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask)
 		host->cmd->error = -EILSEQ;
 
 	if (host->cmd->error) {
-		tasklet_schedule(&host->finish_tasklet);
+		if (intmask & SDHCI_INT_RESPONSE)
+			tasklet_schedule(&host->finish_tasklet);
 		return;
 	}
 

Thanks,

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#4 lore raw

Re: [PATCH 2/3] sdhci: don't finish commands in flight

Hi,

Quoted 10 lines · Chris Ball

Hi Olof,

Quoted 4 lines · Olof Johansson

Don't schedule the finish_tasklet unless the command complete bit is set in the interrupt status register.

Could we have some more detail here, please?  What are the symptoms of running without this patch?  Should we apply it to the stable tree too?

Hmm, good question. I hadn't gotten to the bottom of why this specific change was needed in the past -- it's something the original driver did that I just ended up inheriting behavior from. Thanks for asking. :-)

From some further investigation, it seems like the underlying problem is that the controller reports spurious timeout and crc errors, in spite of the transactions completing successfully.

My main worry with this fix as it was is that it would disable behavior on controllers where the error bits are set and handled correctly. So, what I think I will do instead is that I will simply mask those two errors from generating interrupts (i.e. masking the two bits when writing the SDHCI_SIGNAL_ENABLE register). That seems to result in the equivalent behavior, and I no longer see the spurious interrupts and controller resets. In case of real timeouts and/or CRC errors, the existing software timer should take care of eventually unfreezing the controller if need be.

I'll repost the series with these changes after letting this version sit out for review for a bit longer.

-Olof

#5 lore raw

PATCH v2 3/3 mmc: add sdhci-tegra driver for Tegra SoCs

In reply to Olof Johansson

SDHCI driver for Tegra. Pretty straight forward, a few pieces of functionality left to fill in but nothing that stops it from going upstream. Board enablement submitted separately.

This driver plugs in as a new variant of sdhci-pltfm, using the platform data structure passed in to specify the GPIOs to use for card detect, write protect and card power enablement.

Original driver (of which only the header file is left):

The rest, which has been rewritten by now:

Cc Wolfram Sang <[email protected]>
Cc Mike Rapoport <[email protected]>

---

 arch/arm/mach-tegra/include/mach/sdhci.h |   28 ++++
 drivers/mmc/host/Kconfig                 |   10 ++
 drivers/mmc/host/Makefile                |    1 +
 drivers/mmc/host/sdhci-pltfm.c           |    3 +
 drivers/mmc/host/sdhci-pltfm.h           |    1 +
 drivers/mmc/host/sdhci-tegra.c           |  219 ++++++++++++++++++++++++++++++
 6 files changed, 262 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-tegra/include/mach/sdhci.h
 create mode 100644 drivers/mmc/host/sdhci-tegra.c
arch/arm/mach-tegra/include/mach/sdhci.h new file +28 -0
new file mode 100644
index 0000000..02f6ef27
@@ -0,0 +1,28 @@
+/*
+ * include/asm-arm/arch-tegra/include/mach/sdhci.h
+ *
+ * Copyright (C) 2009 Palm, Inc.
+ * Author: Yvonne Yip <[email protected]>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+#ifndef __ASM_ARM_ARCH_TEGRA_SDHCI_H
+#define __ASM_ARM_ARCH_TEGRA_SDHCI_H
+
+#include <linux/mmc/host.h>
+
+struct tegra_sdhci_platform_data {
+	int cd_gpio;
+	int wp_gpio;
+	int power_gpio;
+};
+
+#endif
drivers/mmc/host/Kconfig +10 -0
index d618e86..25c6a2a 100644
@@ -140,6 +140,16 @@ config MMC_SDHCI_ESDHC_IMX
 
 	  If unsure, say N.
 
+config MMC_SDHCI_TEGRA
+	tristate "SDHCI platform support for the Tegra SD/MMC Controller"
+	depends on MMC_SDHCI_PLTFM && ARCH_TEGRA
+	select MMC_SDHCI_IO_ACCESSORS
+	help
+	  This selects the Tegra SD/MMC controller. If you have a Tegra
+	  platform with SD or MMC devices, say Y or M here.
+
+	  If unsure, say N.
+
 config MMC_SDHCI_S3C
 	tristate "SDHCI support on Samsung S3C SoC"
 	depends on MMC_SDHCI && PLAT_SAMSUNG
drivers/mmc/host/Makefile +1 -0
index 7b645ff..fc8f8f0 100644
@@ -39,6 +39,7 @@ obj-$(CONFIG_MMC_SDHCI_PLTFM)			+= sdhci-platform.o
 sdhci-platform-y				:= sdhci-pltfm.o
 sdhci-platform-$(CONFIG_MMC_SDHCI_CNS3XXX)	+= sdhci-cns3xxx.o
 sdhci-platform-$(CONFIG_MMC_SDHCI_ESDHC_IMX)	+= sdhci-esdhc-imx.o
+sdhci-platform-$(CONFIG_MMC_SDHCI_TEGRA)	+= sdhci-tegra.o
 
 obj-$(CONFIG_MMC_SDHCI_OF)	+= sdhci-of.o
 sdhci-of-y				:= sdhci-of-core.o
drivers/mmc/host/sdhci-pltfm.c +3 -0
index 0502f89..d9e6e88 100644
@@ -170,6 +170,9 @@ static const struct platform_device_id sdhci_pltfm_ids[] = {
 #ifdef CONFIG_MMC_SDHCI_ESDHC_IMX
 	{ "sdhci-esdhc-imx", (kernel_ulong_t)&sdhci_esdhc_imx_pdata },
 #endif
+#ifdef CONFIG_MMC_SDHCI_TEGRA
+	{ "sdhci-tegra", (kernel_ulong_t)&sdhci_tegra_pdata },
+#endif
 	{ },
 };
 MODULE_DEVICE_TABLE(platform, sdhci_pltfm_ids);
drivers/mmc/host/sdhci-pltfm.h +1 -0
index c1bfe48..6f631e3 100644
@@ -22,5 +22,6 @@ struct sdhci_pltfm_host {
 
 extern struct sdhci_pltfm_data sdhci_cns3xxx_pdata;
 extern struct sdhci_pltfm_data sdhci_esdhc_imx_pdata;
+extern struct sdhci_pltfm_data sdhci_tegra_pdata;
 
 #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */
drivers/mmc/host/sdhci-tegra.c new file +219 -0

219 lines not on this page · raw message

Signature · 1 line
1.7.3.1
Reviewed-by on v2 3/3
#6 lore raw

Re: [PATCH 3/3] mmc: add sdhci-tegra driver for Tegra SoCs

Hi Olof,

looks good to me. Just some minor comments, but in general

Quoted 3 lines · Olof Johansson

SDHCI driver for Tegra. Pretty straight forward, a few pieces of functionality left to fill in but nothing that stops it from going upstream. Board enablement submitted separately.

I'd think this can go below the "---" line?

...

Quoted 12 lines

This driver plugs in as a new variant of sdhci-pltfm, using the platform data structure passed in to specify the GPIOs to use for card detect, write protect and card power enablement.

Original driver (of which only the header file is left):

The rest, which has been rewritten by now:

Cc Wolfram Sang <[email protected]>
Cc Mike Rapoport <[email protected]>
drivers/mmc/host/sdhci-tegra.c new file +1 -0
+static unsigned int tegra_sdhci_get_ro(struct sdhci_host *sdhci)

drivers/mmc/host/sdhci-tegra.c line 76

Quoted 10 lines
drivers/mmc/host/sdhci-tegra.c new file +10 -0
+{
+	struct platform_device *pdev = to_platform_device(mmc_dev(sdhci->mmc));
+	struct tegra_sdhci_platform_data *plat;
+
+	plat = pdev->dev.platform_data;
+
+	if (gpio_is_valid(plat->wp_gpio))
+		return gpio_get_value(plat->wp_gpio);
+
+	return -1;

So, read_only is the default case? I would have gone for returning 0. Well, safety vs. convenience...

...

Review

Quoted 2 lines
(quoted diff) +2 -0
+		if (rc) {
+			dev_err(mmc_dev(host->mmc), 

Trailing white space

drivers/mmc/host/sdhci-tegra.c line 117

Quoted 11 lines
drivers/mmc/host/sdhci-tegra.c new file +11 -0
+				"failed to allocate power gpio\n");
+			goto out;
+		}
+		tegra_gpio_enable(plat->power_gpio);
+		gpio_direction_output(plat->power_gpio, 1);
+	}
+
+	if (gpio_is_valid(plat->cd_gpio)) {
+		rc = gpio_request(plat->cd_gpio, "sdhci_cd");
+		if (rc) {
+			dev_err(mmc_dev(host->mmc), 

ditto

Quoted 10 lines
drivers/mmc/host/sdhci-tegra.c new file +10 -0
+				"failed to allocate cd gpio\n");
+			goto out_power;
+		}
+		tegra_gpio_enable(plat->cd_gpio);
+
+		rc = request_irq(gpio_to_irq(plat->cd_gpio), carddetect_irq,
+				 IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
+				 mmc_hostname(host->mmc), host);
+
+		if (rc)	{

drivers/mmc/host/sdhci-tegra.c line 137

Quoted 10 lines
drivers/mmc/host/sdhci-tegra.c new file +10 -0
+			dev_err(mmc_dev(host->mmc), "request irq error\n");
+			goto out_cd;
+		}
+
+	}
+
+	if (gpio_is_valid(plat->wp_gpio)) {
+		rc = gpio_request(plat->wp_gpio, "sdhci_wp");
+		if (rc) {
+			dev_err(mmc_dev(host->mmc), 

ditto

Kind regards,

Wolfram

Signature · 2 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#7 lore raw

Re: [PATCH 3/3] mmc: add sdhci-tegra driver for Tegra SoCs

Hi,

Thanks for the review. All good points (and I forgot to do a last run through checkpatch, my bad).

All have been addressed in the next version (not yet posted).

-Olof

Quoted 100 lines · Wolfram Sang

Hi Olof,

looks good to me. Just some minor comments, but in general

Quoted 3 lines · Olof Johansson

SDHCI driver for Tegra. Pretty straight forward, a few pieces of functionality left to fill in but nothing that stops it from going upstream. Board enablement submitted separately.

I'd think this can go below the "---" line?

...

Quoted 12 lines

This driver plugs in as a new variant of sdhci-pltfm, using the platform data structure passed in to specify the GPIOs to use for card detect, write protect and card power enablement.

Original driver (of which only the header file is left):

The rest, which has been rewritten by now:

Cc Wolfram Sang <[email protected]>
Cc Mike Rapoport <[email protected]>
drivers/mmc/host/sdhci-tegra.c new file +1 -0
+static unsigned int tegra_sdhci_get_ro(struct sdhci_host *sdhci)

drivers/mmc/host/sdhci-tegra.c line 76

Quoted 10 lines
drivers/mmc/host/sdhci-tegra.c new file +10 -0
+{
+     struct platform_device *pdev = to_platform_device(mmc_dev(sdhci->mmc));
+     struct tegra_sdhci_platform_data *plat;
+
+     plat = pdev->dev.platform_data;
+
+     if (gpio_is_valid(plat->wp_gpio))
+             return gpio_get_value(plat->wp_gpio);
+
+     return -1;

So, read_only is the default case? I would have gone for returning 0. Well, safety vs. convenience...

...

Quoted 2 lines

+             if (rc) {
+                     dev_err(mmc_dev(host->mmc),

Trailing white space

Quoted 11 lines

+                             "failed to allocate power gpio\n");
+                     goto out;
+             }
+             tegra_gpio_enable(plat->power_gpio);
+             gpio_direction_output(plat->power_gpio, 1);
+     }
+
+     if (gpio_is_valid(plat->cd_gpio)) {
+             rc = gpio_request(plat->cd_gpio, "sdhci_cd");
+             if (rc) {
+                     dev_err(mmc_dev(host->mmc),

ditto

Quoted 10 lines

+                             "failed to allocate cd gpio\n");
+                     goto out_power;
+             }
+             tegra_gpio_enable(plat->cd_gpio);

drivers/mmc/host/sdhci-tegra.c new file +6 -0
+
+             rc = request_irq(gpio_to_irq(plat->cd_gpio), carddetect_irq,
+                              IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
+                              mmc_hostname(host->mmc), host);
+
+             if (rc) {

drivers/mmc/host/sdhci-tegra.c line 137

Quoted 10 lines
drivers/mmc/host/sdhci-tegra.c new file +10 -0
+                     dev_err(mmc_dev(host->mmc), "request irq error\n");
+                     goto out_cd;
+             }
+
+     }
+
+     if (gpio_is_valid(plat->wp_gpio)) {
+             rc = gpio_request(plat->wp_gpio, "sdhci_wp");
+             if (rc) {
+                     dev_err(mmc_dev(host->mmc),

ditto

Kind regards,

  Wolfram

--
Pengutronix e.K.                           | Wolfram Sang                | Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk0SJccACgkQD27XaX1/VRtnbgCdH8+R7hjsq4YjJIjvQgtkwOrF GHwAoJBRrdEv6+5d2sxZ5J/AqWsTXLb4
=RLqI
-----END PGP SIGNATURE-----

Acked-by on v2 3/3
#8 lore raw

Re: [PATCH 3/3] mmc: add sdhci-tegra driver for Tegra SoCs

In reply to Olof Johansson
Quoted 8 lines · Olof Johansson

SDHCI driver for Tegra. Pretty straight forward, a few pieces of functionality left to fill in but nothing that stops it from going upstream. Board enablement submitted separately.

This driver plugs in as a new variant of sdhci-pltfm, using the platform data structure passed in to specify the GPIOs to use for card detect, write protect and card power enablement.

Quoted 7 lines

Original driver (of which only the header file is left):

The rest, which has been rewritten by now:

Cc Wolfram Sang <[email protected]>
Cc Mike Rapoport <[email protected]>

Only one comment below, otherwise feel free to add

Quoted 12 lines

---

 arch/arm/mach-tegra/include/mach/sdhci.h |   28 ++++
 drivers/mmc/host/Kconfig                 |   10 ++
 drivers/mmc/host/Makefile                |    1 +
 drivers/mmc/host/sdhci-pltfm.c           |    3 +
 drivers/mmc/host/sdhci-pltfm.h           |    1 +
 drivers/mmc/host/sdhci-tegra.c           |  219 ++++++++++++++++++++++++++++++
 6 files changed, 262 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-tegra/include/mach/sdhci.h
 create mode 100644 drivers/mmc/host/sdhci-tegra.c

[ snip ]

drivers/mmc/host/sdhci-tegra.c line 141

Quoted 8 lines
drivers/mmc/host/sdhci-tegra.c new file +8 -0
+	if (gpio_is_valid(plat->wp_gpio)) {
+		rc = gpio_request(plat->wp_gpio, "sdhci_wp");
+		if (rc) {
+			dev_err(mmc_dev(host->mmc), 
+				"failed to allocate wp gpio\n");
+			goto out_cd;
+		}
+		tegra_gpio_enable(plat->wp_gpio);

gpio_direction_input?

Quoted 78 lines
drivers/mmc/host/sdhci-tegra.c new file +78 -0
+	}
+
+	clk = clk_get(mmc_dev(host->mmc), NULL);
+	if (IS_ERR(clk)) {
+		dev_err(mmc_dev(host->mmc), "clk err\n");
+		rc = PTR_ERR(clk);
+		goto out_wp;
+	}
+	clk_enable(clk);
+	pltfm_host->clk = clk;
+
+	return 0;
+
+out_wp:
+	if (gpio_is_valid(plat->wp_gpio)) {
+		tegra_gpio_disable(plat->wp_gpio);
+		gpio_free(plat->wp_gpio);
+	}
+
+out_cd:
+	if (gpio_is_valid(plat->cd_gpio)) {
+		tegra_gpio_disable(plat->cd_gpio);
+		gpio_free(plat->cd_gpio);
+	}
+
+out_power:
+	if (gpio_is_valid(plat->power_gpio)) {
+		tegra_gpio_disable(plat->power_gpio);
+		gpio_free(plat->power_gpio);
+	}
+
+out:
+	return rc;
+}
+
+static void tegra_sdhci_pltfm_exit(struct sdhci_host *host)
+{
+	struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
+	struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc));
+	struct tegra_sdhci_platform_data *plat;
+
+	plat = pdev->dev.platform_data;
+
+	if (gpio_is_valid(plat->wp_gpio)) {
+		tegra_gpio_disable(plat->wp_gpio);
+		gpio_free(plat->wp_gpio);
+	}
+
+	if (gpio_is_valid(plat->cd_gpio)) {
+		tegra_gpio_disable(plat->cd_gpio);
+		gpio_free(plat->cd_gpio);
+	}
+
+	if (gpio_is_valid(plat->power_gpio)) {
+		tegra_gpio_disable(plat->power_gpio);
+		gpio_free(plat->power_gpio);
+	}
+
+	clk_disable(pltfm_host->clk);
+	clk_put(pltfm_host->clk);
+}
+
+static struct sdhci_ops tegra_sdhci_ops = {
+	.get_ro     = tegra_sdhci_get_ro,
+	.read_l     = tegra_sdhci_readl,
+	.read_w     = tegra_sdhci_readw,
+	.write_l    = tegra_sdhci_writel,
+};
+
+struct sdhci_pltfm_data sdhci_tegra_pdata = {
+	.quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
+		  SDHCI_QUIRK_SINGLE_POWER_WRITE |
+		  SDHCI_QUIRK_NO_HISPD_BIT |
+		  SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC,
+	.ops  = &tegra_sdhci_ops,
+	.init = tegra_sdhci_pltfm_init,
+	.exit = tegra_sdhci_pltfm_exit,
+};
Signature · 2 lines
Sincerely yours,
Mike.
#9 lore raw

Re: [PATCH 3/3] mmc: add sdhci-tegra driver for Tegra SoCs

Hi,

Quoted 2 lines · Mike Rapoport

Only one comment below, otherwise feel free to add

Thanks!

Quoted 10 lines
Quoted 8 lines

+     if (gpio_is_valid(plat->wp_gpio)) {
+             rc = gpio_request(plat->wp_gpio, "sdhci_wp");
+             if (rc) {
+                     dev_err(mmc_dev(host->mmc),
+                             "failed to allocate wp gpio\n");
+                     goto out_cd;
+             }
+             tegra_gpio_enable(plat->wp_gpio);

gpio_direction_input?

Yep, for cd_gpio too.

-Olof

#10 lore raw
In reply to Olof Johansson

Hi Olof,

Quoted 8 lines · Olof Johansson

This is the second version of the SDHCI driver for tegra. I moved it over to a sdhci-pltfm variant, which turned out to be feasible -- at least as long as the platform_data is never required by sdhci-pltfm and can be used by the sub-driver.

I also did away with wone of the quirks, since based on current testing it seems to no longer be required. If needed it can be reintroduced in some way or other later on instead.

At first glance, this looks *much* better as a -pltfm driver. Thanks very much for redoing it!

Quoted 3 lines

The one remaining quirk is of the kind that can be moved entirely into the driver, and I will look at doing so when I get around to cleaning up other quirks together with it.

Yes, that'd be great.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#11 lore raw
In reply to Olof Johansson

Hi Olof,

Quoted 2 lines

This is the second version of the SDHCI driver for tegra. I moved it over to a sdhci-pltfm variant, which turned out to be feasible -- at

Great.

Quoted 4 lines

The one remaining quirk is of the kind that can be moved entirely into the driver, and I will look at doing so when I get around to cleaning up other quirks together with it. Until then, at least we have one more bit left to allocate. :-)

[BAZAAR MODE]

So, when are going to remove them? And how many? And what happens if not? ;)

[/BAZAAR MODE]

Regards,

Wolfram

Signature · 2 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#12 lore raw

Hi,

Quoted 11 lines · Wolfram Sang
Quoted 4 lines

The one remaining quirk is of the kind that can be moved entirely into the driver, and I will look at doing so when I get around to cleaning up other quirks together with it. Until then, at least we have one more bit left to allocate. :-)

[BAZAAR MODE]

So, when are going to remove them? And how many? And what happens if not? ;)

[/BAZAAR MODE]

I'll probably take a go at a few of them over the holiday if I get bored.

If it doesn't happen, we'll run out of bits and someone will be forced to clean up, or increase the data type. We already had that discussion. :)

-Olof