]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hisi_sas: support deferred probe for v2 hw
authorJohn Garry <john.garry@huawei.com>
Tue, 6 Dec 2016 12:44:07 +0000 (20:44 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Dec 2016 23:55:58 +0000 (18:55 -0500)
commit26f3ba9600e5d4437bb7299d2b01003b0d93e853
treef8a94df29c35fe84d3a8f198a86517f24bd75e6c
parentfad119b707f8cc01b259b8585af4f9688e57c9a7
scsi: hisi_sas: support deferred probe for v2 hw

In the hip06 and hip07 SoCs, the interrupt lines from the SAS
controllers are connected to mbigen hw module [1].  The mbigen module is
probed with module_init, and, as such, is not guaranteed to probe before
the SAS driver. So we need to support deferred probe.

We check for probe deferral in the hw layer probe, so we not probe into
the main layer and allocate shost, memories, etc., to later learn that
we need to defer the probe.

[1] ./Documentation/devicetree/bindings/interrupt-controller/hisilicon,mbigen-v2.txt

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c