Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4604504ybc; Tue, 26 Nov 2019 11:32:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwP1cwjqUt4BeS94nfhGEGVVTJQdwMTdThIzVv0e78NiXJ2XlxRapDMhwS1ycsl/Z7k+TDF X-Received: by 2002:a17:90b:281:: with SMTP id az1mr986952pjb.27.1574796738558; Tue, 26 Nov 2019 11:32:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574796738; cv=none; d=google.com; s=arc-20160816; b=eLbAdrvQTrN03j8NyXr8aBJHtsHrBOlgmEKOuVWbjw+diUZlWoi3IZYuE2k75qxh/v A0HTOnSXS2BtFdZfLYLFxDWQXrvtSG7FHvRnMnkFHdd3snsKwo7sdAvqiAtJzxUmh4QD ubgGPnaev80k3SjblYMLDGrpRClbRjoa+By9SFBg7y0K+8P6bxRlbPJbeAC7A5SDDl1j NS2WrkmG7QlPzh35L831yNfG3xrX+zsa34Kp62Zw4YJKlBejW9UaU3FNQUOxJ6bg5bwV tnyfcWbUJaX90yx0M2HdZQAcWhPsViNxGv6mekiywRfQqLaAPqoXXnEOksYTIaBk75Xx 1XcA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=N1fma/rzZbsK0KgJkH5gDE4TEHvO2HL1ft3nAMVM09o=; b=R9UvBF2yTxbhlbkt3aD8d+v++KtNCtifn/9+wgc5QJp6fbnI9fSXXKloMWJuA4vpeO BHUq4aqvHh9Omql7hWdw1KxAD1TkQKUzuDiU+lIMwmTsx8Vlskt6DTBUJk7wo2Wc5bsq 9hwXeHmdKVCQZgutQMPrV2eTzCSqsIi/F8EcrCXxTu2gpGY4IX+JSu99kfsAjV5NawGl nYIm0hdbMzup0be+o6gw18vQVWW+zo0Ox94OE4xAZWcwSd5AI8yneVLjBS/g2+1ZVnFn 1fk08m9aA3Ote0ZGvMC7SerLNkYq0fBQbBifoOPXn3cgEmq+I5nudfyjA4km+5+1sbZf zzkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DH9OE1is; 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 101si11712474pld.96.2019.11.26.11.32.03; Tue, 26 Nov 2019 11:32:18 -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=@gmail.com header.s=20161025 header.b=DH9OE1is; 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 S1727326AbfKZTat (ORCPT + 99 others); Tue, 26 Nov 2019 14:30:49 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42995 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727312AbfKZTaq (ORCPT ); Tue, 26 Nov 2019 14:30:46 -0500 Received: by mail-lj1-f193.google.com with SMTP id n5so21574835ljc.9; Tue, 26 Nov 2019 11:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N1fma/rzZbsK0KgJkH5gDE4TEHvO2HL1ft3nAMVM09o=; b=DH9OE1isC9wMnuJMDGOHRni1GwxOUfsJU0ywmLSPLdfWPuomlkUHP8ykBHs1KwwoNZ IJftDyO+OQGKxgrWaR0Bird2WXdpg7JQ9WPQTWKm7kLMz5l8yTUSlLy9lR6+twon3BEh EB6ZMe5P7AwiA+ntl+Nn8ygQu1ODMZv5/opG4sn7DXVu57YHDoSxUbWgOblojTYE5OiK 6bpufoW/OvY8x5WIF4Ugk/rykcm4PGNjfe4M7+WT1L9t2ngWMLGuZy5LhvaJbQV+cYRT 865N738hDX8lXfnjCAPGvdp10UKPvPSQjjmjkLYLAW8NOmVywCz/EaS7QwF/z0HlnYgV sXUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N1fma/rzZbsK0KgJkH5gDE4TEHvO2HL1ft3nAMVM09o=; b=HCpTZltzV4WqwYmTjJrkfsa72bpQysuzKFjlxARVOH20xsiF8+mzNhEr8QqpIEIyie XbwLau1cDvjvJaqaOXsak+inpX96WbgNEgGq54nvYp2KfPFhG9PXEwGBzgFOow8hfPFp S9XFi+VVF/D8Zpwz1wVJxSAONYk4mCl1/urMD1M8Mr5WMq5sgifeDHoJt+GR3R3zSZbO FObWoTjRQhhYnkNw5jlwIrMbWjm8bIugIep2YX8agUVil8j57qO7Fl+tDlGCEQ+z1OVI aiWkBhiZvjOr6+fRMavY5Z5QF8QnhXXTguXF90iYUx4UqOdOPeJjeWBpewJndxLsyw1H ZfOA== X-Gm-Message-State: APjAAAWuSrIa00Y7qChAI4lXUP+0aW23WCVIvi5vcYJUcZadpMq5E+Pq x9lusRPmlJmKxbTAlGZa2l8= X-Received: by 2002:a2e:894b:: with SMTP id b11mr28263730ljk.118.1574796643636; Tue, 26 Nov 2019 11:30:43 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id m18sm6134434ljg.3.2019.11.26.11.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 11:30:43 -0800 (PST) From: Max Filippov To: linux-xtensa@linux-xtensa.org Cc: Chris Zankel , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Baruch Siach , Max Filippov , stable@vger.kernel.org Subject: [PATCH] drivers/gpio/gpio-xtensa: fix driver build Date: Tue, 26 Nov 2019 11:30:27 -0800 Message-Id: <20191126193027.11970-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = 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 cpenable) { - WSR_CPENABLE(cpenable); + xtensa_set_sr(cpenable, cpenable); local_irq_restore(flags); } -- 2.20.1