From: Sean Nyekjaer Subject: Re: [PATCH V2 2/4] can: flexcan: try to exit stop mode during probe stage Date: Thu, 5 Dec 2019 12:32:27 +0100 Message-ID: <3a4102bc-8a86-3425-e227-590c005df044@geanix.com> References: <20191127055334.1476-1-qiangqing.zhang@nxp.com> <20191127055334.1476-3-qiangqing.zhang@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US-large Sender: netdev-owner@vger.kernel.org To: Joakim Zhang , Marc Kleine-Budde , "linux-can@vger.kernel.org" Cc: dl-linux-imx , "netdev@vger.kernel.org" List-Id: linux-can.vger.kernel.org On 05/12/2019 12.19, Joakim Zhang wrote: > >> -----Original Message----- >> From: Sean Nyekjaer >> Sent: 2019年12月5日 19:12 >> To: Joakim Zhang ; Marc Kleine-Budde >> ; linux-can@vger.kernel.org >> Cc: dl-linux-imx ; netdev@vger.kernel.org >> Subject: Re: [PATCH V2 2/4] can: flexcan: try to exit stop mode during probe >> stage >> >> >> >> On 05/12/2019 12.04, Joakim Zhang wrote: >>> Hi Sean, >>> >>> At my side, both Power-On-Reset and reboot from console can get CAN-IP out >> of stop mode, HW is i.MX7D-SDB/i.MX8QXP-mek. >>> I think HW design could make difference. >>> >>> We more care about how does CAN-IP stuck in stop mode, could you please >> explain in details? We want figure out the root cause. >> >> When running only with the first stop mode commit: >> de3578c198c6 ("can: flexcan: add self wakeup support") And there is incoming >> traffic on both CAN lines. >> I happens when going into suspend. >> Then the CAN-IP is stuck in stop mode.. > > That means with below patch then CAN-IP could not been stuck in stop mode, right? > can: flexcan: fix deadlock when using self wakeup Yes :) > > If yes, I think we don't need check stop mode in probe stage, since issue has disappeared automatically. If one have devices deployed where: "can: flexcan: fix deadlock when using self wakeup" isn't applied. They could have devices stuck in stop-mode. That's what i meant by this patch doesn't do any harm to have the check included. /Sean