Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp711184pxu; Wed, 14 Oct 2020 11:38:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMEAXgKCs+HVe8XiYpWUkX+ASHLP1FNNluV6OT7m5vZ7pSSgjILW5yt88yu//2iEE0n+bi X-Received: by 2002:a17:906:a002:: with SMTP id p2mr354972ejy.399.1602700728405; Wed, 14 Oct 2020 11:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602700728; cv=none; d=google.com; s=arc-20160816; b=AWBh5dzQCrA6F01i418gpeqn7CN4MR7f8RBrVLLb37vOCEMzxEGlq4fbDZdgOGAvMK 4UBOTei9YEGWF2z0G2lyZIrP+aKlaHM+OjSvdo4PAOHzryicmfyFZDFygFDkILzhTDk3 ZkEdAnhMumKpc0DhnrtpgKACt2pHEwkKE5HQpFYIv8KA6ZElwUCvm3+qIQccjKLdNGgv o2LWjOzLiTYd/Gr7jHfqTLM0TqW/YyckufaDVkzhHusOd7KE0ueabiVJdigEtP6oGmBI bAFXk9kP9Lj2CPO1hjhJ6JfeRnMcKPTs4BFOGrBiXeeECneNIWfQxNtfJ1WF254E6EAN 3row== 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=Pda5e4mTtOE+ZlY6hUmRRRDO7I+9vJoYWhBous9Gcls=; b=fJK058e7O2izOmjsgmyUSp0mVtcFVQeiLp8uqsN8mbHZt808LnvlGqy2tqr1qhKk9R 8bz1KfpXfH1BtbArkQSQ2eaHIch8XrIAND1ZI6nIR12seogaJ/ct8P+LfWovqHbyq70Z EYxCfH5s6DNsOY2IJow1erOeW6WVE3YCr4iAWR5O9BUdh+jNKw6YHBeRDgz15W4w2YsN f4WSeLQbEJHMe1iekGP1M/RsL/vfc6YYyFeG8LKTtOCyTGDfmoYl6Dh0f+KppCFpDp9y 8nFH4jmCB9HDeiFJAhRPJj9t6njYeLv1ATfSRQUi/VUwG0HETWrkFkqcL3kpsIMZur1T i9cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pofh7UmO; 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 o17si343811ejh.535.2020.10.14.11.38.25; Wed, 14 Oct 2020 11:38:48 -0700 (PDT) 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=default header.b=Pofh7UmO; 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 S2389066AbgJNSfe (ORCPT + 99 others); Wed, 14 Oct 2020 14:35:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:56664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388112AbgJNSfa (ORCPT ); Wed, 14 Oct 2020 14:35:30 -0400 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 322C122267; Wed, 14 Oct 2020 18:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602700529; bh=Pda5e4mTtOE+ZlY6hUmRRRDO7I+9vJoYWhBous9Gcls=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Pofh7UmO7iRQ6dIxMcM+BkYBtJ7jUuuDxYvnx45uCg3oTKCzplu1qgt32rENNlGE+ 6CbsGFGyyKtjPzOfwqXjDpOqeJ9TKaHnrisubMIcT108UpGEmLQHnQg3MzptTLo85b 09GIwDh7G3BzSCkAOxH94vxwT2RuWvy6ESdGDHkk= Received: by mail-ua1-f41.google.com with SMTP id x11so67387uav.1; Wed, 14 Oct 2020 11:35:29 -0700 (PDT) X-Gm-Message-State: AOAM5339it8HidodmOJsfvSdSSyUjlEzrGhA1RS5MKiJtH7XFyV/0TVE CJOoiiX0vI++kId91FjpAg/bjYOjwwz6wCxHiA== X-Received: by 2002:a9d:5e14:: with SMTP id d20mr18868oti.107.1602700527584; Wed, 14 Oct 2020 11:35:27 -0700 (PDT) MIME-Version: 1.0 References: <20201014101402.18271-1-Sergey.Semin@baikalelectronics.ru> <20201014101402.18271-21-Sergey.Semin@baikalelectronics.ru> <878sc8lx0e.fsf@kernel.org> <20201014143720.yny3jco5pkb7dr4b@mobilestation> In-Reply-To: <20201014143720.yny3jco5pkb7dr4b@mobilestation> From: Rob Herring Date: Wed, 14 Oct 2020 13:35:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 20/20] arch: dts: Fix DWC USB3 DT nodes name To: Serge Semin Cc: Felipe Balbi , Serge Semin , Mathias Nyman , Greg Kroah-Hartman , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Kukjin Kim , Krzysztof Kozlowski , Santosh Shilimkar , Shawn Guo , Li Yang , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Patrice Chotard , Maxime Ripard , Chen-Yu Tsai , Wei Xu , Andy Gross , Bjorn Andersson , Alexey Malahov , Pavel Parkhomenko , Manu Gautam , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , Neil Armstrong , Kevin Hilman , linux-arm-kernel , arcml , "open list:MIPS" , linuxppc-dev , Linux USB List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-samsung-soc , linux-omap , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 9:37 AM Serge Semin wrote: > > On Wed, Oct 14, 2020 at 05:09:37PM +0300, Felipe Balbi wrote: > > > > Hi Serge, > > > > Serge Semin writes: > > > In accordance with the DWC USB3 bindings the corresponding node name is > > > suppose to comply with Generic USB HCD DT schema, which requires the USB > > > > > DWC3 is not a simple HDC, though. > > Yeah, strictly speaking it is equipped with a lot of vendor-specific stuff, > which are tuned by the DWC USB3 driver in the kernel. But after that the > controller is registered as xhci-hcd device so it's serviced by the xHCI driver, > which then registers the HCD device so the corresponding DT node is supposed > to be compatible with the next bindings: usb/usb-hcd.yaml, usb/usb-xhci.yaml > and usb/snps,dwc3,yaml. I've created the later one so to validate the denoted > compatibility. > > > > > > nodes to have the name acceptable by the regexp: "^usb(@.*)?" . But a lot > > > of the DWC USB3-compatible nodes defined in the ARM/ARM64 DTS files have > > > name as "^dwc3@.*" or "^usb[1-3]@.*" or even "^dwusb@.*", which will cause > > > the dtbs_check procedure failure. Let's fix the nodes naming to be > > > compatible with the DWC USB3 DT schema to make dtbs_check happy. > > > > > > Note we don't change the DWC USB3-compatible nodes names of > > > arch/arm64/boot/dts/apm/{apm-storm.dtsi,apm-shadowcat.dtsi} since the > > > in-source comment says that the nodes name need to be preserved as > > > "^dwusb@.*" for some backward compatibility. > > > > > interesting, compatibility with what? Some debugfs files, perhaps? :-) > > Don't really know.) In my experience the worst type of such compatibility is > connected with some bootloader magic, which may add/remove/modify properties > to nodes with pre-defined names. I seriously doubt anyone is using the APM machines with DT (even ACPI is somewhat doubtful). I say change them. Or remove the dts files and see what happens. Either way it can always be reverted. Rob