Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp290564lqp; Tue, 11 Jun 2024 05:00:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoHV5SjtDIKaFa79Bac0ZHlKL9RaC8C91xZxBxs7SqrE8n+8fdmeNkS1VmNAI5ie/DC2fyHtq3bLOOet3rIZjm8UY5gAxSM1Op4pI7ZQ== X-Google-Smtp-Source: AGHT+IEov8qn/vsjp0keDZMRvfs70Y+MXPuJJv3JenrC4VhD5OD5QckChQaTIvqe3Bfn3QmQ9YgV X-Received: by 2002:a50:9507:0:b0:579:73b7:b4cc with SMTP id 4fb4d7f45d1cf-57c50861786mr8266328a12.2.1718107206417; Tue, 11 Jun 2024 05:00:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718107206; cv=pass; d=google.com; s=arc-20160816; b=aPVXl1ZVNxQ5cF9HDKtXdULwFxhuyO87eQm1txct9ut+DzMPQAb22SodtRzKuNoDhz 0an18EW4Ffkt3snzOgJOYhA+S9BYWtiICM7afbBiS8HKUL2xvYbXhArL8tabyuQ/54h6 epX1nAYwRgQ9HYoGJLmTmYgz3UveiqUgIpT4VR23QWuCbe6uDg6HuSat8Mi3BShY1PSJ yI11wXZRcVYV6XtC7eoYOqGzgqK/LjAfkeGOHAjyypNe1sv/ur4QoaGmP+xr5ZmNPdTx hInm8Syn6iAKHMlCmxBxrgqvKLYKCO6lDT2CfVhz1j4EoAQnm15d1LqaRiqkgnyb/PK0 g8Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=g2gH7m8nQ93PXE9TrCQmuPEf9+DwSRpG7LmUYCpp8x0=; fh=gWY+XtflV03zjqGWCzSe5oSXVuqOhEFEmZW1NWXlJo4=; b=B/IR1dVO1RMyyQSPoDRfwDXjGJWhfjUWEsRDVVGzyh5y3IxPHNtB2sS0P3NQuGmrOj Lk26iJ+fr8d8XofyXNka/XpRiYFBoPQYO5+ZPNdqZdefnDCGJRxaPW4Lqn0vmi7/qOZr KjWxxw40z5vq/wD+IdNCeNVWQJ3YIgbDij1X/SEp0D4vDYDZaYeEKzY1oUDBXpmxTYTK TSSwfPYFqUjKebl6k7be3ZiRvmQ/r2wXHHJOG5pInrbhqAz5m+EiDEn30mQYE5vinIcb mS20iZcshGne7SaOo/1JZXFIdQVFx3bPhEW8nf8MrScZDIf1urLHECnAGySAtDsyDvou jUZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=q4eK+AFP; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-209819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c767ade0esi2714869a12.324.2024.06.11.05.00.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=q4eK+AFP; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-209819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com 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 E6D851F22127 for ; Tue, 11 Jun 2024 12:00:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F73017D344; Tue, 11 Jun 2024 11:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="q4eK+AFP" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 D98B517CA18; Tue, 11 Jun 2024 11:58:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107122; cv=none; b=RaNk91XIM9Hh2Sc31AH1pejuyBcJHYU+4Arw6zyRLd4tMPF7dfNofl2IeVMl3qh/6Xh4+HUqHYahCCyWsvD/LiyYpspYKg/G3Yh8B4lACPojMZYyiNlWDSmXc5pPDQIJGpVG1wzc9NlOZbEPlUYyIC17SWf4xaOcaUc8DMPaN2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107122; c=relaxed/simple; bh=01nvPV5Dl/fOqoUUb6+fEA88ND8ivm3vk4fjxHP5wWw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=n2rr+C3bfTZjEntavYTzxZworWvIy1a07a3zwbWhttdLVs759aN7n5lDApswNFibUGVL6Dabpwk1vUKbR0KV46miXL7CLU+mxtqa0vZ9ZGnZVFBNSIQIrYb9A/o8yKGUhGsKbAGtirfWp+YnwITobxjhXQr5r59Nmj+IpLAMjd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=q4eK+AFP; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45B7jBAL017387; Tue, 11 Jun 2024 13:58:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= g2gH7m8nQ93PXE9TrCQmuPEf9+DwSRpG7LmUYCpp8x0=; b=q4eK+AFPLLk+tV2H 6mEw5rWoKJYJGPMAAEdaf0ZIqVPmVGfYNmbhrQXvxBQbdiSostDSMmG1FjHL0eE+ baiCIDm06t/NJAeZ6n1cAp5jTNkwVpWyT7kkgTefElxINQ6/Fk9Nt9ADr18yETYz 2BW9bOqohcrJQLW56hLRHwGkqQd8gtnUlknYF2ZISw7oLxqBhf1vVTJTPNJ07kne BxJ0rr70fYdJivBaRMy83QpUXTEIwi+bd+RoCmBUq1O6RRtX1YKKjX8nCJWlbIrM 7GLpHFHkFFEYBJHzTJhHSocotvfR8nRTjOLtRBsMcktZauPQXLzDh7YMCQ8FLsEb FkM8Xg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ypbp4aspw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 13:58:31 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 1627E40048; Tue, 11 Jun 2024 13:58:27 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 64E3121513B; Tue, 11 Jun 2024 13:57:48 +0200 (CEST) Received: from [10.130.72.241] (10.130.72.241) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 11 Jun 2024 13:57:47 +0200 Message-ID: <458f8b1c-d750-424c-99dd-d31fde036314@foss.st.com> Date: Tue, 11 Jun 2024 13:57:47 +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: Krzysztof Kozlowski , Sakari Ailus CC: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sylvain Petinot , Laurent Pinchart , , , References: <20240610150815.228790-1-benjamin.mugnier@foss.st.com> <20240610150815.228790-3-benjamin.mugnier@foss.st.com> Content-Language: en-US From: Benjamin Mugnier In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-11_07,2024-06-11_01,2024-05-17_01 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'. 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. Will this be ok for you ? Tell me your thoughts. > Best regards, > Krzysztof > -- Regards, Benjamin