mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Fix the detection of parallel port Zip drives.
Submitted by: j mckitrick <jcm@freebsd-uk.eu.org> Reviewed by: nsouchu
This commit is contained in:
parent
aa6dfd9d3d
commit
677cec5b04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63458
@ -131,10 +131,11 @@ ppb_set_mode(device_t bus, int mode)
|
||||
struct ppb_data *ppb = DEVTOSOFTC(bus);
|
||||
int old_mode = ppb_get_mode(bus);
|
||||
|
||||
if (!PPBUS_SETMODE(device_get_parent(bus), mode)) {
|
||||
/* XXX yet device mode = ppbus mode = chipset mode */
|
||||
ppb->mode = (mode & PPB_MASK);
|
||||
}
|
||||
if (PPBUS_SETMODE(device_get_parent(bus), mode))
|
||||
return -1;
|
||||
|
||||
/* XXX yet device mode = ppbus mode = chipset mode */
|
||||
ppb->mode = (mode & PPB_MASK);
|
||||
|
||||
return (old_mode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user