[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160715032327.GF9347@obsidianresearch.com>
Date: Thu, 14 Jul 2016 21:23:27 -0600
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: Andrey Pronin <apronin@...omium.org>
Cc: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
Peter Huewe <peterhuewe@....de>,
Marcel Selhorst <tpmdd@...horst.net>,
tpmdd-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
groeck@...omium.org, smbarber@...omium.org, dianders@...omium.org
Subject: Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in
tpm_tis_core
On Thu, Jul 14, 2016 at 06:51:36PM -0700, Andrey Pronin wrote:
> - WARN_ON(chip->groups_cnt != 0);
Nope.
> - const struct attribute_group *groups[3];
> + /* up to 4 attribute groups:
> + * - driver-specific
> + * - common TPM1.2 and TPM2.0
> + * - TPM1.2/2.0-specific
> + * - ppi
> + */
> + const struct attribute_group *groups[5];
The prior patch needed to have groups[4], every patch much work.
> + if (priv->phy_ops->attr_group)
> + chip->groups[chip->groups_cnt++] = priv->phy_ops->attr_group;
I am really not excited about having driver specific sysfs
files.
What is the justification for this?
Jason
Powered by blists - more mailing lists