OSDN Git Service

scsi: hisi_sas: Drop hisi_sas_hw.get_free_slot
authorJohn Garry <john.garry@huawei.com>
Mon, 5 Aug 2019 13:47:59 +0000 (21:47 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 02:13:14 +0000 (22:13 -0400)
commit897cc769bcc09204cb80ce5db7a8d9c404bdb6ec
tree95ee4a88b7225dbc0729aabcb082a12fb0e4752c
parent93352abc81a90314bf032038200ce96989a32c62
scsi: hisi_sas: Drop hisi_sas_hw.get_free_slot

In commit 1273d65f29045 ("scsi: hisi_sas: change queue depth from 512 to
4096"), the depth of each queue is the same as the max IPTT in the system.

As such, as long as we have an IPTT allocated, we will have enough space on
any delivery queue.

All .get_free_slot functions were checking for space on the queue by
reading the DQ read pointer. Drop this, and also raise the code into common
code, as there is nothing hw specific remaining.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c