Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4909670ybl; Wed, 22 Jan 2020 06:55:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzcrqdEitUA/NkhJAfdAFXu/YnR2ccxPw23VrJ5i9HZ9ZUNT0JfSbErgux+P9JY/b7wX9zs X-Received: by 2002:a05:6808:486:: with SMTP id z6mr7328334oid.117.1579704916293; Wed, 22 Jan 2020 06:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579704916; cv=none; d=google.com; s=arc-20160816; b=kHcY7WjJBtmeN0zk/IiQvQrp4iXcz8Oey7MQTjA4TsPTPORZ/IiBPHVaRnCMhY80Pv ZBdgkb/sbihKI2KLB9KjfjbuPdOGlkkVCmekKv6Coq2S013eci02NKVx7zK3YxJNvWI0 /I4l7lWgi6wM9AHe7Lxc9DP/ZngJHQdslQYjaxJlgAjOer4DeVJockeHWsk9g+fe+PZI iSxb1XnRKjo1PTIeuB/a63RB8D870jmELiJgZ2X+mMLIPizfQ2GPFjgQKGbeX5/Dm9xU +WjqW0CrjsBbQ+QRXgI5nQKhEmQ1B4thz3dKefP3y56b3IUmKbOXqrKIrh3pM1vLxtus 4glw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=4itLcJd9TovgkIJA4En20KBiCbGG4bMhv7WMq/yt9qs=; b=oONXOkMnyf3PujRC9M2HD5E5sudvrrw+PoQLFJ/0waeTE3RNKm3c+QGeAAEaQdK1c4 mHbPtNseX0XNMm8J3dEswvGT+CiH9ODl9ucdv0/8btaW6Y0QrDWpW13ip0XB3uaD8IHi An54y6sXOqLPilP6F0PE2QrDBK8B6agvdRArlp3mZDLjU8VAdjStPuS01zkG9aO8oAuK R4+CfLcniQZLgDrOqHxrlyqrv6hZSjm3yvXMXfnE75bG29sRAx5PDnSMs+/hmzwyyJg3 fymap2BZYw9NWW8IDGjLYDkTiSynxrogUNi8Ag4hhh3dkT8+Qva9k8X6UZzAqx1uLi2r 9Krw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=U4RQaPc5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si23268159otr.88.2020.01.22.06.55.03; Wed, 22 Jan 2020 06:55:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=U4RQaPc5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725989AbgAVOyF (ORCPT + 99 others); Wed, 22 Jan 2020 09:54:05 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:39302 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgAVOyF (ORCPT ); Wed, 22 Jan 2020 09:54:05 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200122145402epoutp037368fb4f4d7d778e8e40bf44a0f21515~sPS9ZqLmB2123021230epoutp03N for ; Wed, 22 Jan 2020 14:54:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200122145402epoutp037368fb4f4d7d778e8e40bf44a0f21515~sPS9ZqLmB2123021230epoutp03N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579704842; bh=4itLcJd9TovgkIJA4En20KBiCbGG4bMhv7WMq/yt9qs=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=U4RQaPc5GK99iRyuoOoQ86PvMPg6xZONm++S2v9H3QDPcr2RXbd/Q62zgzehQXVKv 75c40NYvV743+KMyPhHjyUb/GMCMl/g/FmWUcfUsAjC2No9A2q3tCSL2XGxCwFtfe0 FpVa3SyEHQr2Gw1x4KtsmxiCFRzokrFopo9RJN54= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20200122145402epcas5p4502ef8824947d257531b08ebb14484e1~sPS8506Za1067910679epcas5p4v; Wed, 22 Jan 2020 14:54:02 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 05.FC.19629.A02682E5; Wed, 22 Jan 2020 23:54:02 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20200122145401epcas5p28907c5b3800ca5410955a856bcd82c8e~sPS72sQu91038710387epcas5p2m; Wed, 22 Jan 2020 14:54:01 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200122145401epsmtrp22cfbc217f006f370bdfa6a2d304687c8~sPS710jVu1347513475epsmtrp2V; Wed, 22 Jan 2020 14:54:01 +0000 (GMT) X-AuditID: b6c32a4b-345ff70000014cad-2f-5e28620acae9 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 60.A8.10238.902682E5; Wed, 22 Jan 2020 23:54:01 +0900 (KST) Received: from sriramdash03 (unknown [107.111.85.29]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200122145358epsmtip174221b741edcd5e2af6c3e4345ad2752~sPS5vIs6s2722127221epsmtip1L; Wed, 22 Jan 2020 14:53:58 +0000 (GMT) From: "Sriram Dash" To: "'Faiz Abbas'" , , , , , Cc: , , , , , , , , In-Reply-To: <20200122080310.24653-3-faiz_abbas@ti.com> Subject: RE: [PATCH 2/3] can: m_can: m_can_platform: Add support for enabling transceiver through the STB line Date: Wed, 22 Jan 2020 20:23:57 +0530 Message-ID: <002101d5d133$c8352100$589f6300$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQL34jRp8ckpa4Ru5doAY/bQkCNITwHmOWfLAkdTAPClkTT7kA== Content-Language: en-in X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIKsWRmVeSWpSXmKPExsWy7bCmui5Xkkacwet3/Bbvl/UwWsw538Ji Mf/IOVaL7tNbWC2+LG1mttj0+BqrxarvU5ktLu+aw2ax9PpFJov1i6awWBxbIGbx5sdZJovW vUfYLZY87QBK3tvJ6sDvsWbeGkaPLStvMnl8vHSb0WPTqk42j81L6j36/xp4HL+xncnj8ya5 AI4oLpuU1JzMstQifbsErozmi43sBe/5Kt7vOc/cwNjF08XIySEhYCLxpvMYK4gtJLCbUaLv uEYXIxeQ/YlR4v7EKewQzjdGiQ97ZzLCdCxY+p0FIrGXUaJpzX0o5xWjxMMTd8BmsQnoSpy9 0cQGkhAROMko8ejaSVYQh1ngMNCSjuVgVZwC5hJHf59kArGFBQok3n25wg5iswioSpz79Bxo HwcHr4ClxKIuGZAwr4CgxMmZT1hAbGYBeYntb+cwQ5ykIPHz6TKwkSICThL9p3ewQdSISxz9 2cMMsldC4Bi7xMfnn9ggGlwkenshLpUQEJZ4dXwLO4QtJfH53V6ommyJy33PoRaUSMx4tZAF wraXOHBlDgvIbcwCmhLrd+lD7OKT6P39hAkkLCHAK9HRJgRRrSrx6v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NCe1+BCjNAeLkjjv07xjkUIC6YklqdmpqQWpRTBZJg5OqQbGSfO0Px0N+dYZ4L7+2OSb S56JTxDd9fk2j/kihvlGPkJHj7ruD0/YuFxg3cb62dbz1BY+Vb9vbP+y7Uj8jMq0Lx2vlEqN zKs+GGx0vMT669AeGV2pU5mx7i+1d2gXC824kbHiKUfNo+DiW5zOsw9MFF3h84Hp7IRll2ZL VT7eGP5nV7ldxpKcHUosxRmJhlrMRcWJAMWcZMnVAgAA X-CMS-MailID: 20200122145401epcas5p28907c5b3800ca5410955a856bcd82c8e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200122080213epcas5p46e361ac6fa299521c1bab3ab20862b46 References: <20200122080310.24653-1-faiz_abbas@ti.com> <20200122080310.24653-3-faiz_abbas@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: linux-can-owner@vger.kernel.org On > Behalf Of Faiz Abbas > Subject: [PATCH 2/3] can: m_can: m_can_platform: Add support for enabling > transceiver through the STB line > > CAN transceivers on some boards have an STB (standby) line which can be > toggled to enable/disable the transceiver. Add support for enabling the > transceiver using a GPIO connected to the STB line. > Looks good to me. Other than Dan's concern on stb as standby, Acked-by: Sriram Dash > Signed-off-by: Faiz Abbas > --- > drivers/net/can/m_can/m_can_platform.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/net/can/m_can/m_can_platform.c > b/drivers/net/can/m_can/m_can_platform.c > index 38ea5e600fb8..b4e1423bd5d8 100644 > --- a/drivers/net/can/m_can/m_can_platform.c > +++ b/drivers/net/can/m_can/m_can_platform.c > @@ -6,6 +6,7 @@ > // Copyright (C) 2018-19 Texas Instruments Incorporated - http://www.ti.com/ > > #include > +#include > > #include "m_can.h" > > @@ -57,6 +58,7 @@ static int m_can_plat_probe(struct platform_device *pdev) > { > struct m_can_classdev *mcan_class; > struct m_can_plat_priv *priv; > + struct gpio_desc *stb; > struct resource *res; > void __iomem *addr; > void __iomem *mram_addr; > @@ -111,6 +113,16 @@ static int m_can_plat_probe(struct platform_device > *pdev) > > m_can_init_ram(mcan_class); > > + stb = devm_gpiod_get_optional(&pdev->dev, "stb", GPIOD_OUT_HIGH); > + if (IS_ERR(stb)) { > + ret = PTR_ERR(stb); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, > + "gpio request failed, ret %d\n", ret); > + > + goto failed_ret; > + } > + > ret = m_can_class_register(mcan_class); > > failed_ret: > -- > 2.19.2