PATCH for ATAng
Hiroyuki Aizu
eyes at navi.org
Thu Oct 16 07:17:42 PDT 2003
Hi.
The original ata_reset() lost ATA-master drive and remove main file system
after suspend/resume. Of cource it occors panic!
I think that the ata_reset() in ata-lowlevel.c is bogus and I can not
understand the code. So I study ATA and rewrite ata_reset() completely.
New device detect algorism using ata command ATA_IDENTIFY_DEVICE and
ATA_IDENTIFY_PACKET_DEVICE for judge ATA and ATAPI devices.
This patch works fine with my TOSHIBA Libretto L5.
But not yet test ATAPI devices and ATA-slave channel.
Maybe there is need to adjust wait DELAY time.
Please test and replace ata_reset().
I hope this solve ATAng troubles.
--
Hiroyuki Aizu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ata-lowlevel.c.diff
Type: application/octet-stream
Size: 10197 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031016/d74ca678/ata-lowlevel.c.obj
More information about the freebsd-current
mailing list