Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1131394lql; Tue, 12 Mar 2024 08:08:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5hngJLWsxwPkcQ+be6/aAWy/SC/YFPH5TP+Vk1148iGxeh5Rzx4XzVavMvqeKqPs1uDTSDRwoK6Eq8oKqI+XkrWHW23sDYKC+LZa7Ow== X-Google-Smtp-Source: AGHT+IFqybu8gmetE1KohBzbrkLYpp9N3avaT1aTvecCsJLnfjWIromP6wfJ89ysFHGcjm4e3vnl X-Received: by 2002:a17:90a:fc83:b0:29b:178e:d9cb with SMTP id ci3-20020a17090afc8300b0029b178ed9cbmr595063pjb.44.1710256111831; Tue, 12 Mar 2024 08:08:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710256111; cv=pass; d=google.com; s=arc-20160816; b=nK6JqT0ZlG/Lec02qfxm6rhmc8qQihF00MSF3+8hGsUolm6giVFVAD8APq0ncAYFKa pUZGn353YsyXIUbm//p/S8DIaW490xor+AyO08wUAa0Fqq3YAIgFxa+e70LFSnFHZDKZ Uee37gB44f9KPiStKZB5i9wytENK8NmnfnurH3ONFQssRz2SSvVxF+MEtLIcJRJ8h4Y2 xEnxnXoO8GESgh6HlgD0raXtxMrPbsZyqXvSbKhqBodhI56cACWr3xOHbzfvbNdy2KtS FosRUJQjqw+X79Ewerz9WTsL/I7H+aOAfJMyI5C95YSVU7230OvfsVILb7yWOTfMcAHT jA5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=zYqdQQe+WczGEpCgZYhlnOFJftP0P2ToYmG/ZyjPUWg=; fh=LLAj3Ga8vwZaK+OA84r+1mvNT4RGAZt2HHia3JurtDU=; b=AVLqBlM/P0d6cdO4LqdFCL0Ej5TiZ+/WTDp5oY7PkBdxrVVocRdMH2D81RmSGdlFXY MZkBvjwxcohDZhoZZmsY6pHK8jbO6kGchNSIhAq+YkR62ycV59nS504OsfUbPgjUf6yn sr4YtuUTRL9BczM2tKjyKg44KhbPYVZWVy3F2rGT5EzlnqFGHY7OM3bYCOXLCnox2BJO oQC6QQfqnMbn6b/UEd0WXlC+pH44JSZzXV3vWsqhfqWOmeZTwVt5w3bkFftb/YlCmmd7 2ZynfZ6mmgCShQVro1cq5FAc4AJpvydVsWjahD38Q4OkNYxH2y3xzA/AEYx6wjri+ABl OTew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TvhpX5Va; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100413-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100413-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d24-20020a17090ab31800b0029b6cf37834si7099979pjr.183.2024.03.12.08.08.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100413-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TvhpX5Va; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100413-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100413-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 94E96B20F3B for ; Tue, 12 Mar 2024 15:06:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 176567BB0A; Tue, 12 Mar 2024 15:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TvhpX5Va" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 218497BAF9 for ; Tue, 12 Mar 2024 15:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710255955; cv=none; b=rEM+n83ErJcIBqGOZ0Md+4IuaNWJ7rsBT5EMos9drO7J5TFXUPCVUX/yROscyMXszTyGUI4A/sPjTjg8ICeWWqbm4AIaf7YiG0818JToOJC92gy9UOaUlbuta3NYJFQ6da75isJwlJcfTnRA2SXNadpq2mrybHfA+7YEOyDYPus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710255955; c=relaxed/simple; bh=gwvlVXMj8YzA9NTNKw5EKX6GuDQ9HZKERGAoTtteNgw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ak4k8b+oqkOzResjCbEWEGIVhkqDs07UtE9BoiOgOCMz2pacGjcIX4vEnytdIpvBOl6TwzderVuHKHgZmL6BRiYng+3GormqlcbpfiD2L1jKcwnGLBn+xAjeAmgQLr4XaMZqrml+iPJwO6Nz7RwanK1m4jJBT4EACJrlseJt5g0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TvhpX5Va; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-33e95b68b3eso2182769f8f.1 for ; Tue, 12 Mar 2024 08:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710255952; x=1710860752; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zYqdQQe+WczGEpCgZYhlnOFJftP0P2ToYmG/ZyjPUWg=; b=TvhpX5VaElIiH5BcTeIGtaidfUOu6UwUb4DwCVsSrsRpCbDV1eHYfG4zCDewC0GhRH eVw13Qawpg6wwthXroC64kvjrzy4gPpjkcRRZZQFhB0UtOi/q5pSgP7JwwRZHyRdnRXR wtjiEE20SOjAsroPgDtzIvb0EI5qIbn6EIsMS8IGc4/sRQkHLHrOLUX2ArkGhC+Q20Tt /nLmTl89z8N8b7w/cO6Ali6TYOU30IsY6pBL/ZK5NgUT2zuIXRysX2JtFw56ejgwsMu1 fgedpFRyJyPm+mgAZxAT12rpCXC/nba8Do3//35NxIZqS2ZwNq60nc8G4srevAVJCwxk l0pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710255952; x=1710860752; h=content-transfer-encoding:in-reply-to:autocrypt: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=zYqdQQe+WczGEpCgZYhlnOFJftP0P2ToYmG/ZyjPUWg=; b=uHtIXQwzx65hs624gA6hsAQfkXT4zZVyAknHovQxrmi4Fjhob9pJ7lw1mYvaPfR/zP YprOvVBqMOkoOmqyVX5YjQF3JizMgfjRRmmyKtp4J/hSU5KzudFwlzmXRWTuJ8AVYJyn EN8B3wRgPwkJIyULq/Q6CtNHVODMjF83tMwyLgorNMleNnBuiXaS/S4wDdULwb8k/wFJ jrn68M7A6VIT19CHtBmqs5Zlti/2CBIDHWMTdFI09PtfCjMLTHQaSP7fN+c0kKWad7CZ jFOT6IN3TlwzM01U9kocXUunGjlYIvz4E/kkgAPMkh/BXfDCDDujE+N15fX+mftlBrFG WR/w== X-Forwarded-Encrypted: i=1; AJvYcCWUKuqWSGa8CJGIh1kCw0BMzsU880Kbs5mXAHaOl07w46cY3oTbpZR9GCS/nFmt5rLI8lr4GsxyPMr34wLS/IGZQ1grx1j7Tg0h3K3C X-Gm-Message-State: AOJu0YwumUaRlvdQbxCqmcRJJw1OQ4ismaKC/oJNXnKX6jPI8jfYFH0q JXDBiyN9vksWTrCxsi+cohOSs1Nh0XoYyMzDKn1UDr8csoByMsU4KkjEiiyRKqI= X-Received: by 2002:a5d:5505:0:b0:33d:277d:a2c7 with SMTP id b5-20020a5d5505000000b0033d277da2c7mr5763716wrv.16.1710255952383; Tue, 12 Mar 2024 08:05:52 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id b12-20020a5d45cc000000b0033e786abf84sm9216968wrs.54.2024.03.12.08.05.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Mar 2024 08:05:51 -0700 (PDT) Message-ID: <0df9adfe-c869-4502-93e1-fb3516aedc0c@linaro.org> Date: Tue, 12 Mar 2024 16:05:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/5] dt-bindings: i2c: renesas,riic: Document R9A09G057 support Content-Language: en-US To: Geert Uytterhoeven Cc: "Lad, Prabhakar" , Chris Brandt , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Wolfram Sang , linux-renesas-soc@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar References: <20240308172726.225357-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240308172726.225357-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <7082ed3b-d6d0-4228-b7a6-7c0e0e46b8e2@linaro.org> <2974085a-d9b4-4a66-b60f-c02a06a74647@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4t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MJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/03/2024 15:06, Geert Uytterhoeven wrote: > Hi Krzysztof, > > On Tue, Mar 12, 2024 at 12:04 PM Krzysztof Kozlowski > wrote: >> On 11/03/2024 10:00, Geert Uytterhoeven wrote: >>>>>>> - - renesas,riic-r9a07g054 # RZ/V2L >>>>>>> - - const: renesas,riic-rz # generic RIIC compatible >>>>>>> + oneOf: >>>>>>> + - items: >>>>>>> + - enum: >>>>>>> + - renesas,riic-r7s72100 # RZ/A1H >>>>>>> + - renesas,riic-r7s9210 # RZ/A2M >>>>>>> + - renesas,riic-r9a07g043 # RZ/G2UL and RZ/Five >>>>>>> + - renesas,riic-r9a07g044 # RZ/G2{L,LC} >>>>>>> + - renesas,riic-r9a07g054 # RZ/V2L >>>>>>> + - const: renesas,riic-rz # generic RIIC compatible >>>>>>> + >>>>>>> + - items: >>>>>>> + - enum: >>>>>>> + - renesas,riic-r9a09g057 # RZ/V2H(P) >>>>>> >>>>>> No, that does not look right. If you added generic compatible for all >>>>>> RIIC then how can you add a new RIIC compatible which does not follow >>>>>> generic one? >>>>>> >>>>> The generic compatible above which was added previously was for the >>>>> RZ/(A) SoCs and not for all the RIICs. The RZ/G2L family was also >>>> >>>> No, it said: "generic RIIC compatible". It did not say "RIIC RZ/A". It >>>> said RIIC RZ >>> >>> At the time the original bindings were written, only RZ/A1, RZ/T1, >>> and RZ/N1 existed, and all RIIC modules present in these SoCs were >>> identical. Later, we got RZ/A2, which also included a compatible >>> RIIC block. >>> >>> Somewhere along the timeline, the marketing department became creative, >>> and we got RZ/G1 (RZ/G1[HMNEC]) and RZ/G2 (RZ/G2[HMNE]), which were >>> unrelated to earlier RZ series :-( When marketing started smoking >>> something different, we got RZ/G2L, which is unrelated to RZ/G2, >>> but reuses some parts from RZ/A. Recently, we got RZ/G3S, which is >>> similar to RZ/G2L... >> >> That's fine, but then the comment "generic RIIC compatible" is confusing >> for anyone not knowing this. Commit msg could also mention why the >> generic compatible covers actually entirely different hardware. The >> commit msg so far focused on the differences between these hardwares, >> thus my questions - why do you create generic compatibles which are not >> generic? > > I agree the comment should be updated when adding a new variant which > is not compatible with the old generic variant (i.e. in this patch). > >>>> So don't use generic compatibles as fallbacks. That's the point. >>> >>> It's indeed difficult to predict the future. So SoC-specific compatible >>> values are safer. >>> At the same time, we want to avoid having to add compatible values for >>> each and every SoC to each driver, so we try to group SoCs per family. >>> For R-Car that worked out reasonably well, however, for RZ... >> >> I did not propose that. Nothing changes in your driver with my proposal. >> Use SoC-compatibles only: for fallbacks and for specific(frontbacks?) parts. >> >> To give you some sort of guidance for any future submission: >> 1. Use SoC-like fallback compatible, prepended with SoC-specific compatible. >> 2. If you insist on generic fallback compatible, its usage should be >> limited to the cases where you can guarantee for 99.9% that future >> devices will be compatible with this. I doubt anyone can guarantee that, >> thus we keep repeating on mailing lists the same: go to point (1). > > Personally, I am not such a big fan of method 1, for several reasons: > > - Support for new SoCs is not always added in chronological SoC > release date order. So you could end up with: > > compatible = "vendor,socB-foo", "vendor,socA-foo"; > > with socA being (much) newer than socB. Which is not a problem. We already have such examples in Qualcomm and once you get used to seeing it, no one wonders. Of course it's not like we target such reversed compatibility, but if it happens - does not matter. compatible expresses compatibility, not timeframe. > > - Worse, adding support for different modules in different SoCs > can be unordered, too, leading to > > compatible = "vendor,socB-foo", "vendor,socA-foo"; > > but > > compatible = "vendor,socA-bar", "vendor,socB-bar"; Yeah, that looks not nice, indeed, but it's a rare case and still does not matter for actual meaning. compatible does not express timeframe. > > Which is inconsistent. Fortunately we now have "make dtbs_check" > to catch mistakes there. > > - When a third SoC arrives, which one do you pick? > > compatible = "vendor,socC-foo", "vendor,socA-foo"; > > or > > compatible = "vendor,socC-foo", "vendor,socB-foo"; compatibility defines this. > > Obviously you pick the former (unless you detected the issues > below first ;-) > > - When socA-foo turns out to be slightly different from socB-foo, > socC-foo, ... you have to add of_device_id entries for all > socX-foo to the driver. With a family-specific fallback, you'd > be limited to one entry for the family-specific callback and > a second entry for the misbehaving socA. Yes and we have exactly that kind of argument from Bjorn A. for Qualcomm. I repeat: this means your generic family-fallback changes meaning, which is not really correct. Bindings (and DTS) are used for outside projects, so if you need to change the driver for generic fallback, all outside projects might be affected. You basically changed ABI without telling it to anyone. Best regards, Krzysztof