Message ID | CAP0P+NWw2goofPtk5v8qKqAkhGwVJ7Bwn+Pj6meNhyK3KE2CAQ@mail.gmail.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
Hello, On Tue, Oct 15, 2013 at 11:40:27AM +0800, xiangliang yu wrote: > @@ -1278,6 +1280,11 @@ int ahci_do_softreset(struct ata_link *link, > unsigned int *class, > if (rc && rc != -EOPNOTSUPP) > ata_link_warn(link, "failed to reset engine (errno=%d)\n", rc); > Please add a comment here. > + if (!ata_is_host_link(link) && pp->fbs_enabled) { > + ahci_disable_fbs(ap); > + fbs_flag = true; > + } White space damaged? > + > ata_tf_init(link->device, &tf); > > /* issue the first D2H Register FIS */ > @@ -1318,6 +1325,9 @@ int ahci_do_softreset(struct ata_link *link, > unsigned int *class, > } else > *class = ahci_dev_classify(ap); > > + if (fbs_flag) > + ahci_enable_fbs(ap); > + Thanks.
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 34c8216..c2a29bf 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1266,9 +1266,11 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class, { struct ata_port *ap = link->ap; struct ahci_host_priv *hpriv = ap->host->private_data; + struct ahci_port_priv *pp = ap->private_data; const char *reason = NULL; unsigned long now, msecs; struct ata_taskfile tf; + bool fbs_flag = false; int rc;