Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1977522imm; Thu, 2 Aug 2018 04:23:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMT1R8MguyNrHbsPyzI/C26t0l76KWCgBSMcnwyp/H+OlZsCA5aqic8UGGLtSywkixyneJ X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr2055400plp.18.1533209026755; Thu, 02 Aug 2018 04:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533209026; cv=none; d=google.com; s=arc-20160816; b=M99bcs8jXADi+3jqwFeP998zRvlBkVu13XDn2FEcC9ee1xtCf9ryIXbXP0r5D88Vwu QVJR8QgqpOpLA5LQv7zC5t3QkIhkm/EMAxAU7b0Xgj4fOn4rHxwh2be0gnBHihr/UMSD vDLCObVM0AQVAPIN7FL9EJ/iSSy9XigXmm5dnGfXy4NYFaUfqEI9Q19f6GEXBQEv6ZiE i0MErskNbNxjI6WsTdGqZW3+e09WMfLIo3LFsqgIRW4b/B1evaDN7nfLxqN2KFBuB8ra G26sIoSTJXf/gcJa8l+K5PUmia1H3spLemkJccYZxw7632kxJzwNXRL2uQsFPLCbcOzS 4xaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=aBESyd7520mopnHf0EN7ubb+OE45Y444m4m57mwuN4g=; b=q93k+DWble+EPirxgjc53EkKRyh3RGQs47s67VRi7pFr1n0aPfs/CNinrKK7dBVV8p yAhlgH4okfX8s+tKUNJBcAXWWBgj2TfSKRmSE+QcobH3NqrW5MvtBKwyhp8QQrNNSbBS HmMbm5x3h2tTazvLzjZrnEd16jPsZzTUqRLVFlRxdr8AyMYyWCYotnCj1NbaDNR5Yt7e n/TJcBqyEHHExKK2ANAF0CnPT3I/kf0gKgjem/E1575w5NrDTmC9euZETR+0VGH+OCkC GHhhTaem1vtGcd6mTgprbXT04hf/NSoNxOfN3yiuAS4JyTa6SYzsAr/c4YvqalxZcXv5 SCaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=aHsnYquU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si1823779pgq.479.2018.08.02.04.23.32; Thu, 02 Aug 2018 04:23:46 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=aHsnYquU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732173AbeHBNMI (ORCPT + 99 others); Thu, 2 Aug 2018 09:12:08 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39580 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728685AbeHBNMI (ORCPT ); Thu, 2 Aug 2018 09:12:08 -0400 Received: by mail-wm0-f66.google.com with SMTP id q8-v6so2079239wmq.4 for ; Thu, 02 Aug 2018 04:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=aBESyd7520mopnHf0EN7ubb+OE45Y444m4m57mwuN4g=; b=aHsnYquUCncOnG3sySTjeGvJBnbdjYo/rkMBiF147IOn+L+QPurIMm7IxOYXcMeej7 Wz4yWds4HrO3/M5oBl6bVboqDNuzUkfV/eyMKbM8AsCFW+Bbqr4ddnZK8pW3OVdzCg2n kq2GNUR8LsZUNzCeKETykDm+vsQW1z1UrWAEUh+6Q3kJNuXZIVtoGWjIo4kRmwuAvQVL kpUcDgpMAYx/uvZ3/dck7KiBQRpeCTf2y77yWjXr/Je2nrCuTI1WporZl9tdv5zMMuug Lf0bCI/R7cjlhvIfP161d63cfWU28rSz2Xb6jlyOhGim/Us/GdubFzf/pN7yE94lclnV z8SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=aBESyd7520mopnHf0EN7ubb+OE45Y444m4m57mwuN4g=; b=jx3h2DoxWStc81sRO3AVyNKLIltppMxoPgjMIeGFjQzchVcWtnqRZ8/Q3Q/S5k4GMX XTvlfkRfUut0pAB35mxm3d1v75Bxd9lQsmB3QkvQML4xngAs0CRtmsJTSW7M8d1GWC/K WkvgXjN2nmSxDb918NO6UAC2Nio5c7Gv3fxKpVwURkqvPaPATC9cnoyly/qtSGB2rPQ7 7IyBvUhH8h5Gpl3K9vrxo89yyg93wB6oKJDZoGYC0RUpxIkEceS3QFonB/sPoYJ5gjGK ebMFfVzOFZ3j6sALYMVbxJZHi6ZXrAQls3a9C7x4M4Fl6MBY2jZ9EbiAQqkhoyoIztlm HfNw== X-Gm-Message-State: AOUpUlFIDsH/62N74BsjkqFgRqy6FrSz/sa77oxFP/Fs6YQDhmJFHexw yXd9+76j4IWcoVmGgc6QO6//eg== X-Received: by 2002:a1c:8010:: with SMTP id b16-v6mr1831758wmd.9.1533208885224; Thu, 02 Aug 2018 04:21:25 -0700 (PDT) Received: from boomer ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k3-v6sm1664708wme.44.2018.08.02.04.21.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Aug 2018 04:21:24 -0700 (PDT) Message-ID: Subject: Re: [PATCH 2/5] pinctrl: meson: Add support to set direction with a secure monitor call From: Jerome Brunet To: Neil Armstrong , Martin Blumenstingl Cc: khilman@baylibre.com, linus.walleij@linaro.org, linux-amlogic@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 02 Aug 2018 13:21:23 +0200 In-Reply-To: References: <1533117623-27856-1-git-send-email-narmstrong@baylibre.com> <1533117623-27856-3-git-send-email-narmstrong@baylibre.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.4 (3.28.4-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-02 at 09:52 +0200, Neil Armstrong wrote: > On 01/08/2018 22:23, Martin Blumenstingl wrote: > > Hi Neil, > > > > On Wed, Aug 1, 2018 at 12:05 PM Neil Armstrong wrote: > > > > > > The Amlogic Meson GX and AXG SoCs needs to do a Secure Monitor call to > > > set the TEST_N pin direction. > > > This patch adds a "smc" boolean to the bank structure to differentiate > > > the TEST_N bank and call the Secure Monitor in the _input/_output functions. > > > > > > Signed-off-by: Neil Armstrong > > > --- > > > drivers/pinctrl/meson/Kconfig | 1 + > > > drivers/pinctrl/meson/pinctrl-meson.c | 31 ++++++++++++++++++++++++++----- > > > drivers/pinctrl/meson/pinctrl-meson.h | 10 +++++++++- > > > 3 files changed, 36 insertions(+), 6 deletions(-) > > > > > > diff --git a/drivers/pinctrl/meson/Kconfig b/drivers/pinctrl/meson/Kconfig > > > index c80951d..1b90470 100644 > > > --- a/drivers/pinctrl/meson/Kconfig > > > +++ b/drivers/pinctrl/meson/Kconfig > > > @@ -8,6 +8,7 @@ menuconfig PINCTRL_MESON > > > select GPIOLIB > > > select OF_GPIO > > > select REGMAP_MMIO > > > + select MESON_SM > > > > I wonder why PINCTRL_MESON has to select MESON_SM - shouldn't > > PINCTRL_MESON_GXBB, PINCTRL_MESON_GXL and PINCTRL_MESON_AXG select it > > instead? > > selecting MESON_SM is probably no-op on Meson8 and Meson8b (which > > don't have the GX secure monitor), but I haven't tested it yet I'm not so sure about that. meson_sm_call() symbol is used in the common pinctrl code, so it should be selected when compiled even if meson8b is not going to use it in the end. > > Hi Martin, you are right ! > > I will fix it on v2.. > > Neil > > > > > > > Regards > > Martin > > > >