Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp13232pxv; Wed, 21 Jul 2021 14:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0FT7HX5RZQ30PR8F1h8/MJ9CvgCUTQxGkXrfYYLmmlKewwCTj7eLbb973C3V9ILfgFXLj X-Received: by 2002:a05:6e02:12ab:: with SMTP id f11mr4354399ilr.200.1626901585268; Wed, 21 Jul 2021 14:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901585; cv=none; d=google.com; s=arc-20160816; b=O+wQYZ2TCb80Ek98lcPuL0azEv/9GcjBjnnOhhEOblayw+fFuWLAugmjAB9cOIN7ru hJuK6KF/CmQuHvq8ihESnzOLotJ3qTba2uBLsnKYSBl2euEYOvL9jCIcrpqzSjct/Mhd VvyxavTu6tiAmywZHAVMBdOJCdMoaqPsA0Fszw+lZ7ewhL2BB4JUctbJZXeznoKG8cPt jx0ftXh3m/EnOwngMhomNGPfq6+EKGeiSwpQIidaBqK5pTgSu+f/2s3extsAqpGFnZsC FQfUNPueUUXsBkMcUHg4innI2vfcDvsACZLR5nXMbW+l7TAVdD2IS/PHy27qJCkr/rk3 4Nhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ryhmjqV2eKLpoirk/rnB/jmjc8Sw5eUN/kn6KkHMSG8=; b=LGFFx8omYE/UbyxQe94V6qTXC1rlpw2FQoGUYLh2irSnDfhZwE0YHY2CHKe7kTf5Ar delSPzCR8zuz2jz9TVw3KsInVUThlG7bbXrb8cJ3NUpn55/kzcEaXmO1XZ1mTQe4IfVv UYgLmOjnjahFKF+Cy2teeQXI4ozYwRFQIekXDL0KWB7fjTf3hyFrmXxQGR4tam6FunMi hILahx4Oex9E7PONnGaoJgNcJg4Hr3+ZVqIpI7GcI4uX21QMdVeQg+IyQgsyMinaJ6TC kby9yuS5xoseFhMX3Iki4AlF5zRd2rtkDqnVowhMteUN0JEpFX+C/JU3Q/nXZyg/oCRw jR2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f0V8sZc4; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si26690784ilv.18.2021.07.21.14.06.13; Wed, 21 Jul 2021 14:06:25 -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=@linaro.org header.s=google header.b=f0V8sZc4; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240344AbhGUT3G (ORCPT + 99 others); Wed, 21 Jul 2021 15:29:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240379AbhGUT3F (ORCPT ); Wed, 21 Jul 2021 15:29:05 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82834C061575 for ; Wed, 21 Jul 2021 13:09:40 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id j1-20020a0568302701b02904d1f8b9db81so3174141otu.12 for ; Wed, 21 Jul 2021 13:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ryhmjqV2eKLpoirk/rnB/jmjc8Sw5eUN/kn6KkHMSG8=; b=f0V8sZc4aqzvTzm9SSyhFzpvTL6ZdbVxPHsnzMtxQXlcraRxoiKzAZYUxg1zQwSw0L 0t4aBZCwG3QntHJ9LRlAimJWvfxMAU79KZMV6rNopHZb+wI3BjQxhxb6zZ9MbyMmLz/K 5puTHinQ8S3T01ksLF63skMaFBcnizWmH9zM0DUWtkZ/I5qRcjVXZQfuFGP1nr9I4kCk h9l9QMx8FExuaYAHmgnlfrOxarqJ1RNdIjLP01lXcV3Qherns4JHvRqCam3cwqEk5JSf wLuGPWm+XbxRoEEVkPbJb5r0jR6y8KTtPriJAR6NomLoou0BKAiRUdAqCS40y9o7qSwi L2Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ryhmjqV2eKLpoirk/rnB/jmjc8Sw5eUN/kn6KkHMSG8=; b=r/8ye1x4QDnqJeM7ssD0hPzB9wb4FhPIoVO5tbylUFQUqeUyHObHpOnxCrObb41/P2 oRBtbPuJ5Q9wsWeX2VsDtkrAkhvkWoTvqVQ3ck4Ae7/67gyzamdzWb9un/8b9Gco5/LJ kGU7/iNJl5/8GBP3afGWCPFyYv9ln3cdxiket/rQd5puEZMzjjRVUKZwRPSGeEG1zHqh HCD56wdQyeZfCjnuvIh/En5+8MkatYTf5sH60xhWTGN4UqpzWIylu/Cnz6Dz/4Ubyjip h5I1dOQC5CoL3MyRX1bVVKO7r1NsppJUtJV6qtPBRqs2qE+s0hcwUbKyGAQIFPr5m+ZF pRDg== X-Gm-Message-State: AOAM533Tk2yojJldpW2CzNHrA3f9UZyvfxKWWmh63wzaC7kj5TTtfeic fLVi+qZbEf1NHGO0Iq5w8vlyrA== X-Received: by 2002:a9d:5e15:: with SMTP id d21mr28331811oti.280.1626898179791; Wed, 21 Jul 2021 13:09:39 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id o26sm4900456otk.77.2021.07.21.13.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 13:09:39 -0700 (PDT) Date: Wed, 21 Jul 2021 15:09:37 -0500 From: Bjorn Andersson To: Greg Kroah-Hartman Cc: Serge Semin , Krzysztof Kozlowski , Rob Herring , Serge Semin , John Stultz , Felipe Balbi , Florian Fainelli , Andy Gross , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Linux USB List , lkml , linux-arm-kernel , Amit Pundir Subject: Re: [PATCH 29/29] arm64: dts: qcom: Harmonize DWC USB3 DT nodes name Message-ID: References: <20201020115959.2658-1-Sergey.Semin@baikalelectronics.ru> <20201020115959.2658-30-Sergey.Semin@baikalelectronics.ru> <20210714124807.o22mottsrg3tv6nt@mobilestation> <20210721100220.ddfxwugivsndsedv@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 21 Jul 05:29 CDT 2021, Greg Kroah-Hartman wrote: > On Wed, Jul 21, 2021 at 01:02:20PM +0300, Serge Semin wrote: > > Hi Greg, > > @Krzysztof, @Rob, please join the discussion so to finally get done > > with the concerned issue. > > > > On Wed, Jul 21, 2021 at 09:38:54AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Jul 14, 2021 at 03:48:07PM +0300, Serge Semin wrote: > > > > Hello John, > > > > > > > > On Tue, Jul 13, 2021 at 05:07:00PM -0700, John Stultz wrote: > > > > > On Tue, Oct 20, 2020 at 5:10 AM Serge Semin > > > > > wrote: > > > > > > > > > > > > In accordance with the DWC USB3 bindings the corresponding node > > > > > > name is suppose to comply with the Generic USB HCD DT schema, which > > > > > > requires the USB nodes to have the name acceptable by the regexp: > > > > > > "^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly > > > > > > named. > > > > > > > > > > > > Signed-off-by: Serge Semin > > > > > > > > > > > > > > I know folks like to ignore this, but this patch breaks AOSP on db845c. :( > > > > > > > > Sorry to hear that. Alas there is no much can be done about it. > > > > > > Yes there is, we can revert the change. We do not break existing > > > configurations, sorry. > > > > By reverting this patch we'll get back to the broken dt-bindings > > since it won't comply to the current USB DT-nodes requirements > > which at this state well describe the latest DT spec: > > https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.3 > > Thus the dtbs_check will fail for these nodes. > > > > Originally this whole patchset was connected with finally getting the > > DT-node names in order to comply with the standard requirement and it > > was successful mostly except a few patches which still haven't been > > merged in. > > > > Anyway @Krzysztof has already responded to the complain regarding this > > issue here: > > https://lore.kernel.org/lkml/20201221210423.GA2504@kozik-lap/ > > but noone cared to respond on his reasonable questions in order to > > get to a suitable solution for everyone. Instead we are > > getting another email with the same request to revert the changes. > > Here is the quote from the Krzysztof email so we could continue the > > discussion: > > > > On Mon, 21 Dec 2020 13:04:27 -0800 (PST), Krzysztof Kozlowski wrote: > > > On Mon, Dec 21, 2020 at 12:24:11PM -0800, John Stultz wrote: > > > > On Sat, Dec 19, 2020 at 3:06 AM Krzysztof Kozlowski wrote: > > > > > ... > > > > > > > > > > The node names are not part of an ABI, are they? I expect only > > > > > compatibles and properties to be stable. If user-space looks for > > > > > something by name, it's a user-space's mistake. Not mentioning that you > > > > > also look for specific address... Imagine remapping of addresses with > > > > > ranges (for whatever reason) - AOSP also would be broken? Addresses are > > > > > definitely not an ABI. > > > > > > > > Though that is how it's exported through sysfs. > > > > > > The ABI is the format of sysfs file for example in /sys/devices. However > > > the ABI is not the exact address or node name of each device. > > > > > > > In AOSP it is then used to setup the configfs gadget by writing that > > > > value into /config/usb_gadget/g1/UDC. > > > > > > > > Given there may be multiple controllers on a device, or even if its > > > > just one and the dummy hcd driver is enabled, I'm not sure how folks > > > > reference the "right" one without the node name? > > > > > > I think it is the same type of problem as for all other subsystems, e.g. > > > mmc, hwmon/iio. They usually solve it either with aliases or with > > > special property with the name/label. > > > > > > > I understand the fuzziness with sysfs ABI, and I get that having > > > > consistent naming is important, but like the eth0 -> enp3s0 changes, > > > > it seems like this is going to break things. > > > > > > One could argue whether interface name is or is not ABI. But please tell > > > me how the address of a device in one's representation (for example DT) > > > is a part of a stable interface? > > > > > > > Greg? Is there some better way AOSP should be doing this? > > > > > > If you need to find specific device, maybe go through the given bus and > > > check compatibles? > > > > > > Best regards, > > > Krzysztof > > > > So the main question is how is the DT-node really connected with ABI > > and is supposed to be stable in that concern? > > > > As I see it even if it affects the configfs node name, then we may > > either need to break that connection and somehow deliver DT-node-name > > independent interface to the user-space or we have no choice but to > > export the node with an updated name and ask of user-space to deal > > with it. In both suggested cases the DT-node name will still conform > > to the USB-node name DT spec. Currently we are at the second one. > > I really do not care what you all decide on, but you CAN NOT break > existing working systems, sorry. That is why I have reverted this > change in my tree and will send it to Linus soon. > Which tree did you revert this in? 5.13.stable?) I'm onboard with us reverting this, but for any 5.14-rc and 5.15 this will conflict badly with the qcom tree, so I much rather take the revert in my tree - than have Linus run into this mess down the road. For stable, I don't mind if you merge something...Perhaps you can point me to your revert and I can pick it up in my tree? Regards, Bjorn