Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4187553imw; Tue, 12 Jul 2022 03:38:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1svx6EUexmw1iHOHOzyjDlvjfyrhfyIfLnIJ9GSSN9xHt6Dg0EgRHci2epDBPd3OcQqVKA0 X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr23385913ejj.278.1657622311852; Tue, 12 Jul 2022 03:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657622311; cv=none; d=google.com; s=arc-20160816; b=u2e6+0WhkQhil3FniMe5LDzUGiBZegHT/Ug0i3jOszIr0VGR8sG5uJ1Ls3VNDYeKtu +Sd/XAK01h2phoLPB/cBvuYACo2mkd9ccq9oypj24jask9+txoxfm/c2UywZghgGiQUm qsOHyv0F6anondExqk/m2iYpx1RC6W3iRnNKnhmGZ9Q1TQpwMYd5pp7sddWj9cR+6rtW mgANIrfobd40b6d97TSPg6YPlDfnOHlrreR9OTScv/FDz5Xi+Qd9BUKWV1TdorzKzQyw GloA65elnREolYykChgCYQ86lmF54MkoW/IgDp+HKfos5vAwUnPcQgKQLE5qr/dLbuFe YvcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zGLFrLBHG+1vv4/3v4Wd5AI8LgLowaMQ1bylMp8eakU=; b=lSaULWwTHuB1MskMZfTyMaT1DWsz1w84boeDB+OfGFk7h4paNav1Cz2KfLOLsVLuC7 AKNRTu7/Gn09K4La92l6hHtv4khtSdqnZbtSOv3N0ltMOXpwo8aCOOflJH3y0ttylwVZ v+tzg4kBdQ+TKOT14PMNESSuoZooRZsfmkah34iXrCkd+m1BrWv/e/wYebwP/PiGzAe2 VpJtDvbshzD5vMVr5PluNW2QFha1Wt8x7owxdBQYfnZeNm9AgWkccQvfS8dZffwgPOcU b47lMtDjPyN0W5m0QDyM17sBw45RTSllAmslTLHP6mASUIR37xkDmC095zCq8pdbNbCr /i5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QLb4YxBF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y2-20020a1709063a8200b00726b7f6dbe6si11556904ejd.894.2022.07.12.03.38.06; Tue, 12 Jul 2022 03:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QLb4YxBF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232957AbiGLKMy (ORCPT + 99 others); Tue, 12 Jul 2022 06:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232967AbiGLKM2 (ORCPT ); Tue, 12 Jul 2022 06:12:28 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD00AB7DA; Tue, 12 Jul 2022 03:12:16 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id l11so13063258ybu.13; Tue, 12 Jul 2022 03:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zGLFrLBHG+1vv4/3v4Wd5AI8LgLowaMQ1bylMp8eakU=; b=QLb4YxBFgvCvVSM3WWcpg/dUiKZWa7PTOwW655/JTyr59QyvjD5FM95w9faZhye6CX 9uFJ6x8kItnEYz5Kr3Wwl1WASKa2yXCfqytF06RseZjJoHh+cBDmw+tEtqUClRzBr/Oc iBYMzopVI0D82GFaEUbNFxjPX+8mxdhUm/qfoe9WOi9H2oIXD5j19d4BqFX67m/fHKFs kOzWcpgEpnhmb+qTosCLhQThWYUwrIzcrtp2m7e4ZGfQAGDZ9vZlmR5p8ttPWQ1/RXEI /uO5wgRSY7ByZPDUTvjPDRIe2Sij5lJx5kx2OZcc+8MsTWSPZGrXnyfHbOdiOXD9kJ4Y WtGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zGLFrLBHG+1vv4/3v4Wd5AI8LgLowaMQ1bylMp8eakU=; b=QWNEMkrt1QDYimyI3SdBd6GtYVi5VrahSx1mBATkTojjrpM/J3Oc3AFWZPks1oR1LQ SsQKnr2iNsntt5LBawOQgE/SiPqJ6MJnZ7qevmRWa35ncq0KzGVV3Xs+CsYbl0DChJ5a Hmi2gAU3v+6w4L0yxL143XEouqF9Wyr4O26/DpisAwbpdw1jZXuVEukSV1dv7Aq7cvFS upHqyStMihrmCCewblquUffXWIEdYuApKrpi7Sg29R+WiJYe25ZnAtHBbZdYDvS6MXMn 1u3Q0ONGUJH348etP6qfHJ8rMifpGWtiBnef1yHRqfJZuriW5IxZ8FByt3FBEIFKezOV FA/Q== X-Gm-Message-State: AJIora/vUUx2BFL8YyHqIsNyLt80nc88RnJYTOYiD2rMucrwMe0g8Q2h gZcPfXrW+iqOZjFDtjrmZJGgPn46XvZYAOw3VqY= X-Received: by 2002:a05:6902:10c9:b0:668:e27c:8f7 with SMTP id w9-20020a05690210c900b00668e27c08f7mr21528639ybu.128.1657620735969; Tue, 12 Jul 2022 03:12:15 -0700 (PDT) MIME-Version: 1.0 References: <20220710081853.1699028-1-uwu@icenowy.me> <20220710081853.1699028-3-uwu@icenowy.me> <7a947683de71e68a0925cfd4cab80238c3a03205.camel@icenowy.me> In-Reply-To: From: Andy Shevchenko Date: Tue, 12 Jul 2022 12:11:39 +0200 Message-ID: Subject: Re: [PATCH v2 2/3] pinctrl: sunxi: add support for R329 CPUX pin controller To: Icenowy Zheng Cc: Linus Walleij , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , "open list:GPIO SUBSYSTEM" , devicetree , linux-arm Mailing List , linux-sunxi@lists.linux.dev, Linux Kernel Mailing List , Maxime Ripard Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2022 at 12:10 PM Andy Shevchenko wrote: > > On Tue, Jul 12, 2022 at 11:37 AM Icenowy Zheng wrote: > > =E5=9C=A8 2022-07-10=E6=98=9F=E6=9C=9F=E6=97=A5=E7=9A=84 21:06 +0200=EF= =BC=8CAndy Shevchenko=E5=86=99=E9=81=93=EF=BC=9A > > > On Sun, Jul 10, 2022 at 10:22 AM Icenowy Zheng > > > wrote: > > ... > > > > > +#include > > > > +#include > > > > > > No use of these. > > > > > > > +#include > > > > > > Missed headers: > > > mod_devicetable.h > > > > Thanks for these. > > > > In addition, how to decide what header should be included? The code > > works properly because of_device.h includes mod_devicetable.h. Forgot to put in the first place this: The rule of thumb is Include headers that the header or C module is direct user of. Additional information is located in the sections below. > The best approach is usually learnt with experience =E2=80=94 the more yo= u > code, the more you get. One of the rules is to avoid too many > inclusions and at the same time reduce indirect inclusions, so that > the headers which are guaranteed to be included by others shouldn't > appear. Another rule is that, for the headers (*.h files) the forward > declarations are preferable over the inclusion in case if the opaque > pointers are in use. --=20 With Best Regards, Andy Shevchenko