* [PATCH] spi: tegra: sequence compatible strings as per preference @ 2012-11-09 9:07 Laxman Dewangan 2012-11-09 16:43 ` Mark Brown 2012-11-09 17:04 ` Stephen Warren 0 siblings, 2 replies; 8+ messages in thread From: Laxman Dewangan @ 2012-11-09 9:07 UTC (permalink / raw) To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ, broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Laxman Dewangan, swarren-DDmLM1+adcrQT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Sequence compatible list for tegra20-slink driver to first look for Tegra30 and then Tegra20. Tegra30 have additional feature in HW which need to be utilize if it is provided from DT. Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> --- drivers/spi/spi-tegra20-slink.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 07dc735..7882b50 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1109,8 +1109,8 @@ const struct tegra_slink_chip_data tegra20_spi_cdata = { }; static struct of_device_id tegra_slink_of_match[] __devinitconst = { - { .compatible = "nvidia,tegra20-slink", .data = &tegra20_spi_cdata, }, { .compatible = "nvidia,tegra30-slink", .data = &tegra30_spi_cdata, }, + { .compatible = "nvidia,tegra20-slink", .data = &tegra20_spi_cdata, }, {} }; MODULE_DEVICE_TABLE(of, tegra_slink_of_match); -- 1.7.1.1 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference 2012-11-09 9:07 [PATCH] spi: tegra: sequence compatible strings as per preference Laxman Dewangan @ 2012-11-09 16:43 ` Mark Brown 2012-11-09 17:04 ` Stephen Warren 1 sibling, 0 replies; 8+ messages in thread From: Mark Brown @ 2012-11-09 16:43 UTC (permalink / raw) To: Laxman Dewangan; +Cc: grant.likely, swarren, spi-devel-general, linux-kernel [-- Attachment #1: Type: text/plain, Size: 273 bytes --] On Fri, Nov 09, 2012 at 02:37:32PM +0530, Laxman Dewangan wrote: > Sequence compatible list for tegra20-slink driver to first > look for Tegra30 and then Tegra20. Tegra30 have additional > feature in HW which need to be utilize if it is provided from DT. Applied, thanks. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference 2012-11-09 9:07 [PATCH] spi: tegra: sequence compatible strings as per preference Laxman Dewangan 2012-11-09 16:43 ` Mark Brown @ 2012-11-09 17:04 ` Stephen Warren 2012-11-09 17:10 ` Mark Brown 1 sibling, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-11-09 17:04 UTC (permalink / raw) To: Laxman Dewangan Cc: grant.likely@secretlab.ca, broonie@opensource.wolfsonmicro.com, Stephen Warren, spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org On 11/09/2012 02:07 AM, Laxman Dewangan wrote: > Sequence compatible list for tegra20-slink driver to first > look for Tegra30 and then Tegra20. Tegra30 have additional > feature in HW which need to be utilize if it is provided from DT. I don't object to this patch. However just FYI, it should not be necessary for correctness; The DT matching order is supposed to be driven purely by the order of the compatible values in the DT now, and not affected by the order of values in the table. (This wasn't always the case, but was a bug that was fixed IIRC by Thierry Reding). ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference 2012-11-09 17:04 ` Stephen Warren @ 2012-11-09 17:10 ` Mark Brown [not found] ` <20121109171008.GX23807-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Mark Brown @ 2012-11-09 17:10 UTC (permalink / raw) To: Stephen Warren Cc: Laxman Dewangan, grant.likely@secretlab.ca, Stephen Warren, spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 471 bytes --] On Fri, Nov 09, 2012 at 10:04:56AM -0700, Stephen Warren wrote: > However just FYI, it should not be necessary for correctness; The DT > matching order is supposed to be driven purely by the order of the > compatible values in the DT now, and not affected by the order of values > in the table. (This wasn't always the case, but was a bug that was fixed > IIRC by Thierry Reding). I guess the driver is being used backported in older kernels which don't have that fix? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20121109171008.GX23807-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>]
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference [not found] ` <20121109171008.GX23807-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> @ 2012-11-09 17:28 ` Stephen Warren 2012-11-10 17:07 ` Thierry Reding 0 siblings, 1 reply; 8+ messages in thread From: Stephen Warren @ 2012-11-09 17:28 UTC (permalink / raw) To: Mark Brown Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Laxman Dewangan, Stephen Warren, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 11/09/2012 10:10 AM, Mark Brown wrote: > On Fri, Nov 09, 2012 at 10:04:56AM -0700, Stephen Warren wrote: > >> However just FYI, it should not be necessary for correctness; The >> DT matching order is supposed to be driven purely by the order of >> the compatible values in the DT now, and not affected by the >> order of values in the table. (This wasn't always the case, but >> was a bug that was fixed IIRC by Thierry Reding). > > I guess the driver is being used backported in older kernels which > don't have that fix? That sounds likely. Laxman, it'd be a good idea to track down the fix to the DT matching code and backport it, so that hard-to debug issues aren't caused by the lack of that patch! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference 2012-11-09 17:28 ` Stephen Warren @ 2012-11-10 17:07 ` Thierry Reding [not found] ` <20121110170741.GA17689-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Thierry Reding @ 2012-11-10 17:07 UTC (permalink / raw) To: Stephen Warren Cc: Mark Brown, spi-devel-general@lists.sourceforge.net, Laxman Dewangan, Stephen Warren, linux-kernel@vger.kernel.org, Rob Herring [-- Attachment #1: Type: text/plain, Size: 1157 bytes --] On Fri, Nov 09, 2012 at 10:28:38AM -0700, Stephen Warren wrote: > On 11/09/2012 10:10 AM, Mark Brown wrote: > > On Fri, Nov 09, 2012 at 10:04:56AM -0700, Stephen Warren wrote: > > > >> However just FYI, it should not be necessary for correctness; The > >> DT matching order is supposed to be driven purely by the order of > >> the compatible values in the DT now, and not affected by the > >> order of values in the table. (This wasn't always the case, but > >> was a bug that was fixed IIRC by Thierry Reding). > > > > I guess the driver is being used backported in older kernels which > > don't have that fix? > > That sounds likely. Laxman, it'd be a good idea to track down the fix > to the DT matching code and backport it, so that hard-to debug issues > aren't caused by the lack of that patch! Unfortunately the patch that was supposed to fixed this caused a regression and was therefore reverted. Rob (Cc'ed) said there was a patch to fix it properly and was supposed to go into 3.6 but it seems that never happened. Rob, what's the status on this? The revert is here: bc51b0c22cebf5c311a6f1895fcca9f78efd0478 Thierry [-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20121110170741.GA17689-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>]
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference [not found] ` <20121110170741.GA17689-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org> @ 2012-12-19 17:00 ` Grant Likely 2013-01-08 7:12 ` Thierry Reding 0 siblings, 1 reply; 8+ messages in thread From: Grant Likely @ 2012-12-19 17:00 UTC (permalink / raw) To: Thierry Reding, Stephen Warren Cc: Stephen Warren, Mark Brown, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring, Laxman Dewangan, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org On Sat, 10 Nov 2012 18:07:42 +0100, Thierry Reding <thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org> wrote: > On Fri, Nov 09, 2012 at 10:28:38AM -0700, Stephen Warren wrote: > > On 11/09/2012 10:10 AM, Mark Brown wrote: > > > On Fri, Nov 09, 2012 at 10:04:56AM -0700, Stephen Warren wrote: > > > > > >> However just FYI, it should not be necessary for correctness; The > > >> DT matching order is supposed to be driven purely by the order of > > >> the compatible values in the DT now, and not affected by the > > >> order of values in the table. (This wasn't always the case, but > > >> was a bug that was fixed IIRC by Thierry Reding). > > > > > > I guess the driver is being used backported in older kernels which > > > don't have that fix? > > > > That sounds likely. Laxman, it'd be a good idea to track down the fix > > to the DT matching code and backport it, so that hard-to debug issues > > aren't caused by the lack of that patch! > > Unfortunately the patch that was supposed to fixed this caused a > regression and was therefore reverted. Rob (Cc'ed) said there was a > patch to fix it properly and was supposed to go into 3.6 but it seems > that never happened. Rob, what's the status on this? > > The revert is here: bc51b0c22cebf5c311a6f1895fcca9f78efd0478 Rob, ping on this. I think we talked about it on IRC, but I cannot remember what was said.... I must be getting old. g. ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] spi: tegra: sequence compatible strings as per preference 2012-12-19 17:00 ` Grant Likely @ 2013-01-08 7:12 ` Thierry Reding 0 siblings, 0 replies; 8+ messages in thread From: Thierry Reding @ 2013-01-08 7:12 UTC (permalink / raw) To: Grant Likely Cc: Stephen Warren, Mark Brown, spi-devel-general@lists.sourceforge.net, Laxman Dewangan, Stephen Warren, linux-kernel@vger.kernel.org, Rob Herring [-- Attachment #1: Type: text/plain, Size: 1560 bytes --] On Wed, Dec 19, 2012 at 05:00:09PM +0000, Grant Likely wrote: > On Sat, 10 Nov 2012 18:07:42 +0100, Thierry Reding <thierry.reding@avionic-design.de> wrote: > > On Fri, Nov 09, 2012 at 10:28:38AM -0700, Stephen Warren wrote: > > > On 11/09/2012 10:10 AM, Mark Brown wrote: > > > > On Fri, Nov 09, 2012 at 10:04:56AM -0700, Stephen Warren wrote: > > > > > > > >> However just FYI, it should not be necessary for correctness; The > > > >> DT matching order is supposed to be driven purely by the order of > > > >> the compatible values in the DT now, and not affected by the > > > >> order of values in the table. (This wasn't always the case, but > > > >> was a bug that was fixed IIRC by Thierry Reding). > > > > > > > > I guess the driver is being used backported in older kernels which > > > > don't have that fix? > > > > > > That sounds likely. Laxman, it'd be a good idea to track down the fix > > > to the DT matching code and backport it, so that hard-to debug issues > > > aren't caused by the lack of that patch! > > > > Unfortunately the patch that was supposed to fixed this caused a > > regression and was therefore reverted. Rob (Cc'ed) said there was a > > patch to fix it properly and was supposed to go into 3.6 but it seems > > that never happened. Rob, what's the status on this? > > > > The revert is here: bc51b0c22cebf5c311a6f1895fcca9f78efd0478 > > Rob, ping on this. I think we talked about it on IRC, but I cannot > remember what was said.... I must be getting old. Any news on this one? Thierry [-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-01-08 7:12 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-09 9:07 [PATCH] spi: tegra: sequence compatible strings as per preference Laxman Dewangan 2012-11-09 16:43 ` Mark Brown 2012-11-09 17:04 ` Stephen Warren 2012-11-09 17:10 ` Mark Brown [not found] ` <20121109171008.GX23807-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> 2012-11-09 17:28 ` Stephen Warren 2012-11-10 17:07 ` Thierry Reding [not found] ` <20121110170741.GA17689-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org> 2012-12-19 17:00 ` Grant Likely 2013-01-08 7:12 ` Thierry Reding
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).