pata_it8213: fix wrong MWDMA timings being programmed
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 3 Dec 2009 19:32:10 +0000 (20:32 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 3 Dec 2009 21:01:39 +0000 (16:01 -0500)
commite3f1d5cd114dad010376c78e5c8eb8c5fe114f80
treeb7c8185fc6ee1a64c34bbef25110ceda3b22df44
parented869ff0c70d482de0dc97c3138ff42cbf87aed5
pata_it8213: fix wrong MWDMA timings being programmed

Clear old MWDMA timings before programming new ones (IT8213
is a single port host so there is no need to check ap->port_no).

This change should be safe as this is how we have been doing
things in IDE it8213 host driver for years.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_it8213.c