usb_mux/amd_fp6: Handle chipset_reset
The driver was only handling chipset_resume. chipset_reset also needs to
be handled. Otherwise mux won't be set on an apreset.
TEST=C1 display works after apreset
BRANCH=None
@@ -216,8 +216,14 @@ static void amd_fp6_chipset_resume(void)
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, amd_fp6_chipset_resume, HOOK_PRIO_DEFAULT);
+static int amd_fp6_chipset_reset(const struct usb_mux *me)
+{
+ amd_fp6_chipset_resume();
+ return EC_SUCCESS;
+}
+
const struct usb_mux_driver amd_fp6_usb_mux_driver = {
.set = &amd_fp6_set_mux,
.get = &amd_fp6_get_mux,
- /* .chipset_reset is handled by amd_fp6_chipset_resume hook */
+ .chipset_reset = &amd_fp6_chipset_reset
};
