Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1956876imm; Sat, 9 Jun 2018 05:11:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6j2OoyWvs3w4mYJAz5NgHTS5+vCBlqKcM4gw6SfLB6+j1hj8HxWPh0UTUR2HQ9XCRclLq X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr10791860pld.118.1528546283548; Sat, 09 Jun 2018 05:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528546283; cv=none; d=google.com; s=arc-20160816; b=X3MUr2BYXBHc1y9fTzp/u4xgP03xg2oiHQ2Pf5bzauCdtOLZyojUyZDWsEMT5kWJPs HX571/SxhzUbjkwe+rmUCtm5+6vJNTcoWLDEPKtc7TZju2HXm7LLOKdr82VU6Owugh2I AnCVrJ1krxHT7kiP4x/GzhooQbUfZ37LNS8eRsc1/0dw7s+G3OqWCqzcSjhm2g1wm26z UuLFbCYrEbHC+vf5COnQv44BA93famnMWSlH+TQT9m8oN856WFvjfhYdPGpiT5usAI39 Q/bVYqALPdAdnRq7dwe5Y84QrcHk1gBKF6HC3YdMgfQ3XmOL1e4A/5t/ufEAOdl1evug HasQ== 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:arc-authentication-results; bh=J3pxtCz9A/G4mAqyC31zcn9JFc25srpWX46jYbHy0p4=; b=CATaaRkv1+rmTsxwD17iNHIzMniX2fI91Bv0K3t55tH38Offz5I/c8eTV7RscVLybx 2Ln93N7mfISa+MLgalQiltIyrxczwXqx56xPVzmKqQpepaNfi+El1p1PvCHIBzqG4ODj 0ykwZp3ti3PimENHqwX3K/9BPbi6Xc5JXkgNEPo1QFyJ7OO2SP37g8xPeCpgMlOZePI8 jsqebupvsZ1d6iDwH5WiPRohIHrPjw7gW7LqlIErDH3q3hvuDz0yagHtbweJEUkczvlF WM/LCZ580W7D1UvbvbA82cGy9On647h8XJW63y/XbuYydfcPpLJixQiqjGsVW1xi2kfP 66QA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2-v6si15860419pgq.382.2018.06.09.05.10.58; Sat, 09 Jun 2018 05:11:23 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753226AbeFIMKW (ORCPT + 99 others); Sat, 9 Jun 2018 08:10:22 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:33756 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbeFIMKU (ORCPT ); Sat, 9 Jun 2018 08:10:20 -0400 Received: by mail-vk0-f66.google.com with SMTP id 200-v6so9809182vkc.0; Sat, 09 Jun 2018 05:10:19 -0700 (PDT) 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=J3pxtCz9A/G4mAqyC31zcn9JFc25srpWX46jYbHy0p4=; b=OF2xl+gMJDyMhhU91t60jGz9y3JliAlaBLIpHiGsAaNW6XZKlvRa7wNMhiCtCnBQ7m 97stgVGXb0sASByh5wynDWyeSVvNpjZ/hzr+IfZcgQDUhSe/s6CtnHdyspEzZc4iW69Q RAEjjBs7PYV7Mm5qkMbH8QArqCjF3jZuYMzFPlaZfr8VsKcRiRWutS99oAAusPr4mngu 5hZDSEjzlOOikgsfsjTzsfliX7KYbWPyuseVPMs2sYUuU+otzSjize6jx0tNPGjoZ5Wm QA7SqbnhBYg9hhJxTrpQ1fKP7079TyniqCQJL2Pjx2RMEcN6WwFdAnR1t03O9D+/+Z5i YvIg== X-Gm-Message-State: APt69E35fywBYSSXhcS1KFVNcFi5yjGx1L6kskO9rzHhWo5KivXAM5o5 1KFmgftnHrGeP8zc0CqEJWN6vSBD6qIuD0Xll9Q= X-Received: by 2002:a1f:e92:: with SMTP id 140-v6mr6219664vko.90.1528546219391; Sat, 09 Jun 2018 05:10:19 -0700 (PDT) MIME-Version: 1.0 References: <1528198148-23308-1-git-send-email-michel.pollet@bp.renesas.com> <1528198148-23308-3-git-send-email-michel.pollet@bp.renesas.com> <0481173f-6384-98d6-707c-89dc5ef103f0@gmail.com> <9cef7124-3020-5741-f3a2-6925a6c8f0f3@gmail.com> <79c0899e-7df1-1fe7-9681-ad3bd51feda7@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Sat, 9 Jun 2018 14:10:06 +0200 Message-ID: Subject: Re: [PATCH v4 2/3] arm: shmobile: Add the R9A06G032 SMP enabler driver To: Rob Herring Cc: Michel Pollet , Frank Rowand , Linux-Renesas , Simon Horman , Michel Pollet , Mark Rutland , Phil Edworthy , Florian Fainelli , Rajendra Nayak , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Stefan Wahren , Magnus Damm , Russell King , Doug Anderson , Chen-Yu Tsai , Carlo Caione , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Frank Rowand , Linux ARM 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 Hi Rob, On Fri, Jun 8, 2018 at 10:41 PM Rob Herring wrote: > On Fri, Jun 8, 2018 at 2:47 AM, Geert Uytterhoeven wrote: > > On Fri, Jun 8, 2018 at 8:50 AM, Michel Pollet > > wrote: > >>> > + I add this to the cpu.txt, as a separate patch: > >>> > # On other systems, the property can be either > >>> > 32 bits or 64 bits, it is the driver's responsibility > >>> > to deal with either sizes. > >>> > >>> That is definitely not what we want to say. Use of 32-bit should be > >>> considered out of spec. Yes, we have a few platforms in that category, but > >>> they already handle that themselves. Would be nice to fix them, but at least > >>> the STi platforms don't seem too active. > >>> > >>> IMO, we should delete whatever text we can here and at most just refer to > >>> the spec. > >> > >> So actually I didn't use 32 bits by plain chance, I read the cpu.txt file which says > >> that 64 bits systems use 64 bits property, concluded that in my case I ought to > >> use 32 bits, then grepped around and found other systems using 32 bits, therefore > >> I went forward and used it.. > >> > >> Nothing said here that it should be 64 bits everywhere -- So the documentation > >> needs fixing somehow. Right now it certainly led me wrong. > > > > Perhaps we should add to Documentation/devicetree/bindings/ the standard > > bindings from ePAPR and successors, too? > > I hope you mean *reference* here, not duplicate the bindings here. We > want to move in the other direction and move the common bindings out > of the kernel and into the spec. I did mean copy... I usually grep in Documentation/devicetree/bindings/, and fall back to the spec only rarely, mostly because the spec usually doesn't cover what I need. I am aware of the ongoing work on updating the spec. I guess it's a chicken-and-egg problem... A list of standardized properties under Documentation/devicetree/bindings/, referring to the spec may be a good interim solution. So at least it would show it with git grep. > The real solution here is validation which I'm working on. I had > already converted cpus.txt. Here's an example of the results of the > validation: > > arch/arm/boot/dts/stih410-b2120.dt.yaml:1962:7: cpu@0: 'enable-method' > is a dependency of 'cpu-release-addr' > arch/arm/boot/dts/stih410-b2120.dt.yaml:1965:26: > cpu@0:cpu-release-addr: [155254948] is too short Thanks, nice! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds