1. 20 7月, 2016 3 次提交
    • T
      libata-scsi: better style in ata_msense_*() · 737bee93
      Tom Yan 提交于
      `changeable` is the "version" of mode page requested by the user.
      It will be less confusing/misleading if we do not check it
      "together" with the setting bits of the drive.
      
      Not to mention that we currently have ata_mselect_*() implemented
      in a way that each of them will serve exclusively a particular bit
      on each page. The old style will hence make the condition look even
      more unnecessarily arcane if the ata_msense_*() is reflecting more
      than one bit.
      Signed-off-by: NTom Yan <tom.ty89@gmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      737bee93
    • P
      AHCI: Clear GHC.IS to prevent unexpectly asserting INTx · 0516900a
      Pang Raymond 提交于
      Due to PCI subsystem behaviour, unloading AHCI driver will disable
      MSI and enable INTx. When HBA supports MSIx or Multiple MSI, Driver's
      irq handler doesn't clear GHC.IS register. It works well when reading or
      writing data and GHC.IS is always non-zero. But when unloading driver
      (or any other operation which causes disable MSIx and enable INTx), PCI
       subsystem uses config write(Rx04.bit10) to enable INTx. Because
      GHC.IS is non-zero, HBA will falsely assume some port needs interrupt
      service. Then it asserts INTx. To make things worse, when AHCI controller
      shares the same interrupt pin with other PCI device, that PCI device's ISR
      will be called and nobody de-asserts previous INTx.
      This patch clears GHC.IS in ahci_port_stop() even when using MSIx or
      MMSI to prevent this case. It ensures GHC.IS is zero before PCI subsystem
      enables INTx.
      
      tj: Minor updates to the comment.
      Signed-off-by: NRaymond Pang <raymond_rule@hotmail.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      0516900a
    • W
      ata: sata_dwc_460ex: remove redundant dev_err call · 01c29206
      Wei Yongjun 提交于
      There is a error message within devm_ioremap_resource
      already, so remove the dev_err call to avoid redundant
      error message.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      01c29206
  2. 19 7月, 2016 4 次提交
  3. 15 7月, 2016 4 次提交
  4. 14 7月, 2016 5 次提交
  5. 13 7月, 2016 4 次提交
  6. 12 7月, 2016 5 次提交
  7. 07 7月, 2016 2 次提交
  8. 29 6月, 2016 1 次提交
  9. 18 6月, 2016 1 次提交
    • A
      ata: fix "ering" sysfs time printing · f3f99d37
      Arnd Bergmann 提交于
      The sysfs file for the libata error handling has multiple issues
      in the way it prints time stamps:
      
       * it prints a 9-digit nanosecond value using a %06lu format string,
         which drops some leading zeroes
       * it converts a 64-bit jiffes value to a timespec using
         jiffies_to_timespec(), which takes a 'long' argument, so the
         result is wrong after a jiffies overflow (49 days).
       * we try to avoid using timespec because that generally overflows
         in 2038, although this particular usage is ok.
      
      This replaces the jiffies_to_timespec call with an open-coded
      implementation that gets it right.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      f3f99d37
  10. 17 6月, 2016 7 次提交
  11. 27 5月, 2016 4 次提交