Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102103075
D34434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
946 B
Referenced Files
None
Subscribers
None
D34434.diff
View Options
diff --git a/sys/dev/hid/bcm5974.c b/sys/dev/hid/bcm5974.c
--- a/sys/dev/hid/bcm5974.c
+++ b/sys/dev/hid/bcm5974.c
@@ -416,6 +416,7 @@
struct evdev_dev *sc_evdev;
/* device configuration */
const struct bcm5974_dev_params *sc_params;
+ bool sc_saved_mode;
};
static const uint8_t bcm5974_rdesc[] = {
@@ -549,6 +550,9 @@
KASSERT(0 == 1, ("Unknown trackpad type"));
}
+ if (!err)
+ sc->sc_saved_mode = on;
+
return (err);
}
@@ -667,6 +671,16 @@
return (0);
}
+static int
+bcm5974_resume(device_t dev)
+{
+ struct bcm5974_softc *sc = device_get_softc(dev);
+
+ bcm5974_set_device_mode(sc, sc->sc_saved_mode);
+
+ return (0);
+}
+
static void
bcm5974_intr(void *context, void *data, hid_size_t len)
{
@@ -779,6 +793,7 @@
DEVMETHOD(device_probe, bcm5974_probe),
DEVMETHOD(device_attach, bcm5974_attach),
DEVMETHOD(device_detach, bcm5974_detach),
+ DEVMETHOD(device_resume, bcm5974_resume),
DEVMETHOD_END
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 3:50 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14537886
Default Alt Text
D34434.diff (946 B)
Attached To
Mode
D34434: bcm5974: set mode again on resume
Attached
Detach File
Event Timeline
Log In to Comment