From patchwork Wed Mar 29 18:35:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 744906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vtc0D5Pskz9s2Q for ; Thu, 30 Mar 2017 05:35:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="fIrkNdEj"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316AbdC2Sf4 (ORCPT ); Wed, 29 Mar 2017 14:35:56 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:36451 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932189AbdC2Sfz (ORCPT ); Wed, 29 Mar 2017 14:35:55 -0400 Received: by mail-lf0-f54.google.com with SMTP id x137so14433876lff.3 for ; Wed, 29 Mar 2017 11:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=Rgo9b5gldXo7E+5sCyhlWyNwNNocBQ3kijmHij9XpPk=; b=fIrkNdEjqrrQQL8Yz+gqmoprwZ2Q6UIBuB78ndkddeNwf+dEm8envPh7TbRSwgy/l9 7r0a54w64PbZkf8IU6ISxifTnm9SMCoy4EOdDI5LRBjeTkxS6lfjX6Q6Dsz+iQ0R9ZAX 3BvEOf0bqIKtXzJO5AVYWz5PJ3S3RoxTGOVSYati6gK3+uvfBfmqD+I6pQr2iT7cEbV3 ZSq7mh1xPdZ0eXu8EBKJuF9yKidg4J5f3lVaHWY7l3pGlwliF2Ie76Fw76WVpAGDUQ7j kULLWnk9XDqmpdulTuSN9o/rOeUJ+xfUImeDeU70w6PCK9QB1+9DxanVxC1DRgbA49Iv YeXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=Rgo9b5gldXo7E+5sCyhlWyNwNNocBQ3kijmHij9XpPk=; b=TXD0c6o8cKjJyvN/a03v0SOQoMsN6SMlkfc/Z2+QhL+mDguNfaWA4Vd/qcsPbuI+h9 xWDNXsShKKeGjKJf45Pp0eyGCWdLXCC7bzmEJ6PAvaEsI5f55jiscYHO/py2Ew7AYPip k3gpnoHrIZ0sAuB2bcCnkFcFPnzZZdkPBsfWAk8aPmmCYjRXz1IV9FSuLo5AXpR/ni63 SfZ6ovCAHcAGtce171tpbfaiGb1e5991kuC3tiQ6a2eV621Oc7DmiQf5ck1LTHaXDGBb oTGBSDuF9zF4vYiXQ6oKaRO+YQBZbHoIEER2Xtt8LsuTiiC5HZsmCSxT+JtrW3Cnz74e ZM5g== X-Gm-Message-State: AFeK/H3m39133Itv9fSLS1+apucAE+oMWayBeRu9fPJQoPebzzBEGtNfqP58CtBLbpR/fw== X-Received: by 10.46.22.10 with SMTP id w10mr753855ljd.76.1490812552869; Wed, 29 Mar 2017 11:35:52 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.78]) by smtp.gmail.com with ESMTPSA id g70sm1424712lfg.3.2017.03.29.11.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Mar 2017 11:35:51 -0700 (PDT) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Wed, 29 Mar 2017 21:35:49 +0300 Message-Id: <20170329183548.983179263@cogentembedded.com> User-Agent: quilt/0.64 Date: Wed, 29 Mar 2017 21:35:45 +0300 To: Laurent Pinchart , Geert Uytterhoeven , Linus Walleij , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Sergei Shtylyov , stable@vger.kernel.org Subject: [PATCH 1/1] pinctrl: sh-pfc: r8a7791: add missing HSCIF1 pinmux data MIME-Version: 1.0 Content-Disposition: inline; filename=pinctrl-sh-pfc-r8a7791-add-missing-HSCIF1-pinmux-data.patch Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The R8A7791 PFC driver was apparently based on the preliminary revisions of the user's manual, which omitted the HSCIF1 group E signals in the IPSR4 register description. This would cause HSCIF1's probe to fail with the messages like below: sh-pfc e6060000.pfc: cannot locate data/mark enum_id for mark 1989 sh-sci e62c8000.serial: Error applying setting, reverse things back sh-sci: probe of e62c8000.serial failed with error -22 Add the neceassary PINMUX_IPSR_MSEL() invocations for the HSCK1_E, HCTS1#_E, and HRTS1#_E signals... Fixes: 508845196238 ("pinctrl: sh-pfc: r8a7791 PFC support") Signed-off-by: Sergei Shtylyov CC: stable@vger.kernel.org --- drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 3 +++ 1 file changed, 3 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7791.c =================================================================== --- linux-pinctrl.orig/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7791.c @@ -1010,14 +1010,17 @@ static const u16 pinmux_data[] = { PINMUX_IPSR_MSEL(IP4_12_10, SCL2, SEL_IIC2_0), PINMUX_IPSR_MSEL(IP4_12_10, GPS_CLK_B, SEL_GPS_1), PINMUX_IPSR_MSEL(IP4_12_10, GLO_Q0_D, SEL_GPS_3), + PINMUX_IPSR_MSEL(IP4_12_10, HSCK1_E, SEL_HSCIF1_4), PINMUX_IPSR_GPSR(IP4_15_13, SSI_WS2), PINMUX_IPSR_MSEL(IP4_15_13, SDA2, SEL_IIC2_0), PINMUX_IPSR_MSEL(IP4_15_13, GPS_SIGN_B, SEL_GPS_1), PINMUX_IPSR_MSEL(IP4_15_13, RX2_E, SEL_SCIF2_4), PINMUX_IPSR_MSEL(IP4_15_13, GLO_Q1_D, SEL_GPS_3), + PINMUX_IPSR_MSEL(IP4_15_13, HCTS1_N_E, SEL_HSCIF1_4), PINMUX_IPSR_GPSR(IP4_18_16, SSI_SDATA2), PINMUX_IPSR_MSEL(IP4_18_16, GPS_MAG_B, SEL_GPS_1), PINMUX_IPSR_MSEL(IP4_18_16, TX2_E, SEL_SCIF2_4), + PINMUX_IPSR_MSEL(IP4_18_16, HRTS1_N_E, SEL_HSCIF1_4), PINMUX_IPSR_GPSR(IP4_19, SSI_SCK34), PINMUX_IPSR_GPSR(IP4_20, SSI_WS34), PINMUX_IPSR_GPSR(IP4_21, SSI_SDATA3),