Received: by 10.213.65.68 with SMTP id h4csp473852imn; Fri, 16 Mar 2018 08:51:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELuAJvUgYXnH50PQMcIqPCVxfwWpTrPRueGs6mWXhSu512TkwQ8OiftCsuC+D0t18o5oAMmL X-Received: by 2002:a17:902:bb8a:: with SMTP id m10-v6mr2633283pls.357.1521215466182; Fri, 16 Mar 2018 08:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215466; cv=none; d=google.com; s=arc-20160816; b=aqM8Wn0RpiJcSUvy7cZx+pBQsjG8BCL+ptb9whhbOiLuGtQd2n+9EebJQl1918bEFY CQK4DXy8L4U1K5r+0lKs4B3YylVuwzLfUO+T+G0gy8x7p/6KHRzPgzUaJ9yDvE1EtMR3 3Hsn5dqbyHCsB62inSr63sHUNx+2xED5fTDXglThKS0SuRoibNcIZt3kROX/sWyfgxFu QyvCcQwUCkJ94m3NnnY2I9SahJAqMidbgvHHVpzXhhrgVtPx9ZEywYwrx3rpN82eQ9qg ddFQIrLbGVEHgm2IPButL9+t7xYdOrGkLdVPPmU3qtIJotOrq8LXqGLbahUFo07NqaCI nxBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AKPCuRi6eL6o0umw3HUkTW/zBT5fgDc1qVWFLOeZnFo=; b=LI1eXpvboR0zBU2vGEhAWsz0y+t5R2co+Kf1FjvufUyz/oUV3rTr4Nfy8TWFl/26ZZ qY6F54ylvYUJxuITIdKH4y8DwjADQGgJmrectWjC4QnNfXyu2iOgxfuiDypzS7NksR1J AXif6taf8Ioug6BeHb5XsaS4kr1uiIsOzwRrv8U1jDgPgcwTJrEpUpqge41y7E35ffNx O3+ILOF/pbcYNlCgclGUc1ys6v4mn0e2VYGY+9PpbDQA5rmFt3s1ZWNRr7hdH6sx05an 1X49fIiEaxt9LuIth9cj0iFk28TkHktr19INpLbvEqs2yPGvhJlVaT9OT//8Rgd3bM+T hS0w== ARC-Authentication-Results: i=1; mx.google.com; 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 u21si5684503pfl.176.2018.03.16.08.50.51; Fri, 16 Mar 2018 08:51:06 -0700 (PDT) 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; 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 S965440AbeCPPon (ORCPT + 99 others); Fri, 16 Mar 2018 11:44:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46072 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934570AbeCPPoj (ORCPT ); Fri, 16 Mar 2018 11:44:39 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2911EE40; Fri, 16 Mar 2018 15:44:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fabrizio Castro , Ramesh Shanmugasundaram , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 4.15 085/128] pinctrl: sh-pfc: r8a7791: Add can_clk function Date: Fri, 16 Mar 2018 16:23:46 +0100 Message-Id: <20180316152340.835750008@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fabrizio Castro [ Upstream commit 57eec02caee60332b8052615e7257f932ae07abc ] This patch adds can_clk function to r8a7743/r8a7791 which is cleaner, and allows for independent configuration. We keep the can_clk* pins definitions from within can0_groups and can1_groups for uniformity and backwards compatibility. Signed-off-by: Fabrizio Castro Reviewed-by: Ramesh Shanmugasundaram Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c @@ -4826,6 +4826,10 @@ static const char * const can0_groups[] "can0_data_d", "can0_data_e", "can0_data_f", + /* + * Retained for backwards compatibility, use can_clk_groups in new + * designs. + */ "can_clk", "can_clk_b", "can_clk_c", @@ -4837,6 +4841,21 @@ static const char * const can1_groups[] "can1_data_b", "can1_data_c", "can1_data_d", + /* + * Retained for backwards compatibility, use can_clk_groups in new + * designs. + */ + "can_clk", + "can_clk_b", + "can_clk_c", + "can_clk_d", +}; + +/* + * can_clk_groups allows for independent configuration, use can_clk function + * in new designs. + */ +static const char * const can_clk_groups[] = { "can_clk", "can_clk_b", "can_clk_c", @@ -5308,7 +5327,7 @@ static const char * const vin2_groups[] }; static const struct { - struct sh_pfc_function common[56]; + struct sh_pfc_function common[57]; struct sh_pfc_function r8a779x[2]; } pinmux_functions = { .common = { @@ -5316,6 +5335,7 @@ static const struct { SH_PFC_FUNCTION(avb), SH_PFC_FUNCTION(can0), SH_PFC_FUNCTION(can1), + SH_PFC_FUNCTION(can_clk), SH_PFC_FUNCTION(du), SH_PFC_FUNCTION(du0), SH_PFC_FUNCTION(du1),