Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1592079
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it |
| Date | 2017-03-03 16:50 +0100 |
| Message-ID | <tgXCW-3fA-27@gated-at.bofh.it> (permalink) |
| References | <tgWnw-2po-23@gated-at.bofh.it> <tgX9T-31z-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello Alexandre, On 03/03/2017 12:01 PM, Alexandre Belloni wrote: > Hi, > > On 03/03/2017 at 11:29:11 -0300, Javier Martinez Canillas wrote: >> This series add OF device ID tables to RTC I2C drivers whose devices are >> either used in Device Tree source files or are listed in binding docs as >> a compatible string. >> >> That's done because the plan is to change the I2C core to report proper OF >> modaliases instead of always reporting a MODALIAS=i2c:<foo> regardless if >> a device was registered via DT or using the legacy platform data. >> > > Doesn't that break the DT ABI for all i2c devices? A lot of people are > getting the vendor wrong in the compatible string and because the i2c > core doesn't care, the driver is still probed. Dropping that will break > all those DTBs. > Or will that only affect module autoload? > The change will only be for module autoload. The I2C core will still attempt to match the I2C device ID table as a fallback if fails to match the OF one. So there's no change in the match logic for drivers that do the wrong thing. If someone is using a wrong vendor prefix and the DT can't be changed, then an entry in the OF device ID table has to be added for "wrong_vendor,device" so the MODALIAS uevent can be "of:N*T*wrong_vendor,device". This is the RFC patch for the I2C core so you get a better idea: https://patchwork.kernel.org/patch/6903981/ Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
[PATCH 08/13] rtc: ds1374: Set .of_match_table to OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
[PATCH 02/13] rtc: rv3029: Add OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
[PATCH 05/13] rtc: rx8010: Add OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
[PATCH 07/13] rtc: rtc-ds1672: Add OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
[PATCH 01/13] rtc: rv8803: Add OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 15:40 +0100
Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-03-03 16:20 +0100
Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 16:50 +0100
Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-03-03 17:30 +0100
Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-03 18:20 +0100
Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-03-09 04:40 +0100
csiph-web