hda errors on iBook G4
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sat Oct 23 09:30:56 EST 2004
On Sat, 2004-10-23 at 01:59, Colin Leroy wrote:
> On 22 Oct 2004 at 17h10, Colin Leroy wrote:
>
> Hi,
>
> > I noticed hda status errors in my iBook G4's dmesg quite a long time
> > ago, but never looked any more... Today I just ran tests with hdparm
> > and this looks like really reproduceable:
>
> I found one strange thing in drivers/ide/ppc/pmac.c:
>
> pmac_ide_do_setfeature(ide_drive_t *drive, u8 command) {...}
>
> pmac_ide_udma_enable(ide_drive_t *drive, u16 mode)
> {...
> ret = pmac_ide_do_setfeature(drive, mode);
> ...}
>
> We really want to pass u16 to the function taking an u8 arg?
> (just a wild shot, it's probably wanted, but i thought i'd share).
It's a thinko, but it's always a u8 anyway
Ben.
More information about the Linuxppc-dev
mailing list