Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2554178imu; Thu, 29 Nov 2018 06:49:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XkmRzWb6cMXp/PA0ft3E/r+9oBQQOrMeNcXUAb9YztJi3zifFvk1ADJk8FNxzi+DbwRvYh X-Received: by 2002:a62:220d:: with SMTP id i13mr1659506pfi.162.1543502966612; Thu, 29 Nov 2018 06:49:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502966; cv=none; d=google.com; s=arc-20160816; b=o1Gh7Hnk2psZTcdL84Mn3pUPFYnoZViRjDRWQwoquLx0sh9JWOjYl6pYiAUnXRTccU nZVjDpJCBFa3kmtvK8VGZ4It1FjlAycS0S24wcxPAx2LBRkTBOmEL7fd5xOcM5gXbtvh IjtkGEMlGQmOgW5JARu67vSTFDW+X/6yZEQ4REOwOVinHdOWN/xXmvuINsDMwA6oLMsZ 0TzoxBKTMOVWAl0DstmuSgsyUTPoomCxQmE2qG5SVmOP6rgFYRpvphQQztKu4LMyk72N 3fRpHFhEplKRzbZSKsmkRdgN7Ma+aCK9Zi0tJqZMgYypx+6wxTB4vlGEo3lMhRDPsqyc AAGw== 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=rL/FvcCBr+aQLiySw/kbi9E6/ytQlIn0L6oH56glvCU=; b=FYgV6qrNkPRth+/Q1AlKqvSQZC/SGHecaVpJSxtN1klfXpVKv3Bp9iRDogmMo61Y9Y oKO8KUA+QO6xb1dPjPEK8B2hzLVS0E8XolxNHelP6w43BuQ7bT25pWbV0BFV3SYECdTN ykgo8LSy0ZrZpz6i4xgPQxKzeTXJZGsXaxIfvLNJDd17q/o/8pv2aWTjwlVQPV89VKVP A47WeajO2o8SklJ5q1Jk2MIa3xvIx276ewz+bkWSsOjK5LIXFKPR5ZIZRPvhGZ/eNyeb hBPtpxhAj7DHRnhC8ZXX5MVznpmcReLHufMSOIqaOoDuRvji9x340JykSWwXhqAbytyD xKVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JBIkItwk; 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 a2si2202648pgm.154.2018.11.29.06.49.11; Thu, 29 Nov 2018 06:49:26 -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=JBIkItwk; 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 S1733162AbeK3Bbc (ORCPT + 99 others); Thu, 29 Nov 2018 20:31:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:59132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729984AbeK3Bbc (ORCPT ); Thu, 29 Nov 2018 20:31:32 -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 11FFC2133F; Thu, 29 Nov 2018 14:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501560; bh=hsVmM0g+QwlfvPxCfCLa87kOlhv9ot+2eod5Un16bOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JBIkItwklG8M2dPhc5QYa1zG4/RakSRPFtyGYtYAsjj1q6sJOHckuaH7xNvsE/29C gsrF83z0iiE0AopoGMXeZO+ZP3La0x6ZdQND+oNqaIBB2Gb8UiLd1BtUj746rOPOvE aLdQmgMpbj831M6Nw9FLHrzxoqwEfB8r5OcioFE4= 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.14 046/100] pinctrl: meson: fix pinconf bias disable Date: Thu, 29 Nov 2018 15:12:16 +0100 Message-Id: <20181129140103.093434337@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@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.14-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 66ed70c12733..6c43322dbb97 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -273,7 +273,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