On 22.02.2022 16:03:34, Sean Nyekjaer wrote: > The TCAN4x5x device have 2 wake pins. One for waking the host controller > and one for waking the tcan controller it self. > > We only have the wake for the tcan controller it self implemented > right? Sort of. The tcan driver contains handling for the device_state_gpio. I think should be the pin from the tcan to SoC. The handling of this pin looks fishy. > I have a task that would enable our host to wake-on-can traffic. Due to lack of time, I haven't looked deeply into the sleep and wakeup of the tcan and the wake from the tcan towards the SoC. As said above, the device_state_gpio handling looks fishy. Probably first remove the device_state_gpio handling from the driver, add missing power management to the m_can and tcan driver, then add wakeup support. Have a look at this series, I haven't reviewed it in detail, but it looks good at the first glance. | https://lore.kernel.org/all/20220111002109.927308-1-phil@xxxxxxxxxxxxxxx Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature