spi: tegra: sequence compatible strings as per preference
Subsystems (3)
Laxman Dewangan
maintainerPATCH 1/1 spi: tegra: sequence compatible strings as per preference
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.
--- drivers/spi/spi-tegra20-slink.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/spi-tegra20-slink.c +1 -1
@@ -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);
Signature · 8 lines
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
Mark Brown
AppliedQuoted 3 lines · Laxman Dewangan
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.
Quoted 3 lines · Laxman Dewangan
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).
Quoted 5 lines · Stephen Warren
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?
Quoted 10 lines · Mark Brown
Quoted 5 lines · Stephen Warren
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
Quoted 9 lines · Stephen Warren
Quoted 8 lines · Mark Brown
Quoted 5 lines · Stephen Warren
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).
Quoted 6 lines
Quoted 2 lines
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
Quoted 17 lines · Thierry Reding
Quoted 9 lines · Stephen Warren
Quoted 8 lines · Mark Brown
Quoted 5 lines · Stephen Warren
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).
Quoted 6 lines
Quoted 2 lines
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!
Quoted 6 lines
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
Quoted 23 lines · Grant Likely
Quoted 22 lines · Thierry Reding
Quoted 9 lines · Stephen Warren
Quoted 8 lines · Mark Brown
Quoted 5 lines · Stephen Warren
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).
Quoted 6 lines
Quoted 2 lines
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?
Quoted 4 lines
Quoted 1 line
The revert is here:
bc51b0c22cebf5c311a6f1895fcca9f78efd0478Rob, 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