Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp671854pxu; Thu, 7 Jan 2021 15:22:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/+f/wQNIBsUrDE6g19IVmMohNjKSffqZtbkxg35YaDaJc2LjBJWeBemj0uyR2jGS9GzLO X-Received: by 2002:aa7:ca03:: with SMTP id y3mr3398564eds.87.1610061757109; Thu, 07 Jan 2021 15:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610061757; cv=none; d=google.com; s=arc-20160816; b=TkYV+1at7SCoWwOcRWrd8pB6Pi3RwcToCl0Z2Rp/gLLzHLfVA4hNWAy1Ett2oiaRfv IDSHL+9BHkTwTAf45TNhLWu3xY05gYJQqSQNvxrRfnxSXrcIiTl9ybSX7Nzlq2pe1tif Rbp9FfyHR49KXbJloYksmFKlCcN8SMwI4vkpXBK9J4wUGeGhleUdI7G1u5ffX1qawQ7p 5B1ijZFTY4naUhQGBSirZ7xyRpr03YP2oXUESh1hvEqXM2I4ChMcrJOixSmBK5CKUjh6 /0rhmWkKR+EmOHfZ4SKJVFJb6UNxAFZM2ddY4e8xUt7+4GFY+ctGau1VMy9LjkNSiHUX kmSA== 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=0vTAVi1NrXCtfDc2o7sfhxwMEmVikIUUFAGvTgz60tk=; b=DKIEwsi4FrC4elQfHRFvrysaKtwSebRmruRs/Bl69o+/JvaFI3cuSpyod8e2DJej2a zzvG+v3aCo2q0aRsDP6LmwIwBpSO5mdoLutXLc9BCSdN2YgYkKTvoYHaIOCGZ5iw6bWE F0rCvZnB0vcNJbzRmnd/WU09LyZmNRAbwxZ4a2GdeFq9IEV5RZA4L3jT9h99/fZQYay2 yLwO+0DJ8ZCB8reTTZ27zvp77yUQQ3sW4NFuyBHIPCGwLD2254s3emO2DtOpsPjEpZWd yiSKCz39G+tDV3u4kSl2jhulz00Bj0Vw7JaCVo1vnDBUCLJ7UVtgXeFL2ga5jvBl3gxY TrKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F8kvPuGD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si2804293edm.128.2021.01.07.15.22.13; Thu, 07 Jan 2021 15:22:37 -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=@google.com header.s=20161025 header.b=F8kvPuGD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbhAGXUz (ORCPT + 99 others); Thu, 7 Jan 2021 18:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbhAGXUz (ORCPT ); Thu, 7 Jan 2021 18:20:55 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08FFC0612F4 for ; Thu, 7 Jan 2021 15:20:14 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id y4so7731663ybn.3 for ; Thu, 07 Jan 2021 15:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0vTAVi1NrXCtfDc2o7sfhxwMEmVikIUUFAGvTgz60tk=; b=F8kvPuGD9yuG4ygpLAPYHw7LSzXT5UHuv7/FxJXKw4Rx5geavZ0LVjj43zIbjls1Hh sYKyqqj5uhiNse+c15SZouxHlBTP7CJtwBk2c9Krk9KWZqAPzOBYuRhODr4cFejG1g11 gjsLZysPsSK5VWlc7pROH4/spukO6RW1FR8r/Oq1ALLJlvohJg2KFjStYwy+iH3xNpnN jXQ3Dg6vloH8dE8hkdtwJl9+hlGRMAoS8zRmVXw5NZHkmbXWgSA2mYjB6uL5DOi9GSqu 50gqkuSUBWb3DVXLhAwDqNnKWuU4kk5ehzBvuCqLR9g/tk5ECiTOmpH9ZajeQKWNhkOs cgCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0vTAVi1NrXCtfDc2o7sfhxwMEmVikIUUFAGvTgz60tk=; b=cP09nfKplSiB4bOgGa68TKUls9yE5k9rqQn6dYmOPqRpVg5RmIrbLeBaFddwedLygR ZPKr7aKrEQQ19L9T20AqDoRKwkIQwEavBFX4qRdDKLeTApVBzdc7633x5ATdddKuNvDv NzZlktZ/Ryt37UXSTNhHjBFY8kH2XjYY0hkH37+nR7FxSEKXv17+WqcF+gutTfa9ZcKu O7aFx4/r6/yGhZvrn1lkwPD9vj294UhKuk042+DDgYk7Mp03MTjglX+0V1HO+aIh8nlB k5IAnwSSYKWBdfqdc9+dxZwZs6KlOgdTPnvjvzUkNRbWX4Mw3D6fgKTdXxAljjL5wlwV 3Dtg== X-Gm-Message-State: AOAM53007WKl7mI9Ii1uBk7idsOCXq9tmnPfuEY4cjAKpTpQzTQWVvpA fhczXljuLObSKgRjkSSENsiq2B3ayXVZK44rJ/0utg== X-Received: by 2002:a5b:b49:: with SMTP id b9mr1647580ybr.310.1610061613994; Thu, 07 Jan 2021 15:20:13 -0800 (PST) MIME-Version: 1.0 References: <20210106232641.459081-1-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Thu, 7 Jan 2021 15:19:38 -0800 Message-ID: Subject: Re: [PATCH v1] driver core: Fix device link device name collision To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Michael Walle , Android Kernel Team , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 7, 2021 at 3:17 PM Saravana Kannan wrote: > > On Thu, Jan 7, 2021 at 12:59 AM Greg Kroah-Hartman > wrote: > > > > 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. > > Greg, > > Do you want me to send a v2 to fix this and add "fixes"? Or will you > just fix it up when picking it up? > Actually, let me send a v2. There's another collision in the symlink's name. -Saravana