Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp262855pxx; Wed, 28 Oct 2020 04:26:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUAcekEAAigTi1Bfd+8Ozozlry+6IY4o9aemjllM+c0YC964ZStc4v6opZRsuJsAPvZCR3 X-Received: by 2002:a50:e40c:: with SMTP id d12mr7026440edm.35.1603884366807; Wed, 28 Oct 2020 04:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884366; cv=none; d=google.com; s=arc-20160816; b=RovWvvotwSVxTcuxoa/FrdNbSuq77ah3VfHKlT13mWKbWN2jd2ZWizxQJk8Jv+Y+/Z +Dv0n9QHFkItDd3Q0Uo6Y3k1MMsLPl4/uNVTDjEMI9Hwr0ulofhK1T/Vzqw5pBN0HdBV IflHZN+lhc+3MdEut9DDMmrSfbxy0NFVKKCrRMLpFYcxy7r8iaP0xkN2C5esLOt3wUsu uu0wQtJls7PE4Jh7QQOboeuy8uWu3IuR5cuCWTzHrKx5M5QUN76oc2G66+KD55XCMB9T Ab4Z/W+9AAnA45rG1oVT3MPmAu1x+81+HaiIUS9pkJqnM6ChVItelNrmWJ0GfUj5EJKX 4W0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lm/1/ALGUXT0toUUDBsbNSEU/qpaFvcwHmEVJGDiZ0U=; b=0UxmL8bQy1nFBbukIcbj7cYm+kbcCMbHgFRWsJd1trQz2pfCiUch7d3/yP0Zmz4Y9q xbJUbNMB5XmzNajKntjXDnLnbwxhmolrw6GOSWpGhmUY5jtXHxeYBlKCX3wkShry3D2k c6tyx3a6Qh8Yo+hdUCCLcFooBieHcLUKufGTkFctOAiuLLaVXX6DnxYBUP4UezCfHswT FGHAj5OeDJcD34oUbtLLxEgZk81hYHhOL9KsV0hpPVN7Pc9fB/ajqVmOMBwDOvEDm+MP Ft1s0XdWaSLJxl63EFKU8PedRcF9L1M3V8nqjB829sy4mTCJQnnJnqLTZTOgM2NAxSKD wM3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e3dy+eD8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si3663191edn.100.2020.10.28.04.25.44; Wed, 28 Oct 2020 04:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e3dy+eD8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1790180AbgJ0PDz (ORCPT + 99 others); Tue, 27 Oct 2020 11:03:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:34634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1766984AbgJ0PA5 (ORCPT ); Tue, 27 Oct 2020 11:00:57 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB88622264; Tue, 27 Oct 2020 15:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810857; bh=wtsYNTNiMBabdnx6uyZcAbsHDJZMl69FfYIawJAhTCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3dy+eD8/rsOBLLNLlDg5AskTkabjaesW2o9N3qJtxRbAIUEliw1DvogKb52+2aQf wB/23JdWxDpotvz1qxUTOGP/YTshQ+EzYvUxqlaAsWFwSLk9+/7ygCEbaJFBXGGIMx wEmeVvbaJlFxDs0EEGkq437ow7nIwj7rqlHYwaHY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Jeffery , Joel Stanley , Johnny Huang , Linus Walleij , Sasha Levin Subject: [PATCH 5.8 288/633] pinctrl: aspeed: Use the right pinconf mask Date: Tue, 27 Oct 2020 14:50:31 +0100 Message-Id: <20201027135536.178220421@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Jeffery [ Upstream commit 1d6db5ae6b090d1a8edfcb36b9bf47c5f4fe27f6 ] The Aspeed pinconf data structures are split into 'conf' and 'map' types, where the 'conf' struct defines which register and bitfield to manipulate, while the 'map' struct defines what value to write to the register and bitfield. Both structs have a mask member, and the wrong mask was being used to tell the regmap which bits to update. A todo is to look at whether we can remove the mask from the 'map' struct. Fixes: 5f52c853847f ("pinctrl: aspeed: Use masks to describe pinconf bitfields") Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley Cc: Johnny Huang Link: https://lore.kernel.org/r/20200910025631.2996342-3-andrew@aj.id.au Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c index b625a657171e6..11e27136032b9 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c @@ -515,7 +515,7 @@ int aspeed_pin_config_set(struct pinctrl_dev *pctldev, unsigned int offset, val = pmap->val << __ffs(pconf->mask); rc = regmap_update_bits(pdata->scu, pconf->reg, - pmap->mask, val); + pconf->mask, val); if (rc < 0) return rc; -- 2.25.1