Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5825654ybi; Wed, 31 Jul 2019 04:01:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZPlx/4Qc1ZGhAFgpufQ9VaN0qeHDoeo7qYsyT+xh19hWzzr5vsoaNyoGq7fVfRyf2BQEI X-Received: by 2002:a17:902:2aea:: with SMTP id j97mr107131013plb.153.1564570869512; Wed, 31 Jul 2019 04:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564570869; cv=none; d=google.com; s=arc-20160816; b=jLBTp3IsAgKlAvGL8lNaM2iopeYJdIAxwtn5zWjZzTWKIgw3ui3Z1DVLRhBcKQ0a4U Y+TxpGf+9PWCH05DAVYhkyvaJUGKKM28o3mMGiFfqVJogNcjyO9MXGsHaN4+DNOWhmgK ftlU9MngFlUJB9zcIoiybYtQxQYMbMmBUR9ZdJewZcjk1ejRsBlh5R2MfkIS6DuKW3/t rOsWZWXokY1Qn+mQ8vyeP4qyn90oZXTKxnlJI528MyX6n52lNCdV6CoonEc8GyF5ApBp 7ero3eU6F5U+GoVKEDFbpMnxY0FeJ3KQp2KQmjrGo5CtE1VZL2Q5jbQdRdh7lccmJpxv Hh5A== 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=4oxIi/BVkp1npNpIoCR/QsGlH2mZ+bVRBFIPULa5x70=; b=IQreDpCj8qP5FWkZZWJukwfK3OD/j8nKJnFJLGkdz0Qt4Y2cBE1EqIZbR+rVyIpLm6 XOoFRCzYt/KmvX/d7sdldE61p4nyAangJokMDwg/XvB9XzIVtWWf0IsNGihE/oqccmbe +r/Tb8dKFfvXhvTnCtZcs9+Z3I9aj45vsu8pEN24KQrXMFZorSioy+Mx+XK30Pw6YwkX che4Hn3CaPuSOwb5WJ/cwJkfq+gqOFRweM/0TsggWgc5+nQNBQcAam17LEdeBMsdMTy7 mA21fV68t0cVMkW3zlQ7RQwZ6li6Mni0dORkFivrDI1mkOpH6p4isNNMDBsuYB/w2004 Vn2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t2jiJ6Zh; 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 x16si34879831pgi.312.2019.07.31.04.00.54; Wed, 31 Jul 2019 04:01:09 -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=t2jiJ6Zh; 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 S1728590AbfGaJnH (ORCPT + 99 others); Wed, 31 Jul 2019 05:43:07 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38890 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727409AbfGaJnH (ORCPT ); Wed, 31 Jul 2019 05:43:07 -0400 Received: by mail-pg1-f193.google.com with SMTP id f5so22874796pgu.5; Wed, 31 Jul 2019 02:43:06 -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=4oxIi/BVkp1npNpIoCR/QsGlH2mZ+bVRBFIPULa5x70=; b=t2jiJ6ZhaisYGYknSMnwAu1kKpTOw+FNjBs1HsPKgyNFkWEdHZ9ppFP4DxBJJ3u0FF YnuKgYMWkZ5ampcjGoU2xvx174Tx9+HJ71NzQmbrwwRBgF4hHOVzFJKENud0EUhe7WTA Qu6lw4qBKtl4K/Xi6s3Uy81jmociWmK2ln82Vy+MqsKodFBUQ7QBynJOkABsYlfSsl/a OwVpMh1MWHS9qtRBa1q7qP/M2adizwI/qIG9ZuZgrufT1GRG9JFkAx8X943Awwy4y1y/ 7BNwV6UjJ/P7/jQ70HxBfNqZa1BEZ4PjvBjM7PB0yaZXRwiDixFwrJSgqwS4gFex9wBa TOdQ== 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=4oxIi/BVkp1npNpIoCR/QsGlH2mZ+bVRBFIPULa5x70=; b=IkWoLWOmHjPlPQPLDdLi1aH6MwpVotHFNIkxeCymoqPDWLcibnGnM5LZKUxt9ZmKv5 K3tpYk3sPEolYjcr97mqdtG0j8Xr4NR90XsMYBVMDLs3rD1u8pXeA71vhr4vIHF0tKj+ 8SRi6QdMRWJL9JDC4YgYnTvTFd5NMguNnW3RLm6oCG5evp/aI9sNE4fkholODoBeb8OD L7jTTBLGcSQMBMBemxfaFwkcG6h20pmLovzQqypji7vdGtCNpiwiQ95OtjmNB8haBkLI 5Da65Yi7MsOIVHL7Ckz1JMphLdPXBQ7Uj5YvsGlSeKC2tEiUclCXX8HrHoXFqoOZ1IKz q7xg== X-Gm-Message-State: APjAAAV7BbpiWDU0geQhsUFRKNnaERJUGIIfjeWFaOufTHEpGabrv0Lp yC5/AGieXDtBdHcL9ip9/x4GVmArFZmOFMyp1q0= X-Received: by 2002:a63:1020:: with SMTP id f32mr84410504pgl.203.1564566186380; Wed, 31 Jul 2019 02:43:06 -0700 (PDT) MIME-Version: 1.0 References: <1564557670-10849-1-git-send-email-info@metux.net> In-Reply-To: <1564557670-10849-1-git-send-email-info@metux.net> From: Andy Shevchenko Date: Wed, 31 Jul 2019 12:42:55 +0300 Message-ID: Subject: Re: [PATCH] platform/x86/pcengines-apuv2: add mpcie reset gpio export To: "Enrico Weigelt, metux IT consult" Cc: Linux Kernel Mailing List , Darren Hart , Andy Shevchenko , Platform Driver 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 Wed, Jul 31, 2019 at 10:21 AM Enrico Weigelt, metux IT consult wrote: > > From: Florian Eckert > > 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 > Acked-By: Enrico Weigelt I'm not sure why you resend this, where is the changelog, where is the version bump?.. > Author: Florian Eckert ...moreover, what's this? We have From line and the first SoB in the chain for authorship. If, in case, the author is not available and some rework done, we usually give a credit as Co-developed-by or in the commit message. > --- > 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 e4c68ef..56703656 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 @@ > [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 @@ > [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 = { > -- > 1.9.1 > -- With Best Regards, Andy Shevchenko