From: Mark Lord Date: Wed, 18 Jun 2008 16:11:16 +0000 (-0400) Subject: sata_mv: enable async_notify for 60x1 Rev.C0 and higher X-Git-Tag: accepted/tizen/common/20141203.182822~21746^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd0a70ee9cc30ae81b39cb5ecad0fa7bcb4675b;p=platform%2Fkernel%2Flinux-arm64.git sata_mv: enable async_notify for 60x1 Rev.C0 and higher The early chipsets cannot safely handle Async Notification (AN), but 6041/6081 chip revision "C0" (and newer) can handle it. So allow AN for "C0" and higher. This enables use of hotplug on PMP ports for the 6041/6081 PCI Rev.9 chips. Signed-off-by: Mark Lord Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 60391e9..75fde48 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -1322,6 +1322,9 @@ static int mv_port_start(struct ata_port *ap) goto out_port_free_dma_mem; memset(pp->crpb, 0, MV_CRPB_Q_SZ); + /* 6041/6081 Rev. "C0" (and newer) are okay with async notify */ + if (hpriv->hp_flags & MV_HP_ERRATA_60X1C0) + ap->flags |= ATA_FLAG_AN; /* * For GEN_I, there's no NCQ, so we only allocate a single sg_tbl. * For later hardware, we need one unique sg_tbl per NCQ tag.