1. 30 3月, 2017 2 次提交
    • A
      scsi: hisi_sas: fix SATA dependency · 8bb74d36
      Arnd Bergmann 提交于
      Removing the 'select SCSI_SAS_LIBSAS' statement in Kconfig resulted in a
      link failure in configurations that have hisi_sas built-in but libsas as
      a loadable module:
      
      drivers/scsi/built-in.o: In function `hisi_sas_scan_finished':
      hisi_sas_main.c:(.text+0x37ce9): undefined reference to `sas_drain_work'
      drivers/scsi/built-in.o: In function `hisi_sas_slave_configure':
      hisi_sas_main.c:(.text+0x37d17): undefined reference to `sas_slave_configure'
      hisi_sas_main.c:(.text+0x37d40): undefined reference to `sas_change_queue_depth'
      drivers/scsi/built-in.o: In function `hisi_sas_remove':
      
      All other libsas users have the 'select' statement, so we should do the
      same here for consistency. For all I can tell, the patch that added the
      sata softreset does not actually introduce a dependency on SCSI_SAS_ATA
      but instead adds calls into libata itself, so we can express that with a
      more specific dependency.
      
      We cannot have 'select SCSI_SAS_LIBSAS; depends on SCSI_SAS_ATA' as that
      would cause a dependency loop.
      
      Fixes: 7c594f04 ("scsi: hisi_sas: add softreset function for SATA disk")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      8bb74d36
    • C
      scsi: hisi_sas: add missing break in switch statement · a28b259b
      Colin Ian King 提交于
      It appears that a break in the TRANS_TX_OPEN_CNX_ERR_NO_DESTINATION case
      got accidentally removed in an earlier commit, as it stands, the
      ts->stat and ts->open_rej_reason are being updated twice for this case
      which looks incorrect.  Fix this by adding in the missing break
      statement.
      
      Detected by CoverityScan, CID#1422110 ("Missing break in switch")
      
      Fixes: 634a9585 ("scsi: hisi_sas: process error codes according to their priority")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Acked-by: NJohn Garry <john.garry@huawei.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      a28b259b
  2. 23 3月, 2017 23 次提交
  3. 21 1月, 2017 7 次提交
  4. 06 1月, 2017 3 次提交
  5. 08 12月, 2016 1 次提交
  6. 06 12月, 2016 1 次提交
  7. 30 11月, 2016 1 次提交
  8. 25 11月, 2016 2 次提交