Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11066219rwb; Fri, 25 Nov 2022 10:38:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JfNSONUcwuPaEKBrC1Sx8A7cSc7+uxTHENXm2ACwee0+yL//b5o3eoe8jjBUD08uFZ26p X-Received: by 2002:a17:906:f895:b0:7bb:5d78:2c36 with SMTP id lg21-20020a170906f89500b007bb5d782c36mr7603452ejb.362.1669401501517; Fri, 25 Nov 2022 10:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669401501; cv=none; d=google.com; s=arc-20160816; b=ITAjQooFiqpmGCV/S53I6ZyAcMYy+75Nz/jpXbRYa3FAYxDzzc4IvOYH077WCWxn0R gnRZRNZBhPNVVOr2VQWfCEuz9pbsasHllrWIileeEOjz196OIy6nuWwebYvmRZY6AzZu 1I0pUsykbtgikGvsEiMrRRIi9hJPll1Jv7Drm8GYHCnH+DL9E3EnltU720LzZBORIpv7 L8aHBp+1jlKlRXTYvyMNdXX736qDjXKDsvnJxoxdCfW8+fnYa273p4AC6o6ivfqe4rSy P6BrgOWsACAYmeMPIFLSApKyxFIltVEYeG5uPED6MBcwxElcOnsrIOqRtEITd+9JWXnq 2AfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PSTqWNHag3SUpc3s1sUcZFF6UQb8ezMgBBQvOC4p8IA=; b=rIWj2FmKfXxTBL71CCzxknMfD261ylDkZe0oZFM7OaLT/YAEz15+mpHaQBHShrIU+5 9DmCpMazEdv2MaJdqhRDon5mE6o067dZPa5Gcp0p9ISqr+Oz48d9vORl41ssTwhlNupQ FsVIAnmpiHIzv7mmJwDCePur3qz1L5wGVnxbzH0ZM89IDFw5/0OErW1njmxS707mzYZo Tmbgff9ugQryiy/JsaKa0kSDrA/NRr4uXNaK6Gr451fME0AZuhfWWAVPPTqypovBSALX YFeo1D5LiDyWI0JccMEs8VwYc1Xpcj/zBq5IuAqVXZEAS10Q0rxqe0DcVp3zVJH4DJAW Jozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BNqJGG6N; 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 gt32-20020a1709072da000b007bd8ac3aebbsi341804ejc.812.2022.11.25.10.37.44; Fri, 25 Nov 2022 10:38:21 -0800 (PST) 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=BNqJGG6N; 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 S229959AbiKYSS5 (ORCPT + 85 others); Fri, 25 Nov 2022 13:18:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiKYSSr (ORCPT ); Fri, 25 Nov 2022 13:18:47 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7177154742; Fri, 25 Nov 2022 10:18:41 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id f18so12013451ejz.5; Fri, 25 Nov 2022 10:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PSTqWNHag3SUpc3s1sUcZFF6UQb8ezMgBBQvOC4p8IA=; b=BNqJGG6NUjVhaqHfPKxqWeQdHWINkXBo1nQ04UVvLY7ant299F/ym4pPSe0oto7cR0 4XACZTwuMBzmtAZyCY6sxv/nnenKRB6tktqbVwmnCYCAv2KAr9usuv9yxgul+XU8W+jY n7scp0g+GaBXDcZaUp1QIgaFdCpTGUplZsDN+pVUXYKlgllGDQq9wCiOMZadKvvSIZUt A9IyezL6Fkmhs9/TJ0KV0SP6PuToVC/zVficpOVAZE7Y7ZZxfJHUEIrOFwmTGs2rNbSN jMfI1b7El163bpzxHhHaf5IT6Oty6dtmep7YPLQO7I1sqsIHBK8Y6DzhbxhjMPg3xcyN 5OhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PSTqWNHag3SUpc3s1sUcZFF6UQb8ezMgBBQvOC4p8IA=; b=5Uzb2s9RZ0rO2UwlfuxYXnqvIf8PKirJ0LHbjWoVDUb4/UNi9dBZfAxk6W4HgofpRY nTRBUsjP/5qxKU24YJtZSFBCIeCPayP6ULasF/g5ZvampHmBCYsUBSOffCWMj9BRzKcG /7MeSQ6lR4Bc6vdCSsUFj8ErMBGnrfAEGzs01enC6l5DQrOvGPaJkz3EGZ9+ilLzmWcZ 9sJWbd318Cxa0C/5YEvPhsAiRwgWnuVnzhTyfid5tB5x+lXFuqnXXhTtCxWQ1v2qV5rw QQC3C6YWP7g7GrZrr6S7dTKLENy++8hLoHUuG1iPtfTeIyCVRV/XayG948BLqMqy98aF HEpQ== X-Gm-Message-State: ANoB5pkdg7QZo8UmAJoT3YBOffMnLNR+R67kESuSDVlcSNzBkNTr6wGK B00qhV5mESed4mmHjTV0QXyLOyp/huSmHfUtqjw= X-Received: by 2002:a17:907:7650:b0:781:e568:294f with SMTP id kj16-20020a170907765000b00781e568294fmr19286209ejc.447.1669400319844; Fri, 25 Nov 2022 10:18:39 -0800 (PST) MIME-Version: 1.0 References: <20221124172207.153718-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221124172207.153718-7-prabhakar.mahadev-lad.rj@bp.renesas.com> <70d1bfde-f57f-1741-08d3-23e362793595@linaro.org> <9b0f8312-2caa-b9f3-edf3-1b720532f559@linaro.org> In-Reply-To: <9b0f8312-2caa-b9f3-edf3-1b720532f559@linaro.org> From: "Lad, Prabhakar" Date: Fri, 25 Nov 2022 18:18:13 +0000 Message-ID: Subject: Re: [PATCH v4 6/7] dt-bindings: cache: r9a07g043f-l2-cache: Add DT binding documentation for L2 cache controller To: Krzysztof Kozlowski Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Magnus Damm , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Jisheng Zhang , Atish Patra , Anup Patel , Andrew Jones , Nathan Chancellor , Philipp Tomsich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" 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 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 Hi Krzysztof, On Fri, Nov 25, 2022 at 12:12 PM Krzysztof Kozlowski wrote: > > On 25/11/2022 11:34, Lad, Prabhakar wrote: > >>> +/* Device, Non-bufferable */ > >>> +#define AX45MP_PMACFG_MTYP_DEV_NON_BUF (0 << 2) > >>> +/* Device, bufferable */ > >>> +#define AX45MP_PMACFG_MTYP_DEV_BUF (1 << 2) > >>> +/* Memory, Non-cacheable, Non-bufferable */ > >>> +#define AX45MP_PMACFG_MTYP_MEM_NON_CACHE_NON_BUF (2 << 2) > >>> +/* Memory, Non-cacheable, Bufferable */ > >>> +#define AX45MP_PMACFG_MTYP_MEM_NON_CACHE_BUF (3 << 2) > >> > >> What are all these? They don't look like flags, because 3 = 1 | 2... > >> they don't look like constants, because we do not use shifts in > >> constants. Are these some register values? I also do not see the header > >> being used in the code, so why having a bindings header if it is not > >> used (DTS is not usage...)? > >> > > These are register bit values for the MTYP[5:2] field. The DTS example > > in the binding doc (above) uses these macros. I haven't included the > > DTS/I patches with this patchset yet do think I should? > > Then why storing it as bindings? Bindings headers describe the interface > implemented by drivers and used by DTS, but this is not implemented by > drivers. > I got your point. I'll make use of the header in the driver for the next version and fix your previously pointed comments. Cheers, Prabhakar