mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[SCSI] pm8001: enhance error handle for IO patch
Enhance error handle for IO patch, when the port is down, fast return phy down for task. Signed-off-by: Jack Wang <jack_wang@usish.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
9e79e12554
commit
1cc943ae50
4 changed files with 84 additions and 5 deletions
|
@ -200,8 +200,13 @@ static int __devinit pm8001_alloc(struct pm8001_hba_info *pm8001_ha)
|
|||
{
|
||||
int i;
|
||||
spin_lock_init(&pm8001_ha->lock);
|
||||
for (i = 0; i < pm8001_ha->chip->n_phy; i++)
|
||||
for (i = 0; i < pm8001_ha->chip->n_phy; i++) {
|
||||
pm8001_phy_init(pm8001_ha, i);
|
||||
pm8001_ha->port[i].wide_port_phymap = 0;
|
||||
pm8001_ha->port[i].port_attached = 0;
|
||||
pm8001_ha->port[i].port_state = 0;
|
||||
INIT_LIST_HEAD(&pm8001_ha->port[i].list);
|
||||
}
|
||||
|
||||
pm8001_ha->tags = kzalloc(PM8001_MAX_CCB, GFP_KERNEL);
|
||||
if (!pm8001_ha->tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue