Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10403579rwb; Fri, 25 Nov 2022 04:25:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EG0esj5nJ1Sdm7rifeqR+mMBvCHmHlUv1bPkFo5UNcp8QhlmUp+oji/ld2nuEZtI4zfTs X-Received: by 2002:a05:6402:494:b0:46a:c9bc:ccd4 with SMTP id k20-20020a056402049400b0046ac9bcccd4mr1269390edv.200.1669379148541; Fri, 25 Nov 2022 04:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669379148; cv=none; d=google.com; s=arc-20160816; b=bvFwG6+LDzR/U5Re/XwMi5CKe56kbvYuNwxfI1zKbIzJ6UA+WHoBtCjAF76ICvE328 +kE6wN9yk2mRmr59ZRoTxgtGzlf8ytGjHHBaIxBAYLm2eTKWiuBo+xQVhQHn5qOmcRCD XasKNex60zb2YEpYt9bctsHBmB3K+jG6kYDh+QsfsVqUabzmuSuSI2mbo/5PMIeX3Izw XTQ31Fpsjb0sxZSVEBbZ2Ju16DOtA47cU5yggE6WBGTycqrdiMOMl2K6oga7MZ0/DfQB NDYbyt/a7ApylV4biBDg7xHRJf6QY69TgmPHXDjuzI49oi881A83kWVT8gsdYtuahT78 7X5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WIDCe1F2pbbd2Mgy1MXrte4UDEybWJsDPNOb5ZCnmZQ=; b=IsCR8mZfCfyUx3lSLFQsggQrss9CGSwnBfsVpddKSYd9+jnI8iCy4oI02Lx170wlNo JL+fQ1DfIf0neF7MPaXf4pYbvBCRHBKloVIo7/dYcSw000YPuNYggaxuksphSBGowDy7 9qWTuZjWlzN11msmPAGh8mXbRUwd7Kwri1ovu5lW+naWOyuD+Ph/+XVlMLqoxWdC8oad d74+uVDTRD5Fx5eqH1zaJpocrdmzbWRao7nIbwp4MsqMG28pEp3+UxlMRO1mG9uErep7 fSgR2NrWRPpAH9fkYmOh/Ces8q8nuZjHYhw0big/E2iAYLHoLlcNJft2K5gEFEnIS21v jbow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UoBk6bEF; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb5-20020a170907960500b007aecd8912ecsi2903910ejc.21.2022.11.25.04.25.27; Fri, 25 Nov 2022 04:25:48 -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=@linaro.org header.s=google header.b=UoBk6bEF; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbiKYMM1 (ORCPT + 86 others); Fri, 25 Nov 2022 07:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbiKYMMY (ORCPT ); Fri, 25 Nov 2022 07:12:24 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E9C4509D for ; Fri, 25 Nov 2022 04:12:22 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id j16so6568196lfe.12 for ; Fri, 25 Nov 2022 04:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WIDCe1F2pbbd2Mgy1MXrte4UDEybWJsDPNOb5ZCnmZQ=; b=UoBk6bEFZdln6Gqli1w+RnWCFscF0VbAqS8Ag3LpE2o4H48mryNm6HdqsmHags6EXS xWOJNeT6QcZWbiloClD2sl8WKeKQxA/oVklAnjTYhvwL0MBIZZbi0m/y1XM39p/LtRe6 XpN1GYXTREaIVvk1MIvWnXe6oVJVfxwCY60WiH5GTVCDt+JtTHdJqv9kjD34DsxOgiC1 Ri5SWYvCQFnsJDigQUQa3BP50L8u1oWeVq90QxGOBOZSPsFaFjX7LT0bkVQILYZGu9Bo HB0m3lHG9D9VJ2rtsyhYlFf8TOnWdfoUOZnhPu5vISCEQa0tbrgHTG6kp+nI0tM8MpRc P/0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WIDCe1F2pbbd2Mgy1MXrte4UDEybWJsDPNOb5ZCnmZQ=; b=VPjfJjBCXoqb2Ip4UX7l+Nr8W63Y0ZuwPWZdfJxoDP5UIKMnM7qK8fFvh7MlyQMkrV 4g72BMj030wOhDTc0FdkRIPTTV7ml88VB8KNgyBLyUlvd4waaMIuHv+3rMkrCXpoWN0p 3zTPN/1X2mfEDdES6ZNYw0DtlyOSv/f9Pv28LiFQ9PYZ6R9k1rnGP+jYcG0mDQRpiHRu 1ig4mFGaind0A1T1jTAuPPNgrJEcGSX868ss9lo+7rK7cq6sNmgw1BXDhR3v35i2iM7S NLFru+3RNHHJtaw+PGc4m1S4NS/m2U1VuFq/fXv2Mw0QGN6v73ghLPfiRMZfWAcCS3mA SfYg== X-Gm-Message-State: ANoB5pkEKfbiidd8sEKHbZKhmwjCRmks6G34BAM4UC1tMpqCM1uHmQ/w L0NI1PFAuKSJO4c60OWb/fZePA== X-Received: by 2002:ac2:4f0c:0:b0:4ac:2f5f:5c9b with SMTP id k12-20020ac24f0c000000b004ac2f5f5c9bmr6226180lfr.206.1669378340651; Fri, 25 Nov 2022 04:12:20 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id j17-20020a056512399100b004b257fef958sm508060lfu.94.2022.11.25.04.12.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 04:12:20 -0800 (PST) Message-ID: <9b0f8312-2caa-b9f3-edf3-1b720532f559@linaro.org> Date: Fri, 25 Nov 2022 13:12:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v4 6/7] dt-bindings: cache: r9a07g043f-l2-cache: Add DT binding documentation for L2 cache controller Content-Language: en-US To: "Lad, Prabhakar" 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 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> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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. Best regards, Krzysztof