* [PATCH 0/2] omap_hsmmc: Supports slot-name also in DT @ 2015-05-15 21:14 Pali Rohár [not found] ` <1431724489-32359-1-git-send-email-pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-05-15 21:14 ` [PATCH 2/2] omap3-n900.dts: Add slot-name properties for mmc devices Pali Rohár 0 siblings, 2 replies; 18+ messages in thread From: Pali Rohár @ 2015-05-15 21:14 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, Ulf Hansson Cc: linux-omap, devicetree, linux-kernel, linux-mmc, Pali Rohár This patch series fix regression when migrating from legacy board code to DT on Nokia N900. It exports slot-name property to /sys structure from DT. Legacy board code is doing it but DT code without this patch not. Nokia N900 has two mmc slots, one internal (eMMC) and one external (uSD card). Userspace on Nokia N900 is using slot-name for detecting if mmc device is eMMC or uSD. Pali Rohár (2): mmc: omap_hsmmc: Add support for slot-name property in DT omap3-n900.dts: Add slot-name properties for mmc devices arch/arm/boot/dts/omap3-n900.dts | 2 ++ drivers/mmc/host/omap_hsmmc.c | 2 ++ 2 files changed, 4 insertions(+) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <1431724489-32359-1-git-send-email-pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT [not found] ` <1431724489-32359-1-git-send-email-pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-05-15 21:14 ` Pali Rohár 2015-05-15 21:19 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2015-05-15 21:14 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, Ulf Hansson Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mmc-u79uwXL29TY76Z2rM5mHXA, Pali Rohár Signed-off-by: Pali Rohár <pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --- drivers/mmc/host/omap_hsmmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data *of_get_hsmmc_pdata(struct device *dev) if (of_find_property(np, "ti,needs-special-hs-handling", NULL)) pdata->features |= HSMMC_HAS_HSPE_SUPPORT; + of_property_read_string(np, "slot-name", &pdata->name); + return pdata; } #else -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-05-15 21:14 ` [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property " Pali Rohár @ 2015-05-15 21:19 ` Arnd Bergmann 2015-05-15 21:22 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-05-15 21:19 UTC (permalink / raw) To: Pali Rohár Cc: Benoît Cousson, Tony Lindgren, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Friday 15 May 2015 23:14:48 Pali Rohár wrote: > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c > index 9df2b68..f6073dd 100644 > --- a/drivers/mmc/host/omap_hsmmc.c > +++ b/drivers/mmc/host/omap_hsmmc.c > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data *of_get_hsmmc_pdata(struct device *dev) > if (of_find_property(np, "ti,needs-special-hs-handling", NULL)) > pdata->features |= HSMMC_HAS_HSPE_SUPPORT; > > + of_property_read_string(np, "slot-name", &pdata->name); > + > return pdata; > } > This property needs to be documented in Documentation/devicetree/bindings/mmc/mmc.txt and preferably the implementation moved into mmc_of_parse. We should not have an interface like this specific to one driver. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-05-15 21:19 ` Arnd Bergmann @ 2015-05-15 21:22 ` Pali Rohár 2015-05-15 21:25 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2015-05-15 21:22 UTC (permalink / raw) To: Arnd Bergmann Cc: Benoît Cousson, Tony Lindgren, Ulf Hansson, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mmc-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: Text/Plain, Size: 1153 bytes --] On Friday 15 May 2015 23:19:44 Arnd Bergmann wrote: > On Friday 15 May 2015 23:14:48 Pali Rohár wrote: > > diff --git a/drivers/mmc/host/omap_hsmmc.c > > b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644 > > --- a/drivers/mmc/host/omap_hsmmc.c > > +++ b/drivers/mmc/host/omap_hsmmc.c > > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data > > *of_get_hsmmc_pdata(struct device *dev) > > > > if (of_find_property(np, "ti,needs-special-hs-handling", > > NULL)) > > > > pdata->features |= HSMMC_HAS_HSPE_SUPPORT; > > > > + of_property_read_string(np, "slot-name", &pdata->name); > > + > > > > return pdata; > > > > } > > This property needs to be documented in > Documentation/devicetree/bindings/mmc/mmc.txt and preferably the > implementation moved into mmc_of_parse. > > We should not have an interface like this specific to one driver. > > Arnd Interface is already present for platform data code (which do not use DT). So "pdata->name" is not DT specific... -- Pali Rohár pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-05-15 21:22 ` Pali Rohár @ 2015-05-15 21:25 ` Arnd Bergmann 2015-05-18 15:06 ` Tony Lindgren 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-05-15 21:25 UTC (permalink / raw) To: Pali Rohár Cc: Benoît Cousson, Tony Lindgren, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > On Friday 15 May 2015 23:19:44 Arnd Bergmann wrote: > > On Friday 15 May 2015 23:14:48 Pali Rohár wrote: > > > diff --git a/drivers/mmc/host/omap_hsmmc.c > > > b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644 > > > --- a/drivers/mmc/host/omap_hsmmc.c > > > +++ b/drivers/mmc/host/omap_hsmmc.c > > > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data > > > *of_get_hsmmc_pdata(struct device *dev) > > > > > > if (of_find_property(np, "ti,needs-special-hs-handling", > > > NULL)) > > > > > > pdata->features |= HSMMC_HAS_HSPE_SUPPORT; > > > > > > + of_property_read_string(np, "slot-name", &pdata->name); > > > + > > > > > > return pdata; > > > > > > } > > > > This property needs to be documented in > > Documentation/devicetree/bindings/mmc/mmc.txt and preferably the > > implementation moved into mmc_of_parse. > > > > We should not have an interface like this specific to one driver. > > > > Arnd > > Interface is already present for platform data code (which do not use > DT). So "pdata->name" is not DT specific... > The driver can of course keep providing the name from platform_data where that is used. All I was saying is that when you introduce a DT property, it should not be specific to that driver. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-05-15 21:25 ` Arnd Bergmann @ 2015-05-18 15:06 ` Tony Lindgren [not found] ` <20150518150607.GD10274-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 18+ messages in thread From: Tony Lindgren @ 2015-05-18 15:06 UTC (permalink / raw) To: Arnd Bergmann Cc: Pali Rohár, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > On Friday 15 May 2015 23:19:44 Arnd Bergmann wrote: > > > On Friday 15 May 2015 23:14:48 Pali Rohár wrote: > > > > diff --git a/drivers/mmc/host/omap_hsmmc.c > > > > b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644 > > > > --- a/drivers/mmc/host/omap_hsmmc.c > > > > +++ b/drivers/mmc/host/omap_hsmmc.c > > > > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data > > > > *of_get_hsmmc_pdata(struct device *dev) > > > > > > > > if (of_find_property(np, "ti,needs-special-hs-handling", > > > > NULL)) > > > > > > > > pdata->features |= HSMMC_HAS_HSPE_SUPPORT; > > > > > > > > + of_property_read_string(np, "slot-name", &pdata->name); > > > > + > > > > > > > > return pdata; > > > > > > > > } > > > > > > This property needs to be documented in > > > Documentation/devicetree/bindings/mmc/mmc.txt and preferably the > > > implementation moved into mmc_of_parse. > > > > > > We should not have an interface like this specific to one driver. > > > > > > Arnd > > > > Interface is already present for platform data code (which do not use > > DT). So "pdata->name" is not DT specific... > > > > The driver can of course keep providing the name from platform_data where > that is used. All I was saying is that when you introduce a DT property, > it should not be specific to that driver. Yes sounds like it would be a usable generic binding. Not sure that it should be called slot-name though, maybe you can use the MMC driver instance name instead? I don't think much any drivers support multiple MMC slots although it's in the original MMC spec. If setting up the generic binding is expected to take a while, you can naturally pass it in pdata while waiting for the generic binding to get merged. Regards, Tony ^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <20150518150607.GD10274-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT [not found] ` <20150518150607.GD10274-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2015-05-18 15:07 ` Arnd Bergmann 2015-12-25 12:53 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-05-18 15:07 UTC (permalink / raw) To: Tony Lindgren Cc: Pali Rohár, Benoît Cousson, Ulf Hansson, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mmc-u79uwXL29TY76Z2rM5mHXA On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > * Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> [150515 14:26]: > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > If setting up the generic binding is expected to take a while, > you can naturally pass it in pdata while waiting for the generic > binding to get merged. Yes, good idea. So the n900 machine can use auxdata to pass this for the time being, while the binding and generic implementation is being worked out. Arnd -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-05-18 15:07 ` Arnd Bergmann @ 2015-12-25 12:53 ` Pali Rohár 2015-12-28 14:14 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2015-12-25 12:53 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mmc-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: Text/Plain, Size: 707 bytes --] On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > * Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> [150515 14:26]: > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > If setting up the generic binding is expected to take a while, > > you can naturally pass it in pdata while waiting for the generic > > binding to get merged. > > Yes, good idea. So the n900 machine can use auxdata to pass this for > the time being, while the binding and generic implementation is > being worked out. > > Arnd Ok, so what is needed to finish this patch series? -- Pali Rohár pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-25 12:53 ` Pali Rohár @ 2015-12-28 14:14 ` Arnd Bergmann 2015-12-28 14:28 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-12-28 14:14 UTC (permalink / raw) To: Pali Rohár Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > If setting up the generic binding is expected to take a while, > > > you can naturally pass it in pdata while waiting for the generic > > > binding to get merged. > > > > Yes, good idea. So the n900 machine can use auxdata to pass this for > > the time being, while the binding and generic implementation is > > being worked out. > > > > Ok, so what is needed to finish this patch series? I don't know where we are at this point. Has either the auxdata approach or the generic binding been worked on at all? If not, please try to get the auxdata variant to work, it should not be hard at all because there is no dependency on a generic binding. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-28 14:14 ` Arnd Bergmann @ 2015-12-28 14:28 ` Pali Rohár 2015-12-28 14:41 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2015-12-28 14:28 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mmc-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: Text/Plain, Size: 1233 bytes --] On Monday 28 December 2015 15:14:50 Arnd Bergmann wrote: > On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > > * Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> [150515 14:26]: > > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > > If setting up the generic binding is expected to take a while, > > > > you can naturally pass it in pdata while waiting for the > > > > generic binding to get merged. > > > > > > Yes, good idea. So the n900 machine can use auxdata to pass this > > > for the time being, while the binding and generic implementation > > > is being worked out. > > > > Ok, so what is needed to finish this patch series? > > I don't know where we are at this point. Has either the auxdata > approach or the generic binding been worked on at all? What are auxdata data? And what do you mean with "generic binding" approach? > If not, please try to get the auxdata variant to work, it should not > be hard at all because there is no dependency on a generic binding. > > Arnd -- Pali Rohár pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-28 14:28 ` Pali Rohár @ 2015-12-28 14:41 ` Arnd Bergmann 2015-12-28 14:54 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-12-28 14:41 UTC (permalink / raw) To: Pali Rohár Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Monday 28 December 2015 15:28:48 Pali Rohár wrote: > On Monday 28 December 2015 15:14:50 Arnd Bergmann wrote: > > On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > > > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > > > * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > > > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > > > If setting up the generic binding is expected to take a while, > > > > > you can naturally pass it in pdata while waiting for the > > > > > generic binding to get merged. > > > > > > > > Yes, good idea. So the n900 machine can use auxdata to pass this > > > > for the time being, while the binding and generic implementation > > > > is being worked out. > > > > > > Ok, so what is needed to finish this patch series? > > > > I don't know where we are at this point. Has either the auxdata > > approach or the generic binding been worked on at all? > > What are auxdata data? I mean you can add the platform data to the omap_auxdata_lookup[] table for this board. > And what do you mean with "generic binding" approach? Start a discussion to specify slot names and implement that in the mmc driver core, so we can remove the hack from the OMAP driver and make it work the same way for any machine. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-28 14:41 ` Arnd Bergmann @ 2015-12-28 14:54 ` Pali Rohár 2015-12-28 14:55 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2015-12-28 14:54 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc [-- Attachment #1: Type: Text/Plain, Size: 1330 bytes --] On Monday 28 December 2015 15:41:01 Arnd Bergmann wrote: > On Monday 28 December 2015 15:28:48 Pali Rohár wrote: > > On Monday 28 December 2015 15:14:50 Arnd Bergmann wrote: > > > On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > > > > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > > > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > > > > * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > > > > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > > > > If setting up the generic binding is expected to take a > > > > > > while, you can naturally pass it in pdata while waiting > > > > > > for the generic binding to get merged. > > > > > > > > > > Yes, good idea. So the n900 machine can use auxdata to pass > > > > > this for the time being, while the binding and generic > > > > > implementation is being worked out. > > > > > > > > Ok, so what is needed to finish this patch series? > > > > > > I don't know where we are at this point. Has either the auxdata > > > approach or the generic binding been worked on at all? > > > > What are auxdata data? > > I mean you can add the platform data to the omap_auxdata_lookup[] > table for this board. But can I mix data from omap3-n900.dts and omap_auxdata_lookup[]? -- Pali Rohár pali.rohar@gmail.com [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-28 14:54 ` Pali Rohár @ 2015-12-28 14:55 ` Arnd Bergmann 2016-01-02 15:22 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2015-12-28 14:55 UTC (permalink / raw) To: Pali Rohár Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Monday 28 December 2015 15:54:35 Pali Rohár wrote: > On Monday 28 December 2015 15:41:01 Arnd Bergmann wrote: > > On Monday 28 December 2015 15:28:48 Pali Rohár wrote: > > > On Monday 28 December 2015 15:14:50 Arnd Bergmann wrote: > > > > On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > > > > > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > > > > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > > > > > * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > > > > > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > > > > > If setting up the generic binding is expected to take a > > > > > > > while, you can naturally pass it in pdata while waiting > > > > > > > for the generic binding to get merged. > > > > > > > > > > > > Yes, good idea. So the n900 machine can use auxdata to pass > > > > > > this for the time being, while the binding and generic > > > > > > implementation is being worked out. > > > > > > > > > > Ok, so what is needed to finish this patch series? > > > > > > > > I don't know where we are at this point. Has either the auxdata > > > > approach or the generic binding been worked on at all? > > > > > > What are auxdata data? > > > > I mean you can add the platform data to the omap_auxdata_lookup[] > > table for this board. > > But can I mix data from omap3-n900.dts and omap_auxdata_lookup[]? Yes. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2015-12-28 14:55 ` Arnd Bergmann @ 2016-01-02 15:22 ` Pali Rohár 2016-01-02 22:57 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2016-01-02 15:22 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc [-- Attachment #1: Type: Text/Plain, Size: 1764 bytes --] On Monday 28 December 2015 15:55:28 Arnd Bergmann wrote: > On Monday 28 December 2015 15:54:35 Pali Rohár wrote: > > On Monday 28 December 2015 15:41:01 Arnd Bergmann wrote: > > > On Monday 28 December 2015 15:28:48 Pali Rohár wrote: > > > > On Monday 28 December 2015 15:14:50 Arnd Bergmann wrote: > > > > > On Friday 25 December 2015 13:53:11 Pali Rohár wrote: > > > > > > On Monday 18 May 2015 17:07:57 Arnd Bergmann wrote: > > > > > > > On Monday 18 May 2015 08:06:07 Tony Lindgren wrote: > > > > > > > > * Arnd Bergmann <arnd@arndb.de> [150515 14:26]: > > > > > > > > > On Friday 15 May 2015 23:22:37 Pali Rohár wrote: > > > > > > > > If setting up the generic binding is expected to take a > > > > > > > > while, you can naturally pass it in pdata while waiting > > > > > > > > for the generic binding to get merged. > > > > > > > > > > > > > > Yes, good idea. So the n900 machine can use auxdata to > > > > > > > pass this for the time being, while the binding and > > > > > > > generic implementation is being worked out. > > > > > > > > > > > > Ok, so what is needed to finish this patch series? > > > > > > > > > > I don't know where we are at this point. Has either the > > > > > auxdata approach or the generic binding been worked on at > > > > > all? > > > > > > > > What are auxdata data? > > > > > > I mean you can add the platform data to the omap_auxdata_lookup[] > > > table for this board. > > > > But can I mix data from omap3-n900.dts and omap_auxdata_lookup[]? > > Yes. > > Arnd Hm... looks like it is not possible. omap_hsmmc driver ignores any supplied platform data if there are device tree data. So array omap_auxdata_lookup[] does not help. -- Pali Rohár pali.rohar@gmail.com [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2016-01-02 15:22 ` Pali Rohár @ 2016-01-02 22:57 ` Arnd Bergmann 2016-01-02 23:03 ` Pali Rohár 0 siblings, 1 reply; 18+ messages in thread From: Arnd Bergmann @ 2016-01-02 22:57 UTC (permalink / raw) To: Pali Rohár Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Saturday 02 January 2016 16:22:03 Pali Rohár wrote: > On Monday 28 December 2015 15:55:28 Arnd Bergmann wrote: > > On Monday 28 December 2015 15:54:35 Pali Rohár wrote: > > > > > > > > I mean you can add the platform data to the omap_auxdata_lookup[] > > > > table for this board. > > > > > > But can I mix data from omap3-n900.dts and omap_auxdata_lookup[]? > > > Hm... looks like it is not possible. omap_hsmmc driver ignores any > supplied platform data if there are device tree data. So array > omap_auxdata_lookup[] does not help. Obviously you need to the driver to work with that setting. Maybe something as simple as diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index e06b1881b6a1..4fa35fc84b8b 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2006,7 +2006,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev) void __iomem *base; match = of_match_device(of_match_ptr(omap_mmc_of_match), &pdev->dev); - if (match) { + if (!pdata && match) { pdata = of_get_hsmmc_pdata(&pdev->dev); if (IS_ERR(pdata)) Arnd ^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2016-01-02 22:57 ` Arnd Bergmann @ 2016-01-02 23:03 ` Pali Rohár 2016-01-02 23:17 ` Arnd Bergmann 0 siblings, 1 reply; 18+ messages in thread From: Pali Rohár @ 2016-01-02 23:03 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc [-- Attachment #1: Type: Text/Plain, Size: 1597 bytes --] On Saturday 02 January 2016 23:57:47 Arnd Bergmann wrote: > On Saturday 02 January 2016 16:22:03 Pali Rohár wrote: > > On Monday 28 December 2015 15:55:28 Arnd Bergmann wrote: > > > On Monday 28 December 2015 15:54:35 Pali Rohár wrote: > > > > > I mean you can add the platform data to the > > > > > omap_auxdata_lookup[] table for this board. > > > > > > > > But can I mix data from omap3-n900.dts and > > > > omap_auxdata_lookup[]? > > > > Hm... looks like it is not possible. omap_hsmmc driver ignores any > > supplied platform data if there are device tree data. So array > > omap_auxdata_lookup[] does not help. > > Obviously you need to the driver to work with that setting. Maybe > something as simple as > > diff --git a/drivers/mmc/host/omap_hsmmc.c > b/drivers/mmc/host/omap_hsmmc.c index e06b1881b6a1..4fa35fc84b8b > 100644 > --- a/drivers/mmc/host/omap_hsmmc.c > +++ b/drivers/mmc/host/omap_hsmmc.c > @@ -2006,7 +2006,7 @@ static int omap_hsmmc_probe(struct > platform_device *pdev) void __iomem *base; > > match = of_match_device(of_match_ptr(omap_mmc_of_match), > &pdev->dev); - if (match) { > + if (!pdata && match) { > pdata = of_get_hsmmc_pdata(&pdev->dev); > > if (IS_ERR(pdata)) > > > Arnd But in this case I must copy mmc definition from omap3-n900.dts file back to board code to omap_auxdata_lookup[]. And mmc definitions in omap3-n900.dts will be ignored. This is step back. Mixing mmc definitions from DTS file together with omap_auxdata_lookup[] just will not work. -- Pali Rohár pali.rohar@gmail.com [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT 2016-01-02 23:03 ` Pali Rohár @ 2016-01-02 23:17 ` Arnd Bergmann 0 siblings, 0 replies; 18+ messages in thread From: Arnd Bergmann @ 2016-01-02 23:17 UTC (permalink / raw) To: Pali Rohár Cc: Tony Lindgren, Benoît Cousson, Ulf Hansson, linux-omap, devicetree, linux-kernel, linux-mmc On Sunday 03 January 2016 00:03:54 Pali Rohár wrote: > On Saturday 02 January 2016 23:57:47 Arnd Bergmann wrote: > > On Saturday 02 January 2016 16:22:03 Pali Rohár wrote: > > > On Monday 28 December 2015 15:55:28 Arnd Bergmann wrote: > > > > On Monday 28 December 2015 15:54:35 Pali Rohár wrote: > > > > > > I mean you can add the platform data to the > > > > > > omap_auxdata_lookup[] table for this board. > > > > > > > > > > But can I mix data from omap3-n900.dts and > > > > > omap_auxdata_lookup[]? > > > > > > Hm... looks like it is not possible. omap_hsmmc driver ignores any > > > supplied platform data if there are device tree data. So array > > > omap_auxdata_lookup[] does not help. > > > > Obviously you need to the driver to work with that setting. Maybe > > something as simple as > > > > diff --git a/drivers/mmc/host/omap_hsmmc.c > > b/drivers/mmc/host/omap_hsmmc.c index e06b1881b6a1..4fa35fc84b8b > > 100644 > > --- a/drivers/mmc/host/omap_hsmmc.c > > +++ b/drivers/mmc/host/omap_hsmmc.c > > @@ -2006,7 +2006,7 @@ static int omap_hsmmc_probe(struct > > platform_device *pdev) void __iomem *base; > > > > match = of_match_device(of_match_ptr(omap_mmc_of_match), > > &pdev->dev); - if (match) { > > + if (!pdata && match) { > > pdata = of_get_hsmmc_pdata(&pdev->dev); > > > > if (IS_ERR(pdata)) > > > > But in this case I must copy mmc definition from omap3-n900.dts file > back to board code to omap_auxdata_lookup[]. And mmc definitions in > omap3-n900.dts will be ignored. This is step back. > > Mixing mmc definitions from DTS file together with omap_auxdata_lookup[] > just will not work. As I said earlier, if you prefer to avoid the auxdata hack, you are also welcome to work on support for named slots in the MMC core code, it will just be more work and will take time to get consensus on. Arnd ^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 2/2] omap3-n900.dts: Add slot-name properties for mmc devices 2015-05-15 21:14 [PATCH 0/2] omap_hsmmc: Supports slot-name also in DT Pali Rohár [not found] ` <1431724489-32359-1-git-send-email-pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-05-15 21:14 ` Pali Rohár 1 sibling, 0 replies; 18+ messages in thread From: Pali Rohár @ 2015-05-15 21:14 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, Ulf Hansson Cc: linux-omap, devicetree, linux-kernel, linux-mmc, Pali Rohár Signed-off-by: Pali Rohár <pali.rohar@gmail.com> --- arch/arm/boot/dts/omap3-n900.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 7a3b14c..4154f8d 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -678,6 +678,7 @@ }; &mmc1 { + slot-name = "external"; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vmmc1>; @@ -687,6 +688,7 @@ /* most boards use vaux3, only some old versions use vmmc2 instead */ &mmc2 { + slot-name = "internal"; pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; vmmc-supply = <&vaux3>; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 18+ messages in thread
end of thread, other threads:[~2016-01-02 23:17 UTC | newest] Thread overview: 18+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-05-15 21:14 [PATCH 0/2] omap_hsmmc: Supports slot-name also in DT Pali Rohár [not found] ` <1431724489-32359-1-git-send-email-pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-05-15 21:14 ` [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property " Pali Rohár 2015-05-15 21:19 ` Arnd Bergmann 2015-05-15 21:22 ` Pali Rohár 2015-05-15 21:25 ` Arnd Bergmann 2015-05-18 15:06 ` Tony Lindgren [not found] ` <20150518150607.GD10274-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2015-05-18 15:07 ` Arnd Bergmann 2015-12-25 12:53 ` Pali Rohár 2015-12-28 14:14 ` Arnd Bergmann 2015-12-28 14:28 ` Pali Rohár 2015-12-28 14:41 ` Arnd Bergmann 2015-12-28 14:54 ` Pali Rohár 2015-12-28 14:55 ` Arnd Bergmann 2016-01-02 15:22 ` Pali Rohár 2016-01-02 22:57 ` Arnd Bergmann 2016-01-02 23:03 ` Pali Rohár 2016-01-02 23:17 ` Arnd Bergmann 2015-05-15 21:14 ` [PATCH 2/2] omap3-n900.dts: Add slot-name properties for mmc devices Pali Rohár
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).