Re: [PATCH 04/25] scsi: hisi_sas: add scsi host registration

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 10:16:55 John Garry wrote: > > > > >> + sha = SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; > >> + platform_set_drvdata(pdev, sha); > >> + > >> + phy_nr = port_nr = HISI_SAS_MAX_PHYS; > >> + > >> + arr_phy = devm_kcalloc(dev, phy_nr, sizeof(void *), GF

Re: [PATCH 04/25] scsi: hisi_sas: add scsi host registration

2015-10-13 Thread John Garry
On 12/10/2015 16:21, Arnd Bergmann wrote: On Monday 12 October 2015 23:20:16 John Garry wrote: + + shost = scsi_host_alloc(&hisi_sas_sht, sizeof(void *)); + if (!shost) + return -ENOMEM; + + hisi_hba = hisi_sas_hba_alloc(pdev, shost, np); + if (!hisi_hba) {

Re: [PATCH 04/25] scsi: hisi_sas: add scsi host registration

2015-10-12 Thread Arnd Bergmann
On Monday 12 October 2015 23:20:16 John Garry wrote: > + > + shost = scsi_host_alloc(&hisi_sas_sht, sizeof(void *)); > + if (!shost) > + return -ENOMEM; > + > + hisi_hba = hisi_sas_hba_alloc(pdev, shost, np); > + if (!hisi_hba) { > + rc = -ENOMEM;

[PATCH 04/25] scsi: hisi_sas: add scsi host registration

2015-10-12 Thread John Garry
Add functionality to register device as a scsi host. The SAS domain transport ops are empty at this point. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 32 + drivers/scsi/hisi_sas/hisi_sas_init.c | 125 ++ 2 files changed, 157 in