Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1014000pxb; Thu, 28 Jan 2021 06:12:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5NSQEYOIidnUh/kAEAkgz0/BKqiIIRLvRcw05bE5x6Ea/i7KFpsLGohGecuMZ2hk+QkMQ X-Received: by 2002:a19:d3:: with SMTP id 202mr7222432lfa.570.1611843168654; Thu, 28 Jan 2021 06:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611843168; cv=none; d=google.com; s=arc-20160816; b=msk6w2+ODUGKRuYM1a2faqxgWIIk7/THbobad1EgGxRzn0OrseXmCtzgpoKcpLQKXZ bfRoeG7I7B5NCn2/GVBsEiMjSpg57fnoe2JYzape97gxLM1XOaTUjkrENmVfJnvCWdBI DCqyfygHmjRVQB1ARrt+D+SHVYci6IQe4i+DMoY6J/69f8smXTz1jo20Q7TjhAxwVGlX tKO67Pd0LDAg9Y9mmlgdVr1NAQjixv35Mxx4ZeSrj6hBxD3+ZsK9J8e4pbrQ4Nqy4P57 Br43juP6Pu9Ck2NySWJcCsXozALGeL3fK5oEzXmkW7aCVqziyBXaH/uhaSPicZw+DAFs u53A== 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=QnLM1LgdqAC0K2W+AkILaOLVBSwaDP9H56GHFTlsKJw=; b=HMWCdA/YcM/gPLO2kLEPb5la6G49dQxLW9+e+/cW1hQ5klJdso5LHhIA1b+c/k7v3A 2pIKIpAQDz571dYGx0eZDouJ+eVpWSZHdfJ0PKHojXbe1d+7d2tG53uGYGY5No4722NA B6grns2PY8iPqo9lwa9dxpWtgqXpeivN7gH2ucY6XfTxmTPpg9KXag5lQPgIGJYjTrH5 8zJNrHx1zTYAWYs6dfkdhEcQiIeXf5YTkrOBHsLTpexAhBJjvE0dmdmInKEVGrfTMBEy 0AoMfSSWJQ4cld3tK424lJmGKn+figZy6+M8lXyrQaOZpx6M1TDp5DarKUJC4st4hc0d xDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WqWHV57+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si2517043eja.22.2021.01.28.06.12.21; Thu, 28 Jan 2021 06:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WqWHV57+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbhA1OJC (ORCPT + 99 others); Thu, 28 Jan 2021 09:09:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:43112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbhA1OJA (ORCPT ); Thu, 28 Jan 2021 09:09:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4579264D92; Thu, 28 Jan 2021 14:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611842899; bh=QSDli4q81ZPENBHiSIxqH32K2P7ZjDli7F2BOv1/r9U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WqWHV57+phzaVBv77u51NcPbqZi/YOFjBMwRd2KxldHHJ7XFNYT5ed5VJkH4PPvAu l9bQ5NNu6pbrc+vgPpVUmfD5xWv3HnprgGCuk4swf/sZCj9BQYsgcFFe7gs/Vv6Ea6 jrB2s9UsnUn6uH48aXrsLo5gTlhAaNBDyy7ksKGuNcJ3Z2/TkQ2OP0OHWBrohpozPc zK5VAZcNOuKY+UtFusmh1kn+3fjsJppXYfMmz4zHluuxmlfy9DAKjtLvjloeHWSCeY a5DfcrGiY9VyeNBi1Yei06EntAoq/olgB7Aewv6rj45FWZDqvR9vK1ixP/Jx//xx/F SVHp9W7+JhSmA== Received: by mail-oi1-f182.google.com with SMTP id n7so6078635oic.11; Thu, 28 Jan 2021 06:08:19 -0800 (PST) X-Gm-Message-State: AOAM53110fbfkeFxRtDUkdWHta/K7VWXxKu3PpsBFFM4AH0+7yWEcVb+ 3utAZcmhVLJdN94djG/CDRBvAkQ1pg0JOWZjaBA= X-Received: by 2002:aca:d908:: with SMTP id q8mr84273oig.67.1611842898482; Thu, 28 Jan 2021 06:08:18 -0800 (PST) MIME-Version: 1.0 References: <20201208124641.1787-1-thunder.leizhen@huawei.com> <20201208124641.1787-3-thunder.leizhen@huawei.com> <6010B6DE.4060202@hisilicon.com> In-Reply-To: <6010B6DE.4060202@hisilicon.com> From: Arnd Bergmann Date: Thu, 28 Jan 2021 15:08:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon To: Wei Xu Cc: Zhen Lei , Philipp Zabel , Rob Herring , linux-arm-kernel , devicetree , linux-kernel , Zhangfei Gao , Chen Feng , Manivannan Sadhasivam Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 1:42 AM Wei Xu wrote: > On 2021/1/27 6:23, Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 1:46 PM Zhen Lei wrote: > >> > >> The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > >> stated in "vendor-prefixes.yaml". > >> > >> Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC") > >> Fixes: dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC") > >> Signed-off-by: Zhen Lei > >> Cc: Chen Feng > >> Cc: Manivannan Sadhasivam > > > > I see this change in the pull request I got, but I'm a bit worried about the > > incompatible binding change. Wouldn't the correct path forward be to > > list both the correct and the incorrect properties, both in the dts file > > and in the driver that interprets the properties? > > Thanks for the comment! > The reset driver will look for "hisilicon" firstly and fall back to "hisi". > And the DTS is shipped with the driver together. > So I think there is no compatible issue here. > Please let me know if missed anything. Thanks! There are three things that can go wrong here, and this is only addressing one of them: 1. Updating the kernel on a machine with a dtb provided by the firmware is a problem if the new driver can not handle the old properties. This is correctly handled by the driver's fallback as soon as both trees are merged. 2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place. 3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2. Arnd