1. 28 Aug, 2017 3 commits
    • Andrew Jeffery's avatar
      i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency · 95fd3ad9
      Andrew Jeffery authored
      In addition to the base, low and high clock configuration, the AC timing
      register #1 on the AST2400 houses fields controlling:
      
      1. tBUF: Minimum delay between Stop and Start conditions
      2. tHDSTA: Hold time for the Start condition
      3. tACST: Setup time for Start and Stop conditions, and hold time for the
         Repeated Start condition
      
      These values are defined in hardware on the AST2500 and therefore don't
      need to be set.
      
      aspeed_i2c_init_clk() was performing a direct write of the generated
      clock values rather than a read/mask/modify/update sequence to retain
      tBUF, tHDSTA and tACST, and therefore cleared the tBUF, tHDSTA and tACST
      fields on the AST2400. This resulted in a delay/setup/hold time of 1
      base clock, which in some configurations is not enough for some devices
      (e.g. the MAX31785 fan controller, with an APB of 48MHz and a desired
      bus speed of 100kHz).
      Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
      Tested-by: default avatarBrendan Higgins <brendanhiggins@google.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      95fd3ad9
    • Javier Martinez Canillas's avatar
      dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones · 2f13f8c5
      Javier Martinez Canillas authored
      The at24 driver allows to register I2C EEPROM chips using different vendor
      and devices, but the I2C subsystem does not take the vendor into account
      when matching using the I2C table since it only has device entries.
      
      But when matching using an OF table, both the vendor and device has to be
      taken into account so the driver defines only a set of compatible strings
      using the "atmel" vendor as a generic fallback for compatible I2C devices.
      
      Document in the Device Tree binding document that this manufacturer should
      be used as the generic fallback. Also document the deprecated vendors.
      Suggested-by: default avatarWolfram Sang <wsa@the-dreams.de>
      Suggested-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarJavier Martinez Canillas <javier@dowhile0.org>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      2f13f8c5
    • Qiuxu Zhuo's avatar
      i2c: i801: Restore the presence state of P2SB PCI device after reading BAR · bfd4473b
      Qiuxu Zhuo authored
      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: default avatarQiuxu Zhuo <qiuxu.zhuo@intel.com>
      Reported-by: default avatarYunying Sun <yunying.sun@intel.com>
      Tested-by: default avatarYunying Sun <yunying.sun@intel.com>
      Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      bfd4473b
  2. 27 Aug, 2017 7 commits
  3. 22 Aug, 2017 2 commits
  4. 17 Aug, 2017 7 commits
  5. 14 Aug, 2017 10 commits
  6. 13 Aug, 2017 2 commits
  7. 12 Aug, 2017 7 commits
  8. 07 Aug, 2017 1 commit
  9. 06 Aug, 2017 1 commit