Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7871548imu; Thu, 15 Nov 2018 02:56:25 -0800 (PST) X-Google-Smtp-Source: AJdET5dcFBqvt9XnhTp+71no9hcvsMG3TlLfxcyPgO5bFetEqQyN/5wtKmg/B0VbsgfR1WPufjCM X-Received: by 2002:a63:b30f:: with SMTP id i15mr5384134pgf.240.1542279385804; Thu, 15 Nov 2018 02:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542279385; cv=none; d=google.com; s=arc-20160816; b=pTgYbtziccZM8dwiiYk8PN54ldYB/asJ9VEVKCHkwlQVbOEuW6hg3gvzxl0bj+wixK ncOpWsVlBQurQf1Q9gwWNGr2l6my41eriV2xieHck540pLQUmbxv6dSxL3J2z4l9UThN ZC+ekJ7BOVs5IKRKAA/pjJ2bO6Hl1Igqi72A6Yx2578j0d9Exfxqq6AIr6HpTUiMlRUK ZLMLUPM+hBImqOu+7w12duzURMTsSLdFAXNlguVos88VqAq4Yzbcx/dMoD3nFOneuanG E5WuhMk9qwmSeNwGNB+QGjYe+GYRkfbSBvreUvsltaW1i4t+ZIGFjbmF8DROswVeBojg 3WMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KnvV7j/+nTg+LDaNboxyDZ6ldnjoYJ8B97EViposZH4=; b=kEba5jLDVuqWvl1Y1GGHQVdFspeSdf/yqVg6Km5MVJ4wVRPwNExA70ck6SqVS6egbA CsWmlQK0CsoWKyft/fMCWTUMpsU39tpcKFt+k1gFR4LPqW8Vp2N47xnn7R091WHxjseh q+gDrrgk5uOUq4LMTxCciBsLiRk+kzAwWd8G7Ecsz+6mcccmGgdC7ODsfNXyCyMF+83X BYHb16jfTDk2u+/XbO2gMoZO1MmhhDOl1HrhImrn4gZPUnXv9l07dRVzeJFherJXYMa+ DYlmC7Iot4J6CispkaWFTJpU2aGvcZ6VtzPHZXK9Y0/K8mxotD2rQx2uwPtXwKU+JSIE O4nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dM2C4Gd8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si26843500pgq.535.2018.11.15.02.56.11; Thu, 15 Nov 2018 02:56:25 -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=@linaro.org header.s=google header.b=dM2C4Gd8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387937AbeKOVCW (ORCPT + 99 others); Thu, 15 Nov 2018 16:02:22 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37847 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387880AbeKOVCV (ORCPT ); Thu, 15 Nov 2018 16:02:21 -0500 Received: by mail-lj1-f195.google.com with SMTP id e5-v6so16899477lja.4 for ; Thu, 15 Nov 2018 02:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KnvV7j/+nTg+LDaNboxyDZ6ldnjoYJ8B97EViposZH4=; b=dM2C4Gd8bjmcVA+aNDUQs940Ok0/FDgGKh1YiJAVWY69sXbZbDxIF5mSKLRHSVRGfM qS7aV3hF8AXCVf6o1HQZoIhn8vEEDkmzQBB2abQlsx/ndKbinQ54R6oV6xrkABbb3XRG 8u/BbxhEVfCyN99E+XUUzDJJ/MnPb79xqqVdI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KnvV7j/+nTg+LDaNboxyDZ6ldnjoYJ8B97EViposZH4=; b=AQPH7Tfup+VF+q19KsSVa8IftWYAN5MNB706BFxthRbrvThCdsK6LKhXlel0FNbBkm LKQl18jw5seqmSBNOXQjhT162C8SK9CZBDisDDNWNZaA9TwvLcknjCYm+JFdK/Ui0Y3F Y2Kkt1prJua2k32DdH0n/xNmJLtZtKbTC24yNVk99oY7ZwUTyHZsJXpQtZ4vNaPOHvWf LJYHkRTXr1iiB7Bai0Q1TFeVtaU12pqx6YCX+cQPhldnvXhs3nh6f+shzm8aHNaQW9Rv jogrASIGpX/5KyoaLwvYyz+dDkNlUNrtrlAmb9TkKHuzFQLdiLi0AWRTzGrHSxIxPVHS ii0w== X-Gm-Message-State: AGRZ1gJzthCpDZhPhbXiv1wgAFxh7mEHuEC3/ETxWfIK4/yvCJ4b/cLO 502/8u96fqZ9xN0L43aG84v+B0ihSB9YNYd0Zfntcw== X-Received: by 2002:a2e:7403:: with SMTP id p3-v6mr3346731ljc.97.1542279300290; Thu, 15 Nov 2018 02:55:00 -0800 (PST) MIME-Version: 1.0 References: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> <20181108101405.14062-7-ckeepax@opensource.cirrus.com> In-Reply-To: <20181108101405.14062-7-ckeepax@opensource.cirrus.com> From: Linus Walleij Date: Thu, 15 Nov 2018 11:54:48 +0100 Message-ID: Subject: Re: [PATCH v4 6/6] pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar To: Charles Keepax Cc: Lee Jones , Michael Turquette , Stephen Boyd , Mark Brown , Rob Herring , Mark Rutland , Liam Girdwood , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , patches@opensource.cirrus.com, linux-clk , "open list:GPIO SUBSYSTEM" 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 On Thu, Nov 8, 2018 at 11:14 AM Charles Keepax wrote: > Lochnagar is an evaluation and development board for Cirrus > Logic Smart CODEC and Amp devices. It allows the connection of > most Cirrus Logic devices on mini-cards, as well as allowing > connection of various application processor systems to provide a > full evaluation platform. This driver supports the board > controller chip on the Lochnagar board. > > Lochnagar provides many pins which can generally be used for an > audio function such as an AIF or a PDM interface, but also as > GPIOs. > > Signed-off-by: Charles Keepax This v4 version looks very good to me! Reviewed-by: Linus Walleij Nitpicks (fix or not, my review tag stands): > drivers/pinctrl/cirrus/pinctrl-lochnagar.c | 1145 ++++++++++++++++++++++++++++ > drivers/pinctrl/cirrus/pinctrl-lochnagar.h | 112 +++ Why don't you just include that header file in the C file. 112 lines +/- on a 1145 line file doesn't matter. > + priv->gpio_chip = template_chip; I would just skip the template and just assign struct members directly. Bonus if you set ->label to something instance-unique as well. Yours, Linus Walleij