1. 17 5月, 2018 1 次提交
    • A
      i2c: i801: fix unused-function warning · 4b2f9bd5
      Anders Roxell 提交于
      With CONFIG_PM, we get a harmless build warning:
      drivers/i2c/busses/i2c-i801.c:1723:12: warning: ‘i801_resume’ defined but not used [-Wunused-function]
       static int i801_resume(struct device *dev)
                  ^~~~~~~~~~~
      drivers/i2c/busses/i2c-i801.c:1714:12: warning: ‘i801_suspend’ defined but not used [-Wunused-function]
       static int i801_suspend(struct device *dev)
                  ^~~~~~~~~~~~
      
      Follow design pattern from other drivers like i2c-brcmstb, i2c-mpc,
      i2c-ocores, i2c-pnx, i2c-puv3, i2c-st, i2c-stu300 and i2c-mux-pca954x
      and changing the ifdef CONFIG_PM to CONFIG_PM_SLEEP.
      
      Fixes: a9c8088c ("i2c: i801: Don't restore config registers on runtime PM")
      Signed-off-by: NAnders Roxell <anders.roxell@linaro.org>
      Reviewed-by: NJean Delvare <jdelvare@suse.de>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      4b2f9bd5
  2. 30 4月, 2018 1 次提交
  3. 12 4月, 2018 2 次提交
  4. 21 2月, 2018 1 次提交
  5. 28 11月, 2017 1 次提交
  6. 05 10月, 2017 1 次提交
  7. 28 8月, 2017 1 次提交
    • Q
      i2c: i801: Restore the presence state of P2SB PCI device after reading BAR · bfd4473b
      Qiuxu Zhuo 提交于
      Sun, Yunying reported the following failure on Denverton micro-server:
      
       EDAC DEBUG: pnd2_init:
       EDAC DEBUG: pnd2_probe:
       EDAC DEBUG: dnv_rd_reg: Read b_cr_tolud_pci=00000000_80000000
       EDAC DEBUG: dnv_rd_reg: Read b_cr_touud_lo_pci=00000000_80000000
       EDAC DEBUG: dnv_rd_reg: Read b_cr_touud_hi_pci=00000000_00000004
       EDAC DEBUG: dnv_rd_reg: Read b_cr_asym_mem_region0_mchbar=00000000_00000000
       EDAC DEBUG: dnv_rd_reg: Read b_cr_asym_mem_region1_mchbar=00000000_00000000
       EDAC DEBUG: dnv_rd_reg: Read b_cr_mot_out_base_mchbar=00000000_00000000
       EDAC DEBUG: dnv_rd_reg: Read b_cr_mot_out_mask_mchbar=00000000_00000000
       EDAC pnd2: Failed to register device with error -19.
      
      On Denverton micro-server, the presence of the P2SB bridge PCI device is
      enabled or disabled by the item 'RelaxSecConf' in BIOS setup menu. When
      'RelaxSecConf' is enabled, the P2SB PCI device is present and the pnd2_edac
      EDAC driver also uses it to get BAR. Hiding the P2SB PCI device caused the
      pnd2_edac EDAC driver failed to get BAR then reported the above failure.
      
      Therefor, store the presence state of P2SB PCI device before unhiding it
      for reading BAR and restore the presence state after reading BAR.
      Signed-off-by: NQiuxu Zhuo <qiuxu.zhuo@intel.com>
      Reported-by: NYunying Sun <yunying.sun@intel.com>
      Tested-by: NYunying Sun <yunying.sun@intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      bfd4473b
  8. 19 6月, 2017 1 次提交
  9. 10 2月, 2017 1 次提交
  10. 24 11月, 2016 6 次提交
  11. 25 10月, 2016 1 次提交
  12. 29 9月, 2016 1 次提交
  13. 24 9月, 2016 1 次提交
  14. 22 8月, 2016 1 次提交
  15. 26 7月, 2016 1 次提交
  16. 05 7月, 2016 1 次提交
  17. 02 7月, 2016 1 次提交
  18. 14 6月, 2016 1 次提交
  19. 10 6月, 2016 1 次提交
  20. 13 4月, 2016 2 次提交
  21. 12 3月, 2016 1 次提交
  22. 18 2月, 2016 1 次提交
  23. 20 11月, 2015 1 次提交
  24. 25 10月, 2015 1 次提交
    • D
      i2c: add ACPI support for I2C mux ports · 8eb5c87a
      Dustin Byford 提交于
      Although I2C mux devices are easily enumerated using ACPI (_HID/_CID or
      device property compatible string match), enumerating I2C client devices
      connected through an I2C mux needs a little extra work.
      
      This change implements a method for describing an I2C device hierarchy that
      includes mux devices by using an ACPI Device() for each mux channel along
      with an _ADR to set the channel number for the device.  See
      Documentation/acpi/i2c-muxes.txt for a simple example.
      
      To make this work the ismt, i801, and designware pci/platform devs now
      share an ACPI companion with their I2C adapter dev similar to how it's done
      in OF.  This is done on the assumption that power management functions will
      not be called directly on the I2C dev that is sharing the ACPI node.
      Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NDustin Byford <dustin@cumulusnetworks.com>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      8eb5c87a
  25. 24 10月, 2015 2 次提交
  26. 11 8月, 2015 1 次提交
  27. 09 3月, 2015 5 次提交
  28. 13 11月, 2014 1 次提交