Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758773AbcJZOF3 (ORCPT ); Wed, 26 Oct 2016 10:05:29 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:63752 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756380AbcJZOFY (ORCPT ); Wed, 26 Oct 2016 10:05:24 -0400 From: Arnd Bergmann To: Imran Khan Cc: andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland , "open list:ARM/QUALCOMM SUPPORT" , "open list:ARM/QUALCOMM SUPPORT" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH] soc: qcom: Add SoC info driver Date: Wed, 26 Oct 2016 16:05:03 +0200 Message-ID: <3809309.oOnjdjqnN9@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <1476972386-28655-1-git-send-email-kimran@codeaurora.org> <3567809.JctLPjIDdk@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:2dDj852md2AVceZbWtF4V2FxyzE2gcxvXeW9R83PlTLZfb7xXJt 3c+I9rEjKw5skovqQWCcpN6lphJqQ0q0ehjyLIdiDzOun1PF7YdnEYry2NFYJRRfxfjUHhp c53s3Yke/zV5cx8YslW0HQgqaSbn9zMekI+oxVqcDj+y2nhbIIivUGn7xp0H1CInLiQeebh XG1MjXwF6MJuw0bLZ1v9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:9W6+zO3SoAQ=:0fzobKbSZm+XYxY2Ne6cg4 XK31UOzzqlXiMUylrzXZOrjuJb+FPEQGIt8jZPqXV0oL8hd4MuBJBYvgUc80Vrg8D+Lv8Udju bwThZFnAEQuMS4ga7wpmMosr/7COEu7jWjRpm1+DFwKeVExZ87CzZL89w58sbVA4vckvyAnxO GCSFwq+R5q+3LsNC+PGHIP+ThTwhI7Gnwn2FKd4aInkE/agdCYJLIhZOKbvUzB7BeurR+8Q9D s2OpAQHIQPr3I3AeVckdpYaFjNyJiLfI0s/S29WRhphXYZoNzzZRj7xTk9hL2a4ZkbdKeBYNd DuvVg8uTMpTKi3Ly4xJHLovw7bEMQN09CeJZ8ZCUKNvXF3mDExg3N92kLPD+wv5j6CGgrMJup R8+nRqXtP2mwxWWsYxVEf+0Kb34NmQ2vLkE8e6qaFd43EEenvmldlmFSZ7EmDPdJYibKVP+6n aasOmZ7Ht7wadh1h8ilXu3gFqsazX44y8qf4cfdQpdTaPHWJ2Qlk1UNabY5Np+LrlMFFgUm08 HU7PNoW3YwmP+rb0QZS6fq8vLg1v42WUwgtY2UddYlzlWDclPsYqHISxmk7y6rCzigS8y2CGv fDSFOIqg/P2161ZBfWP0n5shwlUUqtWI1gsEagws21LZJeXhfuowwWsKmanGv9aOtOpWwbnCa iKwex7GqjbR8D40n2Li195JcqHy7KP8mKWIkZbDtBdRYU62PTNy0Ao1YocOQK9bZehxa/2B5D wNcR3tQBLRerR5SP Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1788 Lines: 40 On Wednesday, October 26, 2016 7:20:42 PM CEST Imran Khan wrote: > On 10/26/2016 2:19 AM, Arnd Bergmann wrote: > > On Tuesday, October 25, 2016 3:23:34 PM CEST Imran Khan wrote: > >> On 10/21/2016 4:03 PM, Arnd Bergmann wrote: > >>>> +/* socinfo: sysfs functions */ > >>> > >>> This seems overly verbose, having both raw and human-readable > >>> IDs is generally not necessary, pick one of the two. If you > >>> need any fields that we don't already support in soc_device, > >>> let's talk about adding them to the generic structure. > >>> > >>> > >> > >> Okay. I will go for human readable IDs. Can we add 2 more fields > >> in the generic structure. > >> These 2 fields would be: > >> > >> vendor: A string for vendor name > >> serial_number: A string containing serial number for the platform > > > > > > serial_number seems straightforward, adding this seems like a good > > idea. I don't understand yet what would go into the vendor field > > though. For this particular driver, is it always "Qualcomm", or > > would it be a third-party that makes a device based on that chip? > > > > As we are talking about generic soc_device_attribute fields, I was hoping that > having a vendor field would be helpful as along with family it would provide > a more thorough information. Also as more than one foundries may be used for > a soc, can we have a field say foundry_id to provide this information. My first feeling is that this 'vendor' information can should be derived from the family. It's also not clear what would happen to this when a company gets bought. E.g. the Oxnas product family was subsequently owned by Oxford, PLX, Avago and Broadcom, and the mxs family was Sigmatel, Freescale, now NXP and might soon be Qualcomm. What would you put in there in this case? Arnd