Received: by 10.213.65.68 with SMTP id h4csp469121imn; Fri, 16 Mar 2018 08:41:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvSMPU9ce7CmCfHjolXWX4M70neUxNeZ7YX9AkWwzFIiOZMpKiuD/KBxgaQjolRFS0qyRK X-Received: by 2002:a17:902:ba96:: with SMTP id k22-v6mr2640581pls.111.1521214904502; Fri, 16 Mar 2018 08:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214904; cv=none; d=google.com; s=arc-20160816; b=YhnYjgXxrwVn1hxtnA+1q6c0MGj5QWHFS4/peHHgSe0Uczl7J5NtTsDK6PY9yLESEb s3cgf7QB1y72aLwzL8vjWP9lw3oEIey0aFodBdgIm2j6wsLt3+Z9KNqzfSMTMT9HzIkK +CbvcAXSbtyBb/UNmhEyCyzQOnH0g/q/kMqxWisUaVwj1nkoxfKiFEQBckMyyiobF9+5 L4KOfrhCMbSpE7zDiuGg7bSXcOmBHmj4OVOs+BSBS8OoUh+6lQSIFQx8wBSXF5kA8YBs AZ3Cu/SyVcxs+y2vfg1xUMgpfX6rVxPdVKBfyMNk0Ho9F+Fjn8GerYyN8VeZUtvJ1iUX JZsg== 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=YhRP8hXNTlfsHigBTUZHPpmN2ajqI/0r4uan94uCiE0=; b=mDKPRY0nXEBqS8cn1cbjeELMRUenuHO882Ruo+8rQsL9xLDkIBgMwHZAJ5nz9QRWha +6IYGjOkFowY/jMckEZVNaQuBgV7J09QoeVkLwmV0D1kysDOlopBKRfTNZwzKwA9xSDi 77ywNFA++hFYxHD8kzMCrvWrWO6V6CQlcCII7KKxr866CDH3O6SeiJZzofOsGOERjWA+ u8KXhpP4uUWEbfxI+oFIThD37V6kBt5PGSeLYGOYpOzvILqkD1BMrFKDZnNEvbWJBpis 1zNel3KzS/B2NsSl+Pz1c89y+tiiifq2NOTn0H+Q7ta3wJe8pechPxhWxKFeH91/FWxh TQrQ== 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 k71si5109469pga.68.2018.03.16.08.41.30; Fri, 16 Mar 2018 08:41:44 -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 S934270AbeCPPiq (ORCPT + 99 others); Fri, 16 Mar 2018 11:38:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43010 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964860AbeCPPin (ORCPT ); Fri, 16 Mar 2018 11:38:43 -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 F20B1901; Fri, 16 Mar 2018 15:38:42 +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.14 070/109] pinctrl: sh-pfc: r8a7791: Add can_clk function Date: Fri, 16 Mar 2018 16:23:39 +0100 Message-Id: <20180316152333.799246058@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@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.14-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),