Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7926351imu; Thu, 15 Nov 2018 03:54:41 -0800 (PST) X-Google-Smtp-Source: AJdET5fJEs55FkkuFab2WO90FwIX7PD79THuY4EgzpLLNKJOmpg22eNIYtZIfL5+vpv9sqtjSVdo X-Received: by 2002:a63:fe48:: with SMTP id x8mr5611224pgj.261.1542282881329; Thu, 15 Nov 2018 03:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542282881; cv=none; d=google.com; s=arc-20160816; b=ndjUZQgVIYpo21U3bH5NUnO5jP3aP2kOvMECNmRSHkl0BZgT2T1aj1897BZUCt2hIc j1MTf8sKxCLjSheWUnqFmuBmxCVwLayDcWTNqSY/QhXKh3ZNPDpsQ0jcGLmCjkEFZigq IMv9IahprLAYZVKZVvwMlytMeChRkx/nyASmANxAe8WQsuG2u4NS+R+Yui/9B3UeaWbJ 4yZfKDTxuCZ/3fdqsAvDC3ePARnJcnbm6qQbNu3u0nj+VAGaHE+TLydKKiQMRFbZXviU m+m+qD/3QwBq2sPVIrfGwYkzinolzlS3v7skH9Ndv4ecohBmqI9tmSIqtkxQ3mPYvcg2 JRzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jKJozSBoqwd6IyPQj/J9aOjh8XOFGpbzabGcgtgAb1o=; b=hrctf4+TQLl+xwDtBKUUqDAu070FRue4No1biXC5Xdcbp4nfVM3k3CvHKnJn8XJ1tQ LwVBrDtzm2vkVZ3+SEtnumcugjkO9bTgpG2JmE7BlstrHgGiWXnMzhgfpBwgrtDgxhAR PXFk4w2cDqrFG26qA1nKIUG8jczCLNddjWS5p2PDLktsQUBxC4I+nDCmBhoqYQaAIoM4 8zJtYhU/BrepnwsoL8qI6OoBCUGlW3FUVFi6KpNhXdYgWAa8XL2FbaqWUpd/4oPxZEuo 0gnqSb2hzVZd6VW4/NP9MAKhuVWKT3ebK0wkIXkVO8emHPH3JITRiPdJqwCbL1jAcFA9 aVOQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si24095430pfn.184.2018.11.15.03.54.26; Thu, 15 Nov 2018 03:54:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388168AbeKOWBU (ORCPT + 99 others); Thu, 15 Nov 2018 17:01:20 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:54570 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387548AbeKOWBS (ORCPT ); Thu, 15 Nov 2018 17:01:18 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wAFBo0bs016551; Thu, 15 Nov 2018 05:53:37 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2nrp6njhk8-1; Thu, 15 Nov 2018 05:53:37 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id B4DE7611E128; Thu, 15 Nov 2018 05:53:36 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Thu, 15 Nov 2018 11:53:36 +0000 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wAFBrZX6011137; Thu, 15 Nov 2018 11:53:35 GMT Date: Thu, 15 Nov 2018 11:53:35 +0000 From: Charles Keepax To: Linus Walleij 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" , , linux-clk , "open list:GPIO SUBSYSTEM" Subject: Re: [PATCH v4 6/6] pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar Message-ID: <20181115115335.GA16508@imbe.wolfsonmicro.main> References: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> <20181108101405.14062-7-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811150108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 11:54:48AM +0100, Linus Walleij wrote: > 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. > No objection to any of those need to respin for Mark's comments on the regulators anyway, so will wrap these in and add your reviewed by. Thanks, Charles