mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Restore transfermode on devices after reinit.
This commit is contained in:
parent
6235c1f6ae
commit
82681884cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120967
@ -276,6 +276,13 @@ ata_reinit(struct ata_channel *ch)
|
||||
ch->device[SLAVE].attach)
|
||||
ch->device[SLAVE].attach(&ch->device[SLAVE]);
|
||||
}
|
||||
|
||||
/* restore transfermode on devices */
|
||||
if (ch->devices & (ATA_ATA_MASTER | ATA_ATAPI_MASTER))
|
||||
ch->device[MASTER].setmode(&ch->device[MASTER],ch->device[MASTER].mode);
|
||||
if (ch->devices & (ATA_ATA_SLAVE | ATA_ATAPI_SLAVE))
|
||||
ch->device[SLAVE].setmode(&ch->device[SLAVE], ch->device[SLAVE].mode);
|
||||
|
||||
#ifdef DEV_ATAPICAM
|
||||
atapi_cam_reinit_bus(ch);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user