1. 23 3月, 2018 4 次提交
  2. 03 1月, 2018 1 次提交
  3. 02 1月, 2018 14 次提交
  4. 06 12月, 2017 1 次提交
  5. 04 12月, 2017 1 次提交
  6. 29 11月, 2017 3 次提交
  7. 06 11月, 2017 1 次提交
    • J
      eeprom: at24: Add OF device ID table · 7f2a2f0d
      Javier Martinez Canillas 提交于
      The driver doesn't have a struct of_device_id table but supported devices
      are registered via Device Trees. This is working on the assumption that a
      I2C device registered via OF will always match a legacy I2C device ID and
      that the MODALIAS reported will always be of the form i2c:<device>.
      
      But this could change in the future so the correct approach is to have an
      OF device ID table if the devices are registered via OF.
      
      To maintain backward compatibility with old Device Trees, only use the OF
      device ID table .data if the device was registered via OF and the OF node
      compatible matches an entry in the OF device ID table.
      Suggested-by: NWolfram Sang <wsa@the-dreams.de>
      Signed-off-by: NJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      7f2a2f0d
  8. 18 10月, 2017 2 次提交
  9. 12 2月, 2017 1 次提交
    • B
      misc: eeprom: at24: use device_property_*() functions instead of of_get_property() · dd905a61
      Ben Gardner 提交于
      Allow the at24 driver to get configuration information from both OF and
      ACPI by using the more generic device_property functions.
      This change was inspired by the at25.c driver.
      
      I have a custom board with a ST M24C02 EEPROM attached to an I2C bus.
      With the following ACPI construct, this patch instantiates a working
      instance of the driver.
      
      Device (EEP0) {
       Name (_HID, "PRP0001")
       Name (_DSD, Package () {
        ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
        Package () {
         Package () {"compatible", Package () {"st,24c02"}},
         Package () {"pagesize", 16},
        },
       })
       Name (_CRS, ResourceTemplate () {
        I2cSerialBus (
         0x0057, ControllerInitiated, 400000,
         AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0x00,
         ResourceConsumer,,)
       })
      }
      Signed-off-by: NBen Gardner <gardner.ben@gmail.com>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      dd905a61
  10. 22 8月, 2016 1 次提交
    • B
      eeprom: at24: check if the chip is functional in probe() · 00f0ea70
      Bartosz Golaszewski 提交于
      The at24 driver doesn't check if the chip is functional in its probe
      function. This leads to instantiating devices that are not physically
      present. For example the cape EEPROMs for BeagleBone Black are defined
      in the device tree at four addresses on i2c2, but normally only one of
      them is present.
      
      If the userspace doesn't know the location in advance, it will need to
      check if reading the nvmem attributes fails to determine which EEPROM
      is actually there.
      
      Try to read a single byte in probe() and bail-out with -ENODEV if the
      read fails.
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      00f0ea70
  11. 19 7月, 2016 1 次提交
  12. 18 7月, 2016 9 次提交
  13. 02 5月, 2016 1 次提交