Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48376C433E2 for ; Tue, 1 Sep 2020 18:56:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3793520866 for ; Tue, 1 Sep 2020 18:56:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732660AbgIAS41 (ORCPT ); Tue, 1 Sep 2020 14:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731567AbgIAS4Q (ORCPT ); Tue, 1 Sep 2020 14:56:16 -0400 Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80ADFC061244; Tue, 1 Sep 2020 11:56:16 -0700 (PDT) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bgx9l12rfz1rnKC; Tue, 1 Sep 2020 20:56:11 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bgx9k72CWz1qv30; Tue, 1 Sep 2020 20:56:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id cSUqR3AagF6b; Tue, 1 Sep 2020 20:56:09 +0200 (CEST) X-Auth-Info: zmpGYoqcuaJWzonT3Dn/egtFxZlRag7jhydh/C+wWx4= Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 1 Sep 2020 20:56:09 +0200 (CEST) Subject: Re: [PATCH] can: m_can: Set pinmux into "default" state on start From: Marek Vasut To: linux-can@vger.kernel.org Cc: Alexandre Torgue , Marc Kleine-Budde , Wolfgang Grandegger , dmurphy@ti.com, netdev@vger.kernel.org References: <20200531181324.383930-1-marex@denx.de> <419338dc-870d-51a4-87ac-ceddcba046dc@denx.de> Message-ID: <341ddbb5-d46a-813a-8fe9-b0d16ca25041@denx.de> Date: Tue, 1 Sep 2020 20:56:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <419338dc-870d-51a4-87ac-ceddcba046dc@denx.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 8/9/20 1:01 PM, Marek Vasut wrote: > On 5/31/20 8:13 PM, Marek Vasut wrote: >> On systems like stm32mp1 where pins have both "default" and "sleep" pinmux >> states in DT, the pins are in "sleep" state by default. Switch the pins into >> the "default" state when bringing the interface up in m_can_start(), because >> otherwise no CAN communication is possible. This replicates the behavior of >> the resume path, which does the same. >> >> Signed-off-by: Marek Vasut >> Cc: Alexandre Torgue >> Cc: Marc Kleine-Budde >> Cc: Wolfgang Grandegger >> To: linux-can@vger.kernel.org >> --- >> drivers/net/can/m_can/m_can.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c >> index 02c5795b7393..76fadf2b8ac2 100644 >> --- a/drivers/net/can/m_can/m_can.c >> +++ b/drivers/net/can/m_can/m_can.c >> @@ -1247,6 +1247,8 @@ static void m_can_start(struct net_device *dev) >> /* basic m_can configuration */ >> m_can_chip_config(dev); >> >> + pinctrl_pm_select_default_state(cdev->dev); >> + >> cdev->can.state = CAN_STATE_ERROR_ACTIVE; >> >> m_can_enable_all_interrupts(cdev); >> > > Any news on this ? Almost another month has passed by, ping ?