[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161222003122.GY8288@codeaurora.org>
Date: Wed, 21 Dec 2016 16:31:22 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: Imran Khan <kimran@...eaurora.org>
Cc: andy.gross@...aro.org, lee.jones@...aro.org,
David Brown <david.brown@...aro.org>,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-soc@...r.kernel.org
Subject: Re: [PATCH v6] soc: qcom: Add SoC info driver
On 12/21, Imran Khan wrote:
> On 12/21/2016 4:20 AM, Stephen Boyd wrote:
> >
> > I'll wait to see what the next patch version has. We will
> > probably need to have some way to know which ODM the kernel is
> > running on, so we can interpret the platform type/subtype fields
> > properly. That part seems to be lacking from this patch right
> > now. We assume it's always qcom as the ODM, which isn't true.
> >
> Now I get this point. So far we don't have any mechanism in the driver that
> gives ODM information. As far as generic soc_device_attribute's vendor field
> is concerned we use Qualcomm since this will be true for SoC.
> For hardware type and sub-types the various relevant values in SMEM are numeric
> values and indeed it would be very difficult to estimate how some other ODM
> will use the same number.
> So for the h/w types and sub-types can we keep the numeric values rather than
> showing strings as attribute values. We can leave the interpretation of these
> values to ODM specific code.
Raw numbers sounds fine, but how do we know what ODM it is to
understand how to parse the numbers appropriately? Perhaps the
smem DT entry needs to have a property indicating the ODM that
has configured these numbers, and then we can have an ODM sysfs
node that we use to expose that string property to userspace?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists