From: Joakim Zhang <qiangqing.zhang@nxp.com>
To: mkl@pengutronix.de, robh+dt@kernel.org, shawnguo@kernel.org,
s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, linux-imx@nxp.com, victor.liu@nxp.com,
linux-can@vger.kernel.org, pankaj.bansal@nxp.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH V3 06/10] can: flexcan: disable wakeup in flexcan_remove()
Date: Tue, 20 Oct 2020 23:53:58 +0800 [thread overview]
Message-ID: <20201020155402.30318-7-qiangqing.zhang@nxp.com> (raw)
In-Reply-To: <20201020155402.30318-1-qiangqing.zhang@nxp.com>
Disable wakeup in flexcan_remove().
Fixes: de3578c198c6 ("can: flexcan: add self wakeup support")
Fixes: 915f9666421c ("can: flexcan: add support for DT property 'wakeup-source'")
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
---
drivers/net/can/flexcan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 06f94b6f0ebe..881799bd9c5e 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -2062,6 +2062,8 @@ static int flexcan_remove(struct platform_device *pdev)
{
struct net_device *dev = platform_get_drvdata(pdev);
+ device_set_wakeup_enable(&pdev->dev, false);
+ device_set_wakeup_capable(&pdev->dev, false);
unregister_flexcandev(dev);
pm_runtime_disable(&pdev->dev);
free_candev(dev);
--
2.17.1
next prev parent reply other threads:[~2020-10-20 7:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 15:53 [PATCH V3 00/10] can: flexcan: add stop mode support for i.MX8QM Joakim Zhang
2020-10-20 9:44 ` Marc Kleine-Budde
2020-10-20 15:53 ` [PATCH V3 01/10] firmware: imx: always export SCU symbols Joakim Zhang
2020-10-20 15:53 ` [PATCH V3 02/10] dt-bindings: can: flexcan: fix fsl,clk-source property Joakim Zhang
2020-10-20 15:53 ` [PATCH V3 03/10] can: flexcan: remove FLEXCAN_QUIRK_DISABLE_MECR quirk for LS1021A Joakim Zhang
2020-10-20 15:53 ` [PATCH V3 04/10] can: flexcan: add ECC initialization for LX2160A Joakim Zhang
2020-10-20 15:53 ` [PATCH V3 05/10] can: flexcan: add ECC initialization for VF610 Joakim Zhang
2020-10-20 15:53 ` Joakim Zhang [this message]
2020-10-20 9:31 ` [PATCH V3 06/10] can: flexcan: disable wakeup in flexcan_remove() Marc Kleine-Budde
2020-10-20 10:29 ` Joakim Zhang
2020-10-20 10:41 ` Marc Kleine-Budde
2020-10-20 15:53 ` [PATCH V3 07/10] dt-bindings: can: flexcan: add fsl,scu-index property to indicate a resource Joakim Zhang
2020-10-20 15:54 ` [PATCH V3 08/10] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR Joakim Zhang
2020-10-20 15:54 ` [PATCH V3 09/10] dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN Joakim Zhang
2020-10-20 15:54 ` [PATCH V3 10/10] can: flexcan: add CAN wakeup function for i.MX8QM Joakim Zhang
2020-10-20 15:50 ` Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201020155402.30318-7-qiangqing.zhang@nxp.com \
--to=qiangqing.zhang@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pankaj.bansal@nxp.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=victor.liu@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®