Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2542281imu; Thu, 29 Nov 2018 06:38:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/WN9XQf9gXH1g0sA1XJbiOxCsE48h4AWWxCEJomvd5wAqP/3vZbxcgrLPes2uJeCRirSctA X-Received: by 2002:a63:4f5e:: with SMTP id p30mr1452719pgl.71.1543502308723; Thu, 29 Nov 2018 06:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502308; cv=none; d=google.com; s=arc-20160816; b=Xvm74kYBnhL49vZIC+b2UMB7QIr3zJnOnIs1CYrF23WDYhUCpw4cV9hsnj+FZv+TMb /u3AWBZoBojxj3SHMMPzCpVt2N8eqSj/SaEMg5903hvkPLCqNtPG879K0du/3ij+BToK 2VHO0xCIkGW/ES4CcEu7pkHuDrsqNT2CGpQlq5BAgUI80xG/jAASINBQ1/ygt/sNLJ8R 7KPvsAO3qtb28uHW0xJMnPxydpQ8AyKdSzAOcs+4HI+Q+hi4CgEpzIAQrLoH4ODNRIxS z/pDH7AYxtJHUXxZeSCzdBNcn2Ms4si1NMyRR5lP6S8nBUXNbhjm5YUBzFQODw7GNIra VddQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0KFXSWD7uG/cw2NexBvTrmNigI8MxHxG61gOdi97aTI=; b=0X82hpop+TWGstOfl3kxgU62eviM4X+qvCxFMcWmSfLuKli1ajfXQ5KauYjVXsR2R7 99zXDoYI01YABFdeuqurkRU/EtvIOixv3/Iwix5MN7558LCy6I3dPCpQy80/97jSzvkD gvbP1jL/guXVVnVzDIY3atLg8nr7li/f05sp70Ueo62iWcoKzuCq/rmV6AUU9CCGqDkk qf/AuOrcu0+wYlObEL4cGBTz2iySbO8YI//Fv8kxGhirEsCBQFmGA4oWNffQGo9ocJJg 2Jl8Zaiz6hh1UrG4AMC09cXlk2nvmzfnwlopjgwQCYj2pCk0bpL5GmksGAKPnEBbymEY qgyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r4VnAA4Y; 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 69si1744830pgd.290.2018.11.29.06.38.13; Thu, 29 Nov 2018 06:38:28 -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=@kernel.org header.s=default header.b=r4VnAA4Y; 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 S2388887AbeK3BgS (ORCPT + 99 others); Thu, 29 Nov 2018 20:36:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:38584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388288AbeK3BgR (ORCPT ); Thu, 29 Nov 2018 20:36:17 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 DDBF0213A2; Thu, 29 Nov 2018 14:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501844; bh=WGOdbdODmIqUefV1fob7eKqZrMot0i4SRBn4v41BZ6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r4VnAA4YRPnIr5FC4N3xjzvIIBbXFEakDypC3h0pEwTVo9xG02n36A9QGSdwy/fgc 7u+Cuw+UY9UTNrRiUcZn7EfJbyvC0Xo/dhA5x+nx7GuK8+LSkgOt1+pFturrnwkt6S V7P16lbzmVSGQtpF59EVCKJXFEI6mhveR78bDWPU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Neil Armstrong , Linus Walleij , Sasha Levin Subject: [PATCH 4.19 065/110] pinctrl: meson: fix pinconf bias disable Date: Thu, 29 Nov 2018 15:12:36 +0100 Message-Id: <20181129135923.881035539@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129135921.231283053@linuxfoundation.org> References: <20181129135921.231283053@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit e39f9dd8206ad66992ac0e6218ef1ba746f2cce9 ] If a bias is enabled on a pin of an Amlogic SoC, calling .pin_config_set() with PIN_CONFIG_BIAS_DISABLE will not disable the bias. Instead it will force a pull-down bias on the pin. Instead of the pull type register bank, the driver should access the pull enable register bank. Fixes: 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs") Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 29a458da78db..4f3ab18636a3 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -192,7 +192,7 @@ static int meson_pinconf_set(struct pinctrl_dev *pcdev, unsigned int pin, dev_dbg(pc->dev, "pin %u: disable bias\n", pin); meson_calc_reg_and_bit(bank, pin, REG_PULL, ®, &bit); - ret = regmap_update_bits(pc->reg_pull, reg, + ret = regmap_update_bits(pc->reg_pullen, reg, BIT(bit), 0); if (ret) return ret; -- 2.17.1