Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1840126imu; Wed, 28 Nov 2018 16:23:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/UtUyoLwsZ3q3RP7op2EXNsViqdCoPNSW3AJ0tOLJuOjg05xsAIhP16CAxPdoi7vV+jDRBv X-Received: by 2002:a62:6e07:: with SMTP id j7mr23476521pfc.135.1543451027958; Wed, 28 Nov 2018 16:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543451027; cv=none; d=google.com; s=arc-20160816; b=tygH271au+48trCUvaVLD/n7azVCvfZV47VJc64DGZYLZuTK2Q9rtC5Pfbezf+e0C7 Jc+DqXOiYjdZIgwf7hLHgt1tF/xnFacQjVnXim4ITKr0e35zdBfm0j7c1CRRW3R2gh2S JOMavQBuFl3ol4x6DaR56FYbSEzXMxPdrRDE0a+taTZiXivYXXaed3tecKiYS6Uq8DHc nOyd0LFltwAbsxxCejTNXjcnIrt+GIymaHF3atqyhqFESjE+QDY2W7ktNRwoY1txk5t/ tHrtliI9baTi5/J2tZJemjz3+IipX3r9u8kxs+EmXm4gRNBOXMvEGs3Iz48zM9rVvE2e 3fYA== 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; bh=xW6+48CGgoujIYgsM9RK1y8+faj4I5h076V2EfrqqMw=; b=bZohbh+Mxgqj1WHzcEN7PMvIQLbKvaxG0iG/SdigerUnuPuZTDlzE46GSjZtaWNWzb PzRLqGUmPiglxvS1/2ucDW2iUtEyv9Wh8YLADt3vWLgSfEEbsBL/TS5UJnMaw6O6l2s9 h5B6gHup6GkXh+bg+FDeGt1n9P7TfShLYdCpK3n+dz8JUd8a1+fgcHxd5eBM6EJtpZ4N yAhBIWDmLO1qX5i2pkQFP1jVGFZxXinnbb2MpIpyTOJWHCj2wNA/SCujdtDP2r11SoAG jYLNOSCIh4PJxXnn4q3Lz6pSvvcfZhvxnNhUiXdbD6HXWgxOei0M6YWiQ7n3rYlnoJwM 0J4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=c6t8XLn6; 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 h5si168151pgc.237.2018.11.28.16.23.32; Wed, 28 Nov 2018 16:23:47 -0800 (PST) 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=c6t8XLn6; 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 S1726956AbeK2L0L (ORCPT + 99 others); Thu, 29 Nov 2018 06:26:11 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:36102 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbeK2L0K (ORCPT ); Thu, 29 Nov 2018 06:26:10 -0500 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=xW6+48CGgoujIYgsM9RK1y8+faj4I5h076V2EfrqqMw=; b=c6t8XLn6uIXfG0txX7iLk2O0/ uu4lhw+vgfelpqudmhghp/MV/eCbwX8IuMe4Deuij9QECb0EEf2qTu6BWhoMkeOt8jdUUYa6/FqJb 0id2LLHrNN4zqZHgHk/sKiFewIdzo+7qK4zmAr49fiaORIcYCrC+Z0Ff4stGtKUqkhtk1PzMM0AlN eRExU9g5k0gkKAK3w6J0Dbjfx6FT+uzPg0+eVn4DbFhDUz7tH5zq+uP9Ek0j1QPtF4Pv1lDLeTArV y8KxutlbyimkmXjoZaFRCV/+usZ5RWKilbjbpNZN7/fVLam1/uDKj1Dbl++BktUq2jb7nMrzfLIuz +7L0pNBqA==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSA6N-0006QU-Mw; Thu, 29 Nov 2018 00:22:43 +0000 Date: Wed, 28 Nov 2018 16:22:42 -0800 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: <20181129002242.GB2468@fedora.eng.vmware.com> 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.9.1 (2017-09-22) 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, if this is still a concern (I presume it is) would you please resend the patch Cc gregkh directly? -- Darren Hart VMware Open Source Technology Center