Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1271184
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: spi: OF module autoloading is still broken |
| Date | 2015-11-17 14:40 +0100 |
| Message-ID | <qvOEi-5DR-3@gated-at.bofh.it> (permalink) |
| References | (6 earlier) <qvySR-3Je-9@gated-at.bofh.it> <qvzFf-4gl-17@gated-at.bofh.it> <qvzYC-4nO-25@gated-at.bofh.it> <qvOkW-5vY-15@gated-at.bofh.it> <qvOkW-5vY-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello Mark, On 11/17/2015 10:19 AM, Mark Brown wrote: > On Tue, Nov 17, 2015 at 10:14:27AM -0300, Javier Martinez Canillas wrote: >> On 11/16/2015 06:51 PM, Brian Norris wrote: > >>> Lest someone else wonder whether this is theoretical or not, I'll save >>> them the work in pointing at an example: "st,st33zp24". See: > >>> Documentation/devicetree/bindings/security/tpm/st33zp24-*.txt > >>> and the code is in drivers/char/tpm/st33zp24/, sharing the same core >>> library, suggesting that the devices really are the same except simply >>> the bus. > >> Thanks for pointing out that example although for that specific case, >> the drivers' compatible are "st,st33zp24-i2c" and "st,st33zp24-spi" to >> avoid the issue explained before. > > Eew, that's gross. > Well, I'm not the author of the driver but I've seen many drivers doing the same so I believe the reason is to avoid the issue explained before. >> I still didn't find an example where the same compatible string is >> used for different drivers (i.e: "st,st33zp24" or "google,cros-ec") >> but the fact that is possible for legacy and not for OF is worrisome. > > There's a bunch of audio CODEC and PMIC drivers, arizona is the first > example that springs to mind but it's very common to have mixed signal > devices devices which can run in both I2C and SPI modes. > Thanks a lot for the examples, I just looked at the arizona MFD drivers and indeed the same OF device ID table is used for both the SPI and I2C drivers. Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-16 18:20 +0100
Re: spi: OF module autoloading is still broken Mark Brown <broonie@kernel.org> - 2015-11-16 19:00 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-16 19:00 +0100
Re: spi: OF module autoloading is still broken Brian Norris <computersforpeace@gmail.com> - 2015-11-16 20:30 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-16 21:10 +0100
Re: spi: OF module autoloading is still broken Brian Norris <computersforpeace@gmail.com> - 2015-11-16 21:50 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-16 22:40 +0100
Re: spi: OF module autoloading is still broken Brian Norris <computersforpeace@gmail.com> - 2015-11-16 23:00 +0100
Re: spi: OF module autoloading is still broken Mark Brown <broonie@kernel.org> - 2015-11-17 14:20 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-17 14:40 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-17 14:20 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-18 21:10 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-19 13:50 +0100
Re: spi: OF module autoloading is still broken Mark Brown <broonie@kernel.org> - 2015-11-17 14:40 +0100
Re: spi: OF module autoloading is still broken Javier Martinez Canillas <javier@osg.samsung.com> - 2015-11-17 14:40 +0100
csiph-web