tpmdd-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: Dave Heller <hellerda-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Regarding recently Added TPM2.0 support to the Nuvoton i2c driver
Date: Wed, 27 Jul 2016 13:27:23 -0400	[thread overview]
Message-ID: <5798EEFB.1000004@linux.vnet.ibm.com> (raw)
In-Reply-To: <20160727162415.GA18843-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>


On 07/27/2016 12:24 PM, Jason Gunthorpe wrote:
> On Wed, Jul 27, 2016 at 10:30:09AM -0400, Dave Heller wrote:
>>> So you might do
>>>
>>>    compatible = "nuvoton,npct650", "nuvoton,npct601"
>>>
>>> Andrew, is 601 even the right name?
>>
>> Hi Jason, I'm not sure I'm understanding your answer here.  Looks like
>> we will have to add a couple of lines to specifically list the npct650,
>> why not just using the existing syntax, one device id per line?  Or you
>> are saying, since the npct601 and npct650 are similar models, it's
>> better to list them on the same line?
>
> The above example would go in your device tree, are you using device tree?
>
> Jason

Thanks, I get in now: you are saying we should add that to our device 
tree and leave the driver code alone.

Here is were my understanding of the device tree entry is a bit lacking" 
maybe this is the convention that is normally followed.  And yes, the 
device tree property is named "compatible".  But this seems intuitively 
backward to me:

Should not the device tree tell you what is actually *there* and let the 
driver code decide what is compatible?  Rather than the firmware trying 
to make a guess as to which Nuvoton device id to try to match in the 
Nuvoton driver code?

Put another way, should the "smarts" as to which Nuvoton part numbers 
are considered compatible to the driver, be done by FW?  Or left to the 
driver?


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev

  parent reply	other threads:[~2016-07-27 17:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26 18:14 Regarding recently Added TPM2.0 support to the Nuvoton i2c driver Nayna
     [not found] ` <5797A893.9020205-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-07-26 20:17   ` Jason Gunthorpe
     [not found]     ` <20160726201711.GA17742-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-07-26 20:39       ` George Wilson
     [not found]         ` <20160726203902.GA17730-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2016-07-26 21:03           ` Jason Gunthorpe
     [not found]             ` <20160726210344.GA18332-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-07-27 16:05               ` George Wilson
     [not found]                 ` <20160727160511.GA26597-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2016-07-27 16:31                   ` Jason Gunthorpe
     [not found]                     ` <20160727163152.GA27915-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-07-27 21:46                       ` George Wilson
2016-07-27 14:30       ` Dave Heller
     [not found]         ` <5798C571.1000309-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-07-27 16:24           ` Jason Gunthorpe
     [not found]             ` <20160727162415.GA18843-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-07-27 17:27               ` Dave Heller [this message]
     [not found]                 ` <5798EEFB.1000004-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-07-27 17:42                   ` Jason Gunthorpe
     [not found]                     ` <20160727174229.GA28681-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-07-27 22:34                       ` George Wilson
     [not found]                         ` <20160727223419.GA6132-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2016-07-29  6:40                           ` Nayna
2016-08-26  3:49       ` Jarkko Sakkinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5798EEFB.1000004@linux.vnet.ibm.com \
    --to=hellerda-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).