Re: [PATCH V4] can: flexcan: disable wakeup in flexcan_remove()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/20/20 8:45 PM, Joakim Zhang wrote:
> With below sequence, we can see wakeup default is enabled after re-load
> module, so need disable wakeup in flexcan_remove().
> 
> root@imx8qmevk:~# lsmod
> Module                  Size  Used by
> crct10dif_ce           16384  1
> flexcan                32768  0
> can_dev                36864  1 flexcan
> root@imx8qmevk:~# cat /sys/bus/platform/drivers/flexcan/5a8e0000.can/power/wakeup
> disabled
> root@imx8qmevk:~# echo enabled > /sys/bus/platform/drivers/flexcan/5a8e0000.can/power/wakeup
> root@imx8qmevk:~# cat /sys/bus/platform/drivers/flexcan/5a8e0000.can/power/wakeup
> enabled
> root@imx8qmevk:~# rmmod flexcan
> root@imx8qmevk:~# rmmod can_dev
> root@imx8qmevk:~# modprobe flexcan
> [  147.877689] CAN device driver interface
> root@imx8qmevk:~# cat /sys/bus/platform/drivers/flexcan/5a8e0000.can/power/wakeup
> enabled

Very good, that explain the problem!

I've streamlined the commit message a bit and applied to linux-can/testing

Thanks,
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: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux