Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11817664pjo; Thu, 2 Jan 2020 14:48:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzbuqg6UlkyRJv1UyzMa6fQVoe5DxE0gRUJo8oVCUWR+7V3KY682zO4Lkx/myYbu5PuTq+y X-Received: by 2002:a9d:784b:: with SMTP id c11mr89610693otm.246.1578005331316; Thu, 02 Jan 2020 14:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578005331; cv=none; d=google.com; s=arc-20160816; b=yz67PjMR13P2qYfc/iLdw07ljso74rqylKJoIJbQ2CyQ6p+vJMlBE/e6i6+y/iZx2z l3SWwqGbAQ8qKQbrOO5ELA1FHZccD9qUWYXSHF0i1uRvyNnTwUX3Agq64lCl3yDuDwZw a6/1ff9vMGlK9NI7nTTqLBk2dU1NbX1kgXYDd+wWriIBEEJ/4nZ8bCwSYJSZiraSglTK dX0phKWUNEYfpAz9kAS7+rHwVB+oxyOHDn0PzYl81e+nGpkLzJD1lUf6PWQJOx6N6lVD rXxpI1uLj0GbG3OEzpAB7oDL0/S8sXVnyPuuwxpMcIVY2EqfQdM+ii8BL5wn2g+gDXY0 4waw== 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=OmFDsLIbRoI5DgUS+pbRLbhevTuaRxXZnTdwWcP+SdA=; b=ClgQWtyptKyqxlU2+a0x8yY3f7W0N7tH60X/KRjmFDO4bN/+J0iDbX/ZENOr64zQKe zGAOBn+9CRvjY6S8rHMGeYklos5XzUzrASzcMONvD2dCZmJq7QgfZ/ZDVOEfmgS2g+vR gS3YORAFg3/j+oE6WWUXgyUlBgFYhPnOGAAVcCblgP/lQaRu+8UERf0YETZtyB8rl1wT gBzxdfFwqLhCt5aeklm6NmhF3Vjv5cAru0WZYX/x9DKnhmqxZPfqYW6AdmsGnANW/ITk IduNUNq3QsY6U4AIqqw69QI3AsQw0o9i22nO9o/iywC5DBkREwOw3v98WKMXQMFCq0qx hRag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=01zwjWLw; 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 l14si31630276otk.225.2020.01.02.14.48.38; Thu, 02 Jan 2020 14:48:51 -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=01zwjWLw; 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 S1730285AbgABWrc (ORCPT + 99 others); Thu, 2 Jan 2020 17:47:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:60738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730059AbgABW3f (ORCPT ); Thu, 2 Jan 2020 17:29:35 -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 DC6B1227BF; Thu, 2 Jan 2020 22:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004174; bh=Om2MnQ8zQIdV9DmBe4vs/eAju66eTxW/580jpUClxsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=01zwjWLwyqC10K4o708t6M/UX2vV2TwxN62uxirIOrkjhD6Nz9ceV044sVGetVYxb oftUnrIw3xt5I2N9ZqreoI33veZzNrEHtuxaAXkfESspg2W5YvEOY6J2XkMbThbN8u kmOY7EWM4KI6QGEcbQ+TUd3NrlqYRpAxZjp+LUFM= 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.9 044/171] pinctrl: sh-pfc: sh7734: Fix duplicate TCLK1_B Date: Thu, 2 Jan 2020 23:06:15 +0100 Message-Id: <20200102220553.027746472@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.960200039@linuxfoundation.org> References: <20200102220546.960200039@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 2fb9a7b71b41..a2667c9b5819 100644 --- a/arch/sh/include/cpu-sh4/cpu/sh7734.h +++ b/arch/sh/include/cpu-sh4/cpu/sh7734.h @@ -133,7 +133,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