Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13335508ybl; Sun, 29 Dec 2019 09:33:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxiYK3t8eb/KQu9p7ztSS6inTL1KOeNTWUXHKkGzmYn1fiYfB+SR1DNIvy0qInxIJvmsqe6 X-Received: by 2002:a9d:6f85:: with SMTP id h5mr69804814otq.19.1577640798017; Sun, 29 Dec 2019 09:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577640798; cv=none; d=google.com; s=arc-20160816; b=a1olmzvF+WSs7oFuh5IF04Uy2/CYclYfmn2anCz+FaHRYKIQ9+At6lpcsfcNtzAlvL u93G+ygFVOoc8g8crLNZAcJPN3oQpW3OJLRGJMUwUkCxtdO7TKflOScXgmdeE7JX3awl 5qy+atATWN2Vhc7Cti1kctP2RgdKrjkbDGk2bh502DUL+b51XKXG+45bYWyqkA7dU5d2 yrF5SL4ImwoQ8FOfXcwE6ZMQqJ5w2lWy3FxDVgWlLTJHyRNZ68hHWQrmgTUQR9ivGdx2 25fs6+HubuVosVSdFEqE4FGUulCF9m0AKHFaR2Cu/K2R6BdyZ6BSMbEEQYHTeyPANoN6 Tc1A== 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=FGLE++yRG3VQItq6UFb7+HVbTO25sEu+VQjA+6XXV7U=; b=SUVtH64dQlk9hc03a2tPG0lXj7K5uw+Ezz/egrQThz1qZIdGVD02b64OesnPREDHAx 4Bsm6v+sjq5qt2dYDr4LGspqFJO6lwopYhD27Sv5q2ZEW2HFFJK624Wp7+X9ZC208nBS x7TE9f6JaN952KbD0eOi4sIsYhIP19zEr9+YuvyhwYHd/I1ThP1iyKV2eL6OXgnT2sq9 Bmzbp10MwJ7f4N9lIs2ezUqn2IEvw0Pi2zxBX98sMi1qy0EpnOKfRuBoAD0jxJAFu8UJ BrNyJCcs8w8UiJoPTZrMdfOfI7bkK+pESTHqJBlmKJyPxTPPUBOOdbfMtwsYA6IxreHI cnLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g3QlPgaA; 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 e20si10273315oti.219.2019.12.29.09.33.06; Sun, 29 Dec 2019 09:33: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=@kernel.org header.s=default header.b=g3QlPgaA; 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 S1729244AbfL2RcA (ORCPT + 99 others); Sun, 29 Dec 2019 12:32:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:59876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729234AbfL2Rb4 (ORCPT ); Sun, 29 Dec 2019 12:31:56 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 CF610207FD; Sun, 29 Dec 2019 17:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577640716; bh=+6P1ETt2YoWLw9bEILXQxD1Yk8hRMz6G/oly8oMsT8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g3QlPgaAkIxvCyJOMtcyrgjnGIg3KyTk4OsIhx+fuHO+Pn6Zhf1WtP4gx7g0lUSeW Rlmkd1N9NDhgbGpFiSTBa8L9oWRAyW53YwbbmUKAwJ89u7fC0U52oMTysvoSTuBXum aah1qqjU37JUj/gDDPS/tYo5lI7VI1tzuYp+72x4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Dooks , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 4.19 109/219] pinctrl: sh-pfc: sh7734: Fix duplicate TCLK1_B Date: Sun, 29 Dec 2019 18:18:31 +0100 Message-Id: <20191229162525.152491792@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229162508.458551679@linuxfoundation.org> References: <20191229162508.458551679@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Geert Uytterhoeven [ Upstream commit 884caadad128efad8e00c1cdc3177bc8912ee8ec ] The definitions for bit field [19:18] of the Peripheral Function Select Register 3 were accidentally copied from bit field [20], leading to duplicates for the TCLK1_B function, and missing TCLK0, CAN_CLK_B, and ET0_ETXD4 functions. Fix this by adding the missing GPIO_FN_CAN_CLK_B and GPIO_FN_ET0_ETXD4 enum values, and correcting the functions. Reported-by: Ben Dooks Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20191024131308.16659-1-geert+renesas@glider.be Signed-off-by: Sasha Levin --- arch/sh/include/cpu-sh4/cpu/sh7734.h | 2 +- drivers/pinctrl/sh-pfc/pfc-sh7734.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sh/include/cpu-sh4/cpu/sh7734.h b/arch/sh/include/cpu-sh4/cpu/sh7734.h index 96f0246ad2f2..82b63208135a 100644 --- a/arch/sh/include/cpu-sh4/cpu/sh7734.h +++ b/arch/sh/include/cpu-sh4/cpu/sh7734.h @@ -134,7 +134,7 @@ enum { GPIO_FN_EX_WAIT1, GPIO_FN_SD1_DAT0_A, GPIO_FN_DREQ2, GPIO_FN_CAN1_TX_C, GPIO_FN_ET0_LINK_C, GPIO_FN_ET0_ETXD5_A, GPIO_FN_EX_WAIT0, GPIO_FN_TCLK1_B, - GPIO_FN_RD_WR, GPIO_FN_TCLK0, + GPIO_FN_RD_WR, GPIO_FN_TCLK0, GPIO_FN_CAN_CLK_B, GPIO_FN_ET0_ETXD4, GPIO_FN_EX_CS5, GPIO_FN_SD1_CMD_A, GPIO_FN_ATADIR, GPIO_FN_QSSL_B, GPIO_FN_ET0_ETXD3_A, GPIO_FN_EX_CS4, GPIO_FN_SD1_WP_A, GPIO_FN_ATAWR, GPIO_FN_QMI_QIO1_B, diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7734.c b/drivers/pinctrl/sh-pfc/pfc-sh7734.c index 33232041ee86..3eccc9b3ca84 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh7734.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7734.c @@ -1453,7 +1453,7 @@ static const struct pinmux_func pinmux_func_gpios[] = { GPIO_FN(ET0_ETXD2_A), GPIO_FN(EX_CS5), GPIO_FN(SD1_CMD_A), GPIO_FN(ATADIR), GPIO_FN(QSSL_B), GPIO_FN(ET0_ETXD3_A), - GPIO_FN(RD_WR), GPIO_FN(TCLK1_B), + GPIO_FN(RD_WR), GPIO_FN(TCLK0), GPIO_FN(CAN_CLK_B), GPIO_FN(ET0_ETXD4), GPIO_FN(EX_WAIT0), GPIO_FN(TCLK1_B), GPIO_FN(EX_WAIT1), GPIO_FN(SD1_DAT0_A), GPIO_FN(DREQ2), GPIO_FN(CAN1_TX_C), GPIO_FN(ET0_LINK_C), GPIO_FN(ET0_ETXD5_A), @@ -1949,7 +1949,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = { /* IP3_20 [1] */ FN_EX_WAIT0, FN_TCLK1_B, /* IP3_19_18 [2] */ - FN_RD_WR, FN_TCLK1_B, 0, 0, + FN_RD_WR, FN_TCLK0, FN_CAN_CLK_B, FN_ET0_ETXD4, /* IP3_17_15 [3] */ FN_EX_CS5, FN_SD1_CMD_A, FN_ATADIR, FN_QSSL_B, FN_ET0_ETXD3_A, 0, 0, 0, -- 2.20.1