Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp156496pxu; Thu, 7 Jan 2021 01:01:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPrMPn0d2a/mcccSPsG0AjxHXH0jx4s+4Pl276+TR4/SnizpKmlUwrOmSD/38VfxneXIWf X-Received: by 2002:a05:6402:1d15:: with SMTP id dg21mr942213edb.280.1610010113100; Thu, 07 Jan 2021 01:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610010113; cv=none; d=google.com; s=arc-20160816; b=mkYr8ZYgrHBUFALrxiqBp+RP2CiBAW9k6aSCmsWo+HhTiV5HQUi5G4tujRhMX8WaUr P84ban+hK0UQoaLLwx5lXPifoU0fp5JJHX8bCSazXQziOOD0KkKK3Nv0MyJlQTd1hpNP DCghBYjA0M9lk+GNg0Fr+wQdCQfTybyfccgBRHssLa08pEoivkIIdFtb4Oxw8WIu9xu2 qBpUlGLt6nTzYXy4SVKQ9yvOUyi33jY89jiF94wcksI+RJAb7k4qrgmxfvu6wx3o/wXU 4TsfE/IKyz7IOwybidgKTJcTgpQyXPkihhga5Jt03YfSwvqFjlQNH3J3mD+o86J5RhzK A5bg== 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=S3XlZY9CcIsrIpZR9TgpS/GE2X9WgFAWPdX3b8RkwSA=; b=hsVuoXCevz8fNIVYVZgbM1ZSNfenAc8eHmi/s2nEwOEDaheMR0V3zuGVvL0zqdG8sg jXdXGmqwmHeGNCvVt+4d2o3qllk10xqjyPquVQP987CKAO+XUAOnwr1e+Q4Y1HD/uJp2 jU44sw6psIxISXyBvD0DcPicGeDd3Q7RSN0K7j1irN30PPqi0nAMMbX1anOd6/NLY8lr 1YVgpScp29tWBevkoz37kzKufLrMdciUqvZ90XsTs0CLeHsOG+pfTmIOmLL4WGwT/MUl IVXebwSJlsLBQ5Zz/aaOeV7gSkbOGm22vSUsKuUdzJ3XdGL7QAAYL0HZrGaXGrfzlWB/ zxFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cA+GBz+r; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg16si1924398ejc.580.2021.01.07.01.01.29; Thu, 07 Jan 2021 01:01:53 -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=@linuxfoundation.org header.s=korg header.b=cA+GBz+r; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbhAGJAN (ORCPT + 99 others); Thu, 7 Jan 2021 04:00:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:40448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbhAGJAM (ORCPT ); Thu, 7 Jan 2021 04:00:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E7462313B; Thu, 7 Jan 2021 08:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610009972; bh=EwIKCvsMKChhHcgTuEGb2I6wpIWvY8o7DoF8pXj3NTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cA+GBz+rlEYSgGiJl/tW4YzY0cOxd5EbvO0G/D+ARvchcc2rIBh+RMFWklH2kYZbA 4F/wu4v7gB9uLTsFl98MPhrezf1i25ar4XUainY7rlzadhZ9fDdppemJa3FqtE4xqY SWtcCCtg8Z9mF56eXk/YAyvIQi6T/S+FtJg4KTMg= Date: Thu, 7 Jan 2021 10:00:52 +0100 From: Greg Kroah-Hartman To: Saravana Kannan Cc: "Rafael J. Wysocki" , Michael Walle , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] driver core: Fix device link device name collision Message-ID: References: <20210106232641.459081-1-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210106232641.459081-1-saravanak@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 03:26:41PM -0800, Saravana Kannan wrote: > The device link device's name was of the form: > -- > > This can cause name collision as reported here [1] as device names are > not globally unique. Since device names have to be unique within the > bus/class, add the bus/class name as a prefix to the device names used to > construct the device link device name. > > So the devuce link device's name will be of the form: > :-- Minor nit, you forgot a ':' in the consumer side of the link here. The code is correct. > > [1] - https://lore.kernel.org/lkml/20201229033440.32142-1-michael@walle.cc/ > Reported-by: Michael Walle > Signed-off-by: Saravana Kannan > --- > > Michael, > > Can you please test this? This should fix your issue. > > Having said that, do you have some local DT changes when you are testing > this? Because it's not obvious from the DT in upstream what dependency > is even being derived from the firmware. I don't see any dependency in > upstream DT files between mdio_bus/0000:00:00.1 and > pci0000:00/0000:00:00.1 That looks really odd, why is the mdio bus using the same names as the pci bus? But anyway, your dev_bus_name() change here looks good, I'll take that as a separate patch no matter what happens here :) thanks, greg k-h