Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753350AbdHGLzD (ORCPT ); Mon, 7 Aug 2017 07:55:03 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:35886 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753192AbdHGLzA (ORCPT ); Mon, 7 Aug 2017 07:55:00 -0400 MIME-Version: 1.0 In-Reply-To: <20170801155720.10229-2-gregory.clement@free-electrons.com> References: <20170801155720.10229-1-gregory.clement@free-electrons.com> <20170801155720.10229-2-gregory.clement@free-electrons.com> From: Linus Walleij Date: Mon, 7 Aug 2017 13:54:58 +0200 Message-ID: Subject: Re: [PATCH 1/2] pinctrl: armada-37xx: Fix the pin 23 on south bridge To: Gregory CLEMENT Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" , Antoine Tenart , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Nadav Haklai , Victor Gu , Marcin Wojtas , Wilson Ding , Hua Jing , Neta Zur Hershkovits , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 28 On Tue, Aug 1, 2017 at 5:57 PM, Gregory CLEMENT wrote: > Pin 23 on South bridge does not belong to the rgmii group. It belongs to > a separate group which can have 3 functions. > > Due to this the fix also have to update the way the functions are > managed. Until now each groups used NB_FUNCS(which was 2) functions. For > the mpp23, 3 functions are available but it is the only group which needs > it, so on the loop involving NB_FUNCS an extra test was added to handle > only the functions added. > > The bug was visible with the merge of the commit 07d065abf93d "arm64: > dts: marvell: armada-3720-db: Add vqmmc regulator for SD slot", the gpio > regulator used the gpio 23, due to this the whole rgmii group was setup > to gpio which broke the Ethernet support on the Armada 3720 DB > board. Thanks to this patch, the UHS SD cards (which need the vqmmc) > _and_ the Ethernet work again. > > Cc: stable@vger.kernel.org > Fixes: 87466ccd9401 ("pinctrl: armada-37xx: Add pin controller support > for Armada 37xx") > Signed-off-by: Gregory CLEMENT Patch applied for fixes. Yours, Linus Walleij