Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5190617ybc; Tue, 26 Nov 2019 23:32:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyksCwko5RTYthb3b8C8RygjkROYPZXuCV3qiQJsvBBaISzn21P50GZLPSBmUaJFarhBfiy X-Received: by 2002:a05:6402:651:: with SMTP id u17mr30247630edx.142.1574839929073; Tue, 26 Nov 2019 23:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574839929; cv=none; d=google.com; s=arc-20160816; b=0MO3WKVeuJad2Cebs5CazwU0WvbMiOeY917R3lLU4C/2Sqzmdh5iv5jRqaRqr17mww Uy/Yf10eRYQqoqe342ankWIPbR0YQTyd7EDRTA92MoKc5eeHgTwX+YhSz7YkVq2XVA8g KuBw3ixe0CUfeziPgA801c7k+iPZi0QgLd/TUdVtZxy07XvZ0f9516HmSonT+MXd2WOm XfYex9I+TPGqYoOaSNbTeXvXc8wnodNcqYlqSqWS165sfvTU+z16EsS/YGbiAi7GcyPs xN5GlQZ1o+FuZRRUYfvc70qLQRWXvoMT7awtzhuhp9zvue8kOvcSF9O6OVfGWe8LGy+c /W9w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=u8oUQFRZy3gf3+1yf0zkKS6+wd9DrvcbQ832mANUPWo=; b=au56dxlcRjNHQjr1BMwXjFVi31a4sEcyDhDCRQxuwSTNKJPbpEoG/wZ1X/3OKJd3YT deVOEPqjbgLluQak30TEC/k8TPone8kZSmgKi1yfD0vsVb6zlNe3FLFX7mAojUO9+1ni 5jn3HGFruABHVATMXmuJgvHzzIkb5P0FYqw+7u6WYe+3Jje2fQBzA1fAUuMYkajfchoj FH6u3Cv60N0AtS6VSnaum7wfhl56FU1DvJcAO66DGZECqC/FCoBgv7KjufQo9Qr+FyWs vQw7Fn5kwPz69lrH1YubTCzZEc3G1zY/mNVWKA8AgEemzzkP73pF6ffnnqYPRX7nsIRq XUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="S/SdAfsN"; 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 k22si9456495eds.46.2019.11.26.23.31.44; Tue, 26 Nov 2019 23:32:09 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="S/SdAfsN"; 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 S1726520AbfK0H3Y (ORCPT + 99 others); Wed, 27 Nov 2019 02:29:24 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34430 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbfK0H3X (ORCPT ); Wed, 27 Nov 2019 02:29:23 -0500 Received: by mail-ot1-f68.google.com with SMTP id w11so18339310ote.1 for ; Tue, 26 Nov 2019 23:29:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u8oUQFRZy3gf3+1yf0zkKS6+wd9DrvcbQ832mANUPWo=; b=S/SdAfsNtNo4n8om7tQ8ej8pWPma3kUq5jV16c0NRtI0d+7+cBogG4aHNIEOFRIssG DqNvD128D3m2Dw4hHw/EN5U0fY7Y+9+GVaZ2wbUCqpTFItYtg4m1gXzE3FX9kTacD0KE EzIgZ6gTcM/+yjIjDFAg0X7QxSA48QIcYpxEor2LIp5K7ip6lECTtMlDnVT8s6nRoVp+ VxhuDmKkPxn3I7TnYd6R+VAn8Byx2sKZrpIKL570sT3n5WZFSaQVFQHvgbcQq0cs1w9V +idjzBgwlDMcXNa06M1IXARDreMzmjRFdZ6blxE8OrCksjV71MpuuONorciuI3YLPWrM CG6A== 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:content-transfer-encoding; bh=u8oUQFRZy3gf3+1yf0zkKS6+wd9DrvcbQ832mANUPWo=; b=TY5ZC2LakHcQJolJHvI6VidIh2c++WBe44H0NEDbRvK08fc0HMwk4DYTlpoGZC8OJa cJoTmBgMgtOPQudFRfW5+i/hskdfkVXoKs6/GC0mh4RiKUXQyFx3qtdL8WLpy6iZ+94G pN3cf2IgJw0fVB5ACFTfVqwL2sh+aPW+OGzvC8w6edRT6nBMeuqBq9gudonlnsDNEtwn 8VpOGj20h6UcZpB0cx345hKdZvhJCIzj1S07tpUmb3wTxvSg9HpUPt93n2kkGy+iKqAa Zj5mf0CVGQDcw3K7MxcTRcs3EkDIjR7Cz7X3dwmetDuInjD9ofyWzCs4IvISgfGvx5DI TTEQ== X-Gm-Message-State: APjAAAXvwgbwNY0S2kApaBylFVbfWXS9wW3NkLAEL7Pfvlejm+1nZQzR ZlGTH++SpE7gis160v+WOXLJVFK9QWY2JbzCJiAXBg== X-Received: by 2002:a9d:65cd:: with SMTP id z13mr2544801oth.85.1574839762873; Tue, 26 Nov 2019 23:29:22 -0800 (PST) MIME-Version: 1.0 References: <20191126193027.11970-1-jcmvbkbc@gmail.com> In-Reply-To: <20191126193027.11970-1-jcmvbkbc@gmail.com> From: Bartosz Golaszewski Date: Wed, 27 Nov 2019 08:29:12 +0100 Message-ID: Subject: Re: [PATCH] drivers/gpio/gpio-xtensa: fix driver build To: Max Filippov Cc: linux-xtensa@linux-xtensa.org, Chris Zankel , linux-gpio , LKML , Linus Walleij , Baruch Siach , "Stable # 4 . 20+" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 26 lis 2019 o 20:30 Max Filippov napisa=C5=82(a): > > Commit cad6fade6e78 ("xtensa: clean up WSR*/RSR*/get_sr/set_sr") removed > {RSR,WSR}_CPENABLE from xtensa code, but did not fix up all users, > breaking gpio-xtensa driver build. > Update gpio-xtensa to use new xtensa_{get,set}_sr API. > > Cc: stable@vger.kernel.org # v5.0+ > Fixes: cad6fade6e78 ("xtensa: clean up WSR*/RSR*/get_sr/set_sr") > Signed-off-by: Max Filippov > --- > drivers/gpio/gpio-xtensa.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpio/gpio-xtensa.c b/drivers/gpio/gpio-xtensa.c > index 43d3fa5f511a..0fb2211f9573 100644 > --- a/drivers/gpio/gpio-xtensa.c > +++ b/drivers/gpio/gpio-xtensa.c > @@ -44,15 +44,14 @@ static inline unsigned long enable_cp(unsigned long *= cpenable) > unsigned long flags; > > local_irq_save(flags); > - RSR_CPENABLE(*cpenable); > - WSR_CPENABLE(*cpenable | BIT(XCHAL_CP_ID_XTIOP)); > - > + *cpenable =3D xtensa_get_sr(cpenable); > + xtensa_set_sr(*cpenable | BIT(XCHAL_CP_ID_XTIOP), cpenable); > return flags; > } > > static inline void disable_cp(unsigned long flags, unsigned long cpenabl= e) > { > - WSR_CPENABLE(cpenable); > + xtensa_set_sr(cpenable, cpenable); > local_irq_restore(flags); > } > > -- > 2.20.1 > Patch applied, thanks! Bart