Patchwork [meta-fsl-arm-extra] linux-imx (3.0.35): fix sdhc platform data

login
register
mail settings
Submitter John Weber
Date March 16, 2013, 1:45 p.m.
Message ID <1363441542-5300-1-git-send-email-rjohnweber@gmail.com>
Download mbox | patch
Permalink /patch/46275/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

John Weber - March 16, 2013, 1:45 p.m.
Fixes esdhc platform data for wandboard dual.  Without this fix, 
wandboard-dual is unable to load firmware from the filesystem into
the kernel.

Signed-off-by: John Weber <rjohnweber@gmail.com>
---
 ...002-wandboard-dual-fix-sdhc-platform-data.patch |   53 ++++++++++++++++++++
 1 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
Otavio Salvador - March 16, 2013, 2:23 p.m.
On Sat, Mar 16, 2013 at 10:45 AM, John Weber <rjohnweber@gmail.com> wrote:
> Fixes esdhc platform data for wandboard dual.  Without this fix,
> wandboard-dual is unable to load firmware from the filesystem into
> the kernel.
>
> Signed-off-by: John Weber <rjohnweber@gmail.com>
> ---
>  ...002-wandboard-dual-fix-sdhc-platform-data.patch |   53 ++++++++++++++++++++
>  1 files changed, 56 insertions(+), 2 deletions(-)
>  create mode 100644 recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
>
> diff --git a/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch b/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
> new file mode 100644
> index 0000000..3aefebe
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
> @@ -0,0 +1,53 @@
> +From ea530483ad42e5b9a89934fbdfd57df81b3a90ab Mon Sep 17 00:00:00 2001
> +From: John Weber <rjohnweber@gmail.com>
> +Date: Fri, 15 Mar 2013 08:43:15 -0500
> +Subject: [PATCH] wandboard: fix sdhc platform data
> +
> +Fixes sdhc platfrom data structure to solve a problem when loading
> +the firmware files for the on-board Wifi module on Wandboard-dual.
> +This problem only occured when udev is tasked with loading firmware
> +from the filesystem.
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: John Weber <rjohnweber@gmail.com>
> +---
> + arch/arm/mach-mx6/board-wand.c |   11 ++++++++---
> + 1 file changed, 8 insertions(+), 3 deletions(-)
> +
> +diff --git a/arch/arm/mach-mx6/board-wand.c b/arch/arm/mach-mx6/board-wand.c
> +index 7f972eb..7be6726 100644
> +--- a/arch/arm/mach-mx6/board-wand.c
> ++++ b/arch/arm/mach-mx6/board-wand.c
> +@@ -184,13 +184,17 @@ static const struct esdhc_platform_data wand_sd_data[3] = {
> +               .cd_gpio                = WAND_SD1_CD,
> +               .wp_gpio                =-EINVAL,
> +               .keep_power_at_suspend  = 1,
> +-              .support_8bit           = 0,
> ++        .support_8bit         = 0,
> ++        .delay_line = 0,

It seems you changed spaces here without need.

> +               .platform_pad_change    = plt_sd_pad_change,
> ++              .cd_type = ESDHC_CD_CONTROLLER,
> +       }, {
> +-              .cd_gpio                =-EINVAL,
> +-              .wp_gpio                =-EINVAL,
> +               .keep_power_at_suspend  = 1,
> +               .platform_pad_change    = plt_sd_pad_change,
> ++              .always_present = 1,
> ++              .support_8bit = 0,
> ++              .delay_line = 0,
> ++              .cd_type = ESDHC_CD_PERMANENT,
> +       }, {
> +               .cd_gpio                = WAND_SD3_CD,
> +               .wp_gpio                = WAND_SD3_WP,
> +@@ -198,6 +202,7 @@ static const struct esdhc_platform_data wand_sd_data[3] = {
> +               .support_8bit           = 0,
> +               .delay_line             = 0,
> +               .platform_pad_change    = plt_sd_pad_change,
> ++              .cd_type = ESDHC_CD_CONTROLLER,
> +       }
> + };
> +
> +--
> +1.7.9.5
> +
> --
> 1.7.9.5
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale

Patch

diff --git a/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch b/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
new file mode 100644
index 0000000..3aefebe
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-3.0.35/wandboard-dual/0002-wandboard-dual-fix-sdhc-platform-data.patch
@@ -0,0 +1,53 @@ 
+From ea530483ad42e5b9a89934fbdfd57df81b3a90ab Mon Sep 17 00:00:00 2001
+From: John Weber <rjohnweber@gmail.com>
+Date: Fri, 15 Mar 2013 08:43:15 -0500
+Subject: [PATCH] wandboard: fix sdhc platform data
+
+Fixes sdhc platfrom data structure to solve a problem when loading
+the firmware files for the on-board Wifi module on Wandboard-dual.
+This problem only occured when udev is tasked with loading firmware
+from the filesystem.
+
+Upstream-Status: Pending
+
+Signed-off-by: John Weber <rjohnweber@gmail.com>
+---
+ arch/arm/mach-mx6/board-wand.c |   11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/mach-mx6/board-wand.c b/arch/arm/mach-mx6/board-wand.c
+index 7f972eb..7be6726 100644
+--- a/arch/arm/mach-mx6/board-wand.c
++++ b/arch/arm/mach-mx6/board-wand.c
+@@ -184,13 +184,17 @@ static const struct esdhc_platform_data wand_sd_data[3] = {
+ 		.cd_gpio		= WAND_SD1_CD,
+ 		.wp_gpio		=-EINVAL,
+ 		.keep_power_at_suspend	= 1,
+-	        .support_8bit		= 0,
++	  .support_8bit		= 0,
++	  .delay_line = 0,
+ 		.platform_pad_change	= plt_sd_pad_change,
++		.cd_type = ESDHC_CD_CONTROLLER,
+ 	}, {
+-		.cd_gpio		=-EINVAL,
+-		.wp_gpio		=-EINVAL,
+ 		.keep_power_at_suspend	= 1,
+ 		.platform_pad_change	= plt_sd_pad_change,
++		.always_present = 1,
++		.support_8bit = 0,
++		.delay_line = 0,
++		.cd_type = ESDHC_CD_PERMANENT,
+ 	}, {
+ 		.cd_gpio		= WAND_SD3_CD,
+ 		.wp_gpio		= WAND_SD3_WP,
+@@ -198,6 +202,7 @@ static const struct esdhc_platform_data wand_sd_data[3] = {
+ 		.support_8bit		= 0,
+ 		.delay_line		= 0,
+ 		.platform_pad_change	= plt_sd_pad_change,
++		.cd_type = ESDHC_CD_CONTROLLER,
+ 	}
+ };
+ 
+-- 
+1.7.9.5
+