Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp302763lqp; Tue, 11 Jun 2024 05:18:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHvC3DtPRpjTgKOyD0HXhbpFKksTwxEpwlcJCcreb/QKgcqbpzUTVfUdv+ceQGOUf6C23Ilh6oyUE2V0T3kYvZhJ5I9eJl6RFhCs/irg== X-Google-Smtp-Source: AGHT+IHpG7OQSULaz+Jzt19Fl3ECj0VxfEiqFo/ytd1UbuQ4BiR68S2rqvZf3HSi9AvzagEtIjq5 X-Received: by 2002:a17:906:f20f:b0:a68:e5c8:4266 with SMTP id a640c23a62f3a-a6cd7d68825mr740128566b.43.1718108306459; Tue, 11 Jun 2024 05:18:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718108306; cv=pass; d=google.com; s=arc-20160816; b=FiAfIhn2j4T5fuD09TN8vFcHmQeeZEa1XzeQmb3N258Lh4dCxzn1XTWTBZKA/FhEhh eZOnpETwxTIESGHsSyEeBTMv9k9BztfpUOZoVwBl590WxCjha6x/f2MLBaZoj8yIpsmO 9Zif4FOjm+kUwiT3AG6NQMyw4LSt7qRDjauGze+8zgkYNz8pDffTEWFSOMtk7kkVll5P f3I/3Dk3LDAcK9xoALDr1kkWhD3F0PtcG8ng1ubdLa4lGWm12yXwtL3hBfBHfIyr3Ouk Tn0E5THaU4P6i8iqZu9odhTuAK1Q8zOO+6wYMOIkctsdzeW5bnbXw0L5KCKrC8ecsVXT zb+Q== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=9fCLSE37EyqCNYRJ4hEpzPE2hRXre6C7vrlVbA2WlFQ=; fh=v0xCgdDTSCSoUSkugAVk9fsag3qxkIljrji+hyM7s7k=; b=BGr2IZ1h42oCVS1bp1MKMrIxjmtz6F+1X0CEi/KDmmS3A5fIqPq3z2YEmu0D3C11kx NOEo74ApPaRSP5tPa3mjQ932NpZolu6lS793/mh0UnQJ0iG1CHJOo2H/8Y8NoRRpL6u2 XGJ+aer+/9PL+u6i610J+o5Ua6JqqRXy5YjGtAQ2F6Fau/sdTr38qsfnjsofGYN8cjjE 1nF6K/DxjD0dpCQXU0zbshGBYNQIwwgHBR/UD6ce5GHUHMshTdk436MIITW0OAR9mITs 2Kf7CFchIoNdxjJmvsr57IQwp9idj+dJwZwocMSXnZr7PZoBu/rO0uZRKcDtKfpj63jC xi5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QEDYT2tb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f1b460f51si223742166b.701.2024.06.11.05.18.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:18:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QEDYT2tb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 26B041F21B95 for ; Tue, 11 Jun 2024 12:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC33D17C211; Tue, 11 Jun 2024 12:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QEDYT2tb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D607717623D; Tue, 11 Jun 2024 12:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718108261; cv=none; b=Jxc0zyu+s65/0p/UXpS/hyo9ljV1eZszth/stLVWtpewCm4onl2G654aGgd17/Q7B4TK0qMbnZJEPNNQlpsyQES1CLyGTxiBUjOEvKMLBKH3AM5PfE98JYpDF/y/mFhH9Q1+1S0kTzVakosAAHvAx42oohtebCsqMyxJ2EYhxcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718108261; c=relaxed/simple; bh=lD+xZdtN9+A0GrqGIt01G1JE+hzrjUZBwbKw4SzUmtg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=McWuqa1kUINBY5jenovKdnTgT8sa/Sdj7JRo0EQVkXbAUSj8hquZ6yKJOy9arJI5Xk34YORZ0GG8G69yUpPMITi8NrUitwKhRm9HJmDipea/q3kZnjthjlON/6OeO8K1ijwXNGU6obuxWI2hmikDE6LfdHLYVE7lem0jHXYmqQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QEDYT2tb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D30CC2BD10; Tue, 11 Jun 2024 12:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718108260; bh=lD+xZdtN9+A0GrqGIt01G1JE+hzrjUZBwbKw4SzUmtg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QEDYT2tbQ7ZXrL1NFFirij5a5s8USfJEfLI4WDrLqzuLLtbeCE6qjHPMpzxbQ428h Dr33RAbMJrTvbmada5znOqdMkIziVquJngbKDdLRwRH0Z9uxckFHtxQONgEiTAYk0t LlRsIvfnptZaVxbHznuYHPAu7bl2A77zAtCxUFVoYML36jIEyRQAX1cMoBe8z46DRL JLvmdXijK8A9m27u+4n5Wc2Q/A4HgXpUJc/0Bwtm4ChwWARQSEuT/804qUpsg9F7YQ v9VxsLP8P8SyD+UXthUlHo9gx28TMGZA5YXvmXdiooJ3fY9x2B+frugmlD/4tR40RA PFmESO87rvOcQ== Message-ID: <4fd73e81-4573-4e1c-9623-c2f7f153d43a@kernel.org> Date: Tue, 11 Jun 2024 14:17:33 +0200 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/3] media: vgxy61: Add legacy compatible string To: Benjamin Mugnier , Sakari Ailus Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sylvain Petinot , Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240610150815.228790-1-benjamin.mugnier@foss.st.com> <20240610150815.228790-3-benjamin.mugnier@foss.st.com> <458f8b1c-d750-424c-99dd-d31fde036314@foss.st.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC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ply-To: <458f8b1c-d750-424c-99dd-d31fde036314@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/06/2024 13:57, Benjamin Mugnier wrote: > Hi Sakari and Krzysztof, > > On 6/11/24 10:38, Krzysztof Kozlowski wrote: >> On 11/06/2024 10:19, Sakari Ailus wrote: >>> Hi Krzysztof, >>> >>> On Tue, Jun 11, 2024 at 08:47:25AM +0200, Krzysztof Kozlowski wrote: >>>> On 10/06/2024 17:08, Benjamin Mugnier wrote: >>>>> As the driver has been renamed from 'st-vgxy61' to 'vgxy61', its >>>>> compatible string has been updated to reflect this change. Therefore old >>>>> device trees will not work anymore. >>>>> Add the old driver name as another compatible name to handle the >>>>> retro compatibility. >>>>> >>>>> Signed-off-by: Benjamin Mugnier >>>>> --- >>>>> drivers/media/i2c/vgxy61.c | 5 +++++ >>>>> 1 file changed, 5 insertions(+) >>>>> >>>>> diff --git a/drivers/media/i2c/vgxy61.c b/drivers/media/i2c/vgxy61.c >>>>> index 30378e962016..ca3b43608dad 100644 >>>>> --- a/drivers/media/i2c/vgxy61.c >>>>> +++ b/drivers/media/i2c/vgxy61.c >>>>> @@ -1867,6 +1867,11 @@ static void vgxy61_remove(struct i2c_client *client) >>>>> } >>>>> >>>>> static const struct of_device_id vgxy61_dt_ids[] = { >>>>> + { .compatible = "st,vgxy61" }, >>>>> + /* >>>>> + * Previously the driver was named 'st-vgxy61' instead of simply >>>>> + * 'vgxy61', keep it for retrocompatibility purposes. >>>> >>>> NAK. >>> >>> Is that because the comment says "driver" rather than "device"? >>> > > You're correct, I'll replace all occurrences for the series. > >>> Please try to express clearer what you'd expect from the patch author. >> >> There is almost never a need to rename compatible or add new compatible >> matching existing one. There are exceptions, like development or work in >> progress with no users at all (and really no users!). >> >> The commit did not provide any rationale for binding change. >> >> Additionally, it does not make any sense. There is no point in doing it >> at all. No benefit. >> > > Thanks, here is a draft of a new commit message for v2 highlighting the > rationale : > > The previous binding 'st,st-vgxy61' did not reflect the actual device > name : vgxy61 (and not st-vgxy61 as ST is the vendor prefix), and was > changed to 'st,vgxy61'. That's not really a reason to change binding. > Still some device trees uses the old binding. This commit adds back the > 'st,vgxy61' binding in addition to the new one to ensure retro > compatibility. "Adds back"? This means it was there but was removed, so please document it with commit references. > > Will this be ok for you ? Tell me your thoughts. It seems you are making some changes assuming there is some error to be fixed, but there is none. Compatible is just some unique string, so the original compatible, although unfortunate, is okay and must not be changed. I already explained that adding new compatibles for such cases is only for exceptions. Is this exception? No. You provided no rationale to make it an exception. Best regards, Krzysztof