Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp143759imm; Fri, 6 Jul 2018 16:01:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbPycmlYdqKBQguJut7Qxtd6jpFgFXjb9/VIbXINNdsOAXCzvgEDyKzPL6EETFrnK4qXjD X-Received: by 2002:a63:4763:: with SMTP id w35-v6mr10769162pgk.140.1530918098000; Fri, 06 Jul 2018 16:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530918097; cv=none; d=google.com; s=arc-20160816; b=jd1eOaONAU5LPEedv1SdA6p9a9v1e7iCx9uKXT5FE7VQ4/nj7ZXhu9+yR0crl5XZyw K2vKvOcYe8okwqBSS4SUM9554Dyb2miQiFxLseHOsx6D0nqV2xGLBnf2ptNJ2ypIwAhy 9XHMqIm4FTMilw7GPdnKAe6uBEtb8e0w8eFzH5ChygNZzHNOGvmJ6a51aNK9SQXnmN9n AHI2ZNoZg1aY52vvPrgqUvpQ2S9e3vW/zUafZGSupAcXqwfyQ4b9UnLlpyltI8e7rY59 e4RD6oJzzwl4s45joOWliLIKeQMP62pqFhA2BJia5JbftKr4xiVX/zIcuTEy7ldBl+B/ HujA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=M0xU/Nm4tUZsQTf3C+2DBrP+AOjZQ7PvS5B458q2ZW4=; b=ypbBFyURGnz2zS49We2CrK6zgIzZgVvtP79rKP0IzhA5H4PQFwZ4AHrYTyYTP3RxI/ ojduwvZvuWOOeqJLnD1Sm+pCwGhQEpawNOUs5Y4WR1YtjiieFZUnwsXtN8Z3qwie5pGE XhwKMp+6BRbrryhZW+AddVLhC2MUmkyp7TCqDSeYZYCO7FVLuPZwj5sIB+KxAHaR0twt 4cdt1A9DIc+B+nT54Vs0T1pTkue6w+lQb3EQOXv1JFblSWkqKurMO2QVS/nEBmr6vcXz nZsv4+ocXslPCo+QyeJhq4Kl6xh+kn8bs5ap0lYbMdUDN9vGNEXh+qaaHOCO0S5SSLDc 2k6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Xe8376uM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si8915482ply.296.2018.07.06.16.01.23; Fri, 06 Jul 2018 16:01:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Xe8376uM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932782AbeGFXAo (ORCPT + 99 others); Fri, 6 Jul 2018 19:00:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47842 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754097AbeGFXAn (ORCPT ); Fri, 6 Jul 2018 19:00:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=M0xU/Nm4tUZsQTf3C+2DBrP+AOjZQ7PvS5B458q2ZW4=; b=Xe8376uMV2mBRwDUjQaltcrgT Fztx2CJWnPm918xej6wflZOrUZ7jJ6eNH3REFWD9hyIH7ath4oKnFPRL1bDOWFQh5pLcP486ve2hj VH7VqyNaGHRCC8nYAugnfz8zDCOCfiGuRyrnAoNivNk8SevJTG599SvXx6kWZbi5F+gTZWRsISqNC uk3YUmztamJ8OdO4KhwMHP5+2g3dez/3nEMlUXpL0xFdBvay41UJ4UK9mBEGAZ3D0xa29m2noUF9o DfYl6o2cR520YDAtXRy+aVhh/+wqKHriqS4yhPrC7yMLGB7foOSETZhnzkICjZWRZ4RjRmfPZ4ElT iJ/xJWZ2g==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbZiT-0007qk-SF; Fri, 06 Jul 2018 23:00:41 +0000 Date: Fri, 6 Jul 2018 16:00:40 -0700 From: Darren Hart To: Andy Lutomirski Cc: Mario Limonciello , Andy Shevchenko , "linux-kernel@vger.kernel.org" , Platform Driver Subject: Re: [PATCH 1/2] platform/x86: wmi: prefix sysfs files in /sys/bus/wmi with the ACPI device Message-ID: <20180706230040.GA3041@fury> References: <1512786861-1014-1-git-send-email-mario.limonciello@dell.com> <1512786861-1014-2-git-send-email-mario.limonciello@dell.com> <1512790860266.96149@Dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 09, 2017 at 01:32:29PM -0800, Andy Lutomirski wrote: > On Fri, Dec 8, 2017 at 7:41 PM, wrote: > >>> On Dec 8, 2017, at 6:34 PM, Mario Limonciello wrote: > >>> > >>> It's possible for the same GUID to show up on as system twice. > >>> This means using solely the GUID for identify the file will not > >>> be sufficient. > >> > >>Isn't the file already in a per-bus directory? > > > > Yep, but the symlink created in /sys/bus/wmi/devices isn't. > > That's where the kernel complains about duplicate sysfs > > attributes. > > > > It's not exactly a pretty path I submitted, but it does avoid > > those collisions. > > > > Example (with this in place from /sys/bus/wmi/devices): > > lrwxrwxrwx 1 root root 0 Dec 8 21:39 PNP0C14:04-70FE8229-D03B-4214-A1C6-1F884B1A892A -> ../../../devices/platform/PNP0C14:04/wmi_bus/wmi_bus-PNP0C14:04/PNP0C14:04-70FE8229-D03B-4214-A1C6-1F884B1A892A > > Right, I saw that in the cover letter right after sending this. > > Greg, is there a cleaner way to deal with this? There are two > instances of the same bus type, each of which would like to have a > device called "70FE8229-D03B-4214-A1C6-1F884B1A892A". Can we somehow > rename the symlinks without renaming the device, or are we just > supposed to prefix the device name like Mario is doing here? > Mario, This one has been lingering at the bottom of my patch stack for a while now - sorry for not poking on this earlier. Is this still something you have a need for? If so, would you resend and add Greg to Cc - specifically directing Andy's question above to him? -- Darren Hart VMware Open Source Technology Center