mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-18 15:53:37 +00:00
Resetting using COR bit 7 appears to be bad on pci based systems.
#ifdef it out for now.
This commit is contained in:
parent
6ccdb5e44b
commit
0becf102d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77683
|
@ -825,6 +825,7 @@ setup_slot(struct slot *sp)
|
|||
offs = sp->cis->reg_addr;
|
||||
rw_flags = MDF_ATTR;
|
||||
ioctl(sp->fd, PIOCRWFLAG, &rw_flags);
|
||||
#if RESET_MAY_BE_HARMFUL
|
||||
lseek(sp->fd, offs, SEEK_SET);
|
||||
c = 0x80;
|
||||
write(sp->fd, &c, sizeof(c));
|
||||
|
@ -833,6 +834,7 @@ setup_slot(struct slot *sp)
|
|||
c = 0x00;
|
||||
write(sp->fd, &c, sizeof(c));
|
||||
usleep(sp->card->reset_time * 1000);
|
||||
#endif
|
||||
lseek(sp->fd, offs, SEEK_SET);
|
||||
c = sp->config->index;
|
||||
c |= 0x40;
|
||||
|
|
Loading…
Reference in a new issue