Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3474466ybt; Tue, 30 Jun 2020 03:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAixDaoMuL1P1DpOwX0jtCr2nCtv/zlMSh20ewvndFSNkfUGmS4LQgeeRADs6FYimSIHBZ X-Received: by 2002:aa7:c583:: with SMTP id g3mr22756757edq.228.1593514247340; Tue, 30 Jun 2020 03:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593514247; cv=none; d=google.com; s=arc-20160816; b=F3dmbA1nSXka7hOBz2aZzc008gZsuEFRovaSu8W5FNJ/RTaIHjbkVHqWzdR/ZdSfKE PQr5fvXgZwHlKBnTm0Ex8oi2hk+6gITyWM5T1oE1uH6v9j8fxyEqOFl5VE877JZA5uFg q6Sj8n4qdiLe1aa91V85jD67d84EKBDrH9au8xEh6ukaPWPcbzwErj9ACYTgd+elfYhC MKvUwx7ubAp02LNbkB/DSZrEfb/5y4liwu9+xZl/76/manW6xY18/2P8reN6piyWta4q IgmO7yaipekUKmIPNVtfwHU+BzH5tpk0/W9TM+VzllZNSyXs6m55wA6//8B5ErGzUh8f lSPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=phOCGTEnLM3nElxYAqQ6sDOQZ4ZpN9t69WEz/+jmqSI=; b=SXhF6YQ4mRayZDNYUMGbu2WtOBKgoHCrw1C6wp20Vpw6unhoevhN+5sXzI+3+VECG7 sqJ/4z52GGKG5w+oyw6jPZTReRmHfs0Xp1elbSx4kIeT+2uq5hZt60fAsRS9XrBb4T2C 31hlpy3PqwsjKuAo+77ALBYGbhXXYZ2cOKiM/JV9L35anqz6GO+lFwtkP/NtXTa82rRI SNtir7P5KmCWUCf09IDQge7f7JbpHbBbzNGKhrGG5AV6tO48u28EzJ96svBMk/3Ogu2/ rt7HLiy3n2bSesMsZDpqkMcZF29KLdl3XJ1xhbA16kvf3Dq1/TXeqh1xyY2y5JpmAUtL G/0Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp8si2040169ejc.281.2020.06.30.03.50.24; Tue, 30 Jun 2020 03:50:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732657AbgF3Kt7 (ORCPT + 99 others); Tue, 30 Jun 2020 06:49:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:7174 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732632AbgF3Kt6 (ORCPT ); Tue, 30 Jun 2020 06:49:58 -0400 IronPort-SDR: pHUPZmOhELyoV/gKz5hpx6x4EHIcxd36ZecM/uOsSqwLEcQjLAOP1yWgO3t6H+a9EGBQkW5cDv yYc2uBsPcDnA== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="146185002" X-IronPort-AV: E=Sophos;i="5.75,297,1589266800"; d="scan'208";a="146185002" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2020 03:49:58 -0700 IronPort-SDR: AHCabFJYknbIO+16YmrYmksrEmbBeWSI8iMfurM3s88EU4yDaqt+uf+KCqFHe7Ejg8AvfzLXib 7p2mDBLjdUnA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,297,1589266800"; d="scan'208";a="386664591" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 30 Jun 2020 03:49:49 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 30 Jun 2020 13:49:48 +0300 Date: Tue, 30 Jun 2020 13:49:48 +0300 From: Heikki Krogerus To: Rajat Jain Cc: David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Raj Ashok , lalithambika.krishnakumar@intel.com, Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Rajat Jain , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Jesse Barnes , Christian Kellner , Alex Williamson , Greg Kroah-Hartman , oohall@gmail.com, Saravana Kannan , Suzuki K Poulose , Arnd Bergmann Subject: Re: [PATCH v2 5/7] driver core: Add device location to "struct device" and expose it in sysfs Message-ID: <20200630104948.GC856968@kuha.fi.intel.com> References: <20200630044943.3425049-1-rajatja@google.com> <20200630044943.3425049-6-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200630044943.3425049-6-rajatja@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 09:49:41PM -0700, Rajat Jain wrote: > Add a new (optional) field to denote the physical location of a device > in the system, and expose it in sysfs. This was discussed here: > https://lore.kernel.org/linux-acpi/20200618184621.GA446639@kroah.com/ > > (The primary choice for attribute name i.e. "location" is already > exposed as an ABI elsewhere, so settled for "site"). Individual buses > that want to support this new attribute can opt-in by setting a flag in > bus_type, and then populating the location of device while enumerating > it. So why not just call it "physical_location"? thanks, -- heikki