From: Bartlomiej Zolnierkiewicz Date: Sat, 13 Oct 2007 15:47:48 +0000 (+0200) Subject: ide-pmac: pmac_ide_tune_chipset() fixes X-Git-Tag: v2.6.24-rc1~1363^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085798b12ffebd69c13c8ce05fabc8ed5ac43e63;p=pandora-kernel.git ide-pmac: pmac_ide_tune_chipset() fixes * Don't check check for pmif == NULL (it should never be NULL if we got here). * Make a local copy of the timings and set the pmif->timings[] only after setting the transfer mode on the device (otherwise SELECT_DRIVE() call in pmac_ide_do_setfeature() will program new timings before the transfer mode is set on the device - this was pointed out by Sergei). This change makes pmac_ide_tune_chipset() behavior match this of pmac_ide_{m,u}dma_enable(). Acked-by: Benjamin Herrenschmidt Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed