Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7479569ybi; Thu, 1 Aug 2019 08:47:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy56kS47hWPGqBQXYTsLv/9beKUAMN8wazqabGssoUroMOgVWsgcINiYvVGkAejdyNYe5SU X-Received: by 2002:a17:902:1004:: with SMTP id b4mr128905065pla.325.1564674474557; Thu, 01 Aug 2019 08:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564674474; cv=none; d=google.com; s=arc-20160816; b=vZSFynmswmE4tT+JWdjNamKgUQMfbM8se6wvP/T/Bta7Z13t+12s7iNClMjwTHEGP8 KzIp7LKo/b/OW+HSp9sF71yhjw77qL7jMs/2NidtHg0D0yfpwvzgXPTtIq+lPNiedDe4 niHgDZEnnieIPCZ+o6Vgks4LoxYPe6kRtYzXirT/DMofKlFVQsZUtVv6HM0fI0sMH8QS Z3meuj5nJuObxPZ6SzWXUXD6RVCU/jjEVh7luv6Xbu4mUrxWfU9dqvqyp2HfWKfkCZTV T16xzU1jL5XMJGvnzKBQvlWWdDWWKQ2w7uM5iqLE5+7MlCrVNgw6OfI6n6nAVgEVTtPy jSrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=j3+SbVpPKelvEjCYc5JFdKjnflgfhHUFgbni1JQLfug=; b=cu2u/dLEAexBaX/dg1M/uvdB1aVClkPbplubw5gBtj+aT8HVL1Td2+LSYO4dE6Frl7 H8GuIcd3Zur8UCCU9kmvdLtOQ597yJAkm/9fUahjO8O7x7U9A/anwxo5t7mHxdVrTqoh MP4N0zMLgOMp67IPIYx1EGltql999JoUX6Uq2KJcGxTNSXvx16tFZfywjyRxhEzrXHji 5BLxGZtOHxOl+umUcyOagFHne1dlJEG9aC4GnUAbaTte3QQoe3p78AYb4rqcCTUvXPKX fZVCIO6ey8JXXaguVIitSmto5yK4uRgW4Ui2U1n8Q8N9YMFFEuvlD6APKBwkfkQjC7/+ Wr6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZQqJRk5f; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb5si32584174plb.172.2019.08.01.08.47.39; Thu, 01 Aug 2019 08:47:54 -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=@gmail.com header.s=20161025 header.b=ZQqJRk5f; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731801AbfHAPBn (ORCPT + 99 others); Thu, 1 Aug 2019 11:01:43 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41337 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfHAPBn (ORCPT ); Thu, 1 Aug 2019 11:01:43 -0400 Received: by mail-pg1-f196.google.com with SMTP id x15so24011062pgg.8; Thu, 01 Aug 2019 08:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j3+SbVpPKelvEjCYc5JFdKjnflgfhHUFgbni1JQLfug=; b=ZQqJRk5fnVcG1ZOCbng7J1FYxp1NpriIQnPyrnpOaP3jNvwcRX1GGy4xoRsPPt8I0h lGgnJmDeeBouSVcnowi5GED8tWCns2QB/l2DzNzmV2w0K0+gdfX7w9ZZxTncE/TSCKHU lMS/327tLGJ28/j43VsHs6Ni+mbp4blBAKONcbgKWmAws97UhBh/9c7JJrk3oIx+Bk02 6SB2RgFOw5AIYlQTMq40Cl1JiIcwmeQ1BNr5CRlWfF1LUFMubPyoTfVDVBICVH9ECtGi AjPygJoObpOjTO+tlgJ4RanDeXp+wT6YRMMy4t3JO6gdR+yMXCGgrve5yu7sFLc47+y8 ZfSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j3+SbVpPKelvEjCYc5JFdKjnflgfhHUFgbni1JQLfug=; b=pD3FCSewQ/+xUQG1jbusjQduTdwKe7vsq0kDw8W1mm7gqmlYKNyU+5pGeKO/CHBa0B 9lPmyDawF9unVQkQ1QdqnsYYnbhgFvMu0z6l/xxjx7rP9IosKdg5hTHYoKI+12h1wX3H L5e9+cbCQYalJSgjilnsol42RnOPDgnGYnaEdzmhaDXcpt2WxMAkMEJJ00VM0U8NOH+E avt4PUsmRBtv+66GVoicfN8gVuQ/QOh2P0LEyDp9NKwTlp9H5mYhwW4xdzaV0nw7kb/6 aC23Ibp6lCoDuSRUAVfv0gP4LTn5EygDyq9eRuJQllT56em6yXaN9SrKN1QnaJuOCuN9 FQoA== X-Gm-Message-State: APjAAAVK5nd16RUL4e2mVK5bD/6Lk4edLMYy1tfMXRPaUm1hRrAmm6nF J5agUYYjdkFTc42YC3HLj7uAmuYgBJeyUC7XXsI= X-Received: by 2002:a17:90a:7788:: with SMTP id v8mr9433611pjk.132.1564671702133; Thu, 01 Aug 2019 08:01:42 -0700 (PDT) MIME-Version: 1.0 References: <20190726062115.16231-1-fe@dev.tdt.de> In-Reply-To: From: Andy Shevchenko Date: Thu, 1 Aug 2019 18:01:30 +0300 Message-ID: Subject: Re: [PATCH v2 1/1] platform/x86/pcengines-apuv2: add mpcie reset gpio export To: "Enrico Weigelt, metux IT consult" Cc: Florian Eckert , Eckert.Florian@googlemail.com, "Enrico Weigelt, metux IT consult" , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 1:50 PM Enrico Weigelt, metux IT consult wrote: > > On 26.07.19 08:21, Florian Eckert wrote: > > On APUx we have also mpcie2/mpcie3 reset pins. To make it possible to reset > > the ports from the userspace, add the definition to this platform > > device. The gpio can then be exported by the legancy gpio subsystem to > > toggle the mpcie reset pin. > > > > Signed-off-by: Florian Eckert > > --- > > > > v2: > > Noting changed for this patch. Only resend because other patches of > > the series where dropped or updated and resend by other people > > > > drivers/platform/x86/pcengines-apuv2.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c > > index c1ca931e1fab..f6d8ed100cab 100644 > > --- a/drivers/platform/x86/pcengines-apuv2.c > > +++ b/drivers/platform/x86/pcengines-apuv2.c > > @@ -32,6 +32,8 @@ > > #define APU2_GPIO_REG_LED3 AMD_FCH_GPIO_REG_GPIO59_DEVSLP1 > > #define APU2_GPIO_REG_MODESW AMD_FCH_GPIO_REG_GPIO32_GE1 > > #define APU2_GPIO_REG_SIMSWAP AMD_FCH_GPIO_REG_GPIO33_GE2 > > +#define APU2_GPIO_REG_MPCIE2 AMD_FCH_GPIO_REG_GPIO59_DEVSLP0 > > +#define APU2_GPIO_REG_MPCIE3 AMD_FCH_GPIO_REG_GPIO51 > > > > /* order in which the gpio lines are defined in the register list */ > > #define APU2_GPIO_LINE_LED1 0 > > @@ -39,6 +41,8 @@ > > #define APU2_GPIO_LINE_LED3 2 > > #define APU2_GPIO_LINE_MODESW 3 > > #define APU2_GPIO_LINE_SIMSWAP 4 > > +#define APU2_GPIO_LINE_MPCIE2 5 > > +#define APU2_GPIO_LINE_MPCIE3 6 > > > > /* gpio device */ > > > > @@ -48,6 +52,8 @@ static int apu2_gpio_regs[] = { > > [APU2_GPIO_LINE_LED3] = APU2_GPIO_REG_LED3, > > [APU2_GPIO_LINE_MODESW] = APU2_GPIO_REG_MODESW, > > [APU2_GPIO_LINE_SIMSWAP] = APU2_GPIO_REG_SIMSWAP, > > + [APU2_GPIO_LINE_MPCIE2] = APU2_GPIO_REG_MPCIE2, > > + [APU2_GPIO_LINE_MPCIE3] = APU2_GPIO_REG_MPCIE3, > > }; > > > > static const char * const apu2_gpio_names[] = { > > @@ -56,6 +62,8 @@ static const char * const apu2_gpio_names[] = { > > [APU2_GPIO_LINE_LED3] = "front-led3", > > [APU2_GPIO_LINE_MODESW] = "front-button", > > [APU2_GPIO_LINE_SIMSWAP] = "simswap", > > + [APU2_GPIO_LINE_MPCIE2] = "mpcie2_reset", > > + [APU2_GPIO_LINE_MPCIE3] = "mpcie3_reset", > > }; > > > > static const struct amd_fch_gpio_pdata board_apu2 = { > > > > Acked-by: Enrico Weigelt Applied, thanks! > > -- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > info@metux.net -- +49-151-27565287 -- With Best Regards, Andy Shevchenko