OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 13... | Line 13... | |||
13 | + } |
13 | + } |
|
14 | + |
14 | + |
|
15 | /* initialize internal qc */ |
15 | /* initialize internal qc */ |
|
Line 16... | Line 16... | |||
16 | |
16 | |
|
17 | /* XXX: Tag 0 is used for drivers with legacy EH as some |
17 | /* XXX: Tag 0 is used for drivers with legacy EH as some |
|
18 | @@ -5128,6 +5136,9 @@ struct ata_queued_cmd *ata_qc_new_init(s |
18 | @@ -5127,6 +5135,9 @@ struct ata_queued_cmd *ata_qc_new_init(s |
|
19 | if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) |
19 | if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) |
|
Line 20... | Line 20... | |||
20 | return NULL; |
20 | return NULL; |
|
21 | |
21 | |
|
22 | + if (ap->ops->qc_new && ap->ops->qc_new(ap)) |
22 | + if (ap->ops->qc_new && ap->ops->qc_new(ap)) |
|
23 | + return NULL; |
23 | + return NULL; |
|
24 | + |
24 | + |
|
25 | /* libsas case */ |
25 | /* libsas case */ |
|
26 | if (ap->flags & ATA_FLAG_SAS_HOST) { |
26 | if (ap->flags & ATA_FLAG_SAS_HOST) { |
|
27 | tag = ata_sas_allocate_tag(ap); |
27 | tag = ata_sas_allocate_tag(ap); |
|
28 | @@ -5173,6 +5184,8 @@ void ata_qc_free(struct ata_queued_cmd * |
28 | @@ -5172,6 +5183,8 @@ void ata_qc_free(struct ata_queued_cmd * |
|
29 | qc->tag = ATA_TAG_POISON; |
29 | qc->tag = ATA_TAG_POISON; |
|
30 | if (ap->flags & ATA_FLAG_SAS_HOST) |
30 | if (ap->flags & ATA_FLAG_SAS_HOST) |
|
31 | ata_sas_free_tag(tag, ap); |
31 | ata_sas_free_tag(tag, ap); |