mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>,
	tpmdd-devel@lists.sourceforge.net,
	Debora Velarde <debora@linux.vnet.ibm.com>,
	David Safford <safford@watson.ibm.com>,
	jmorris@namei.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] tpm_tis: Fix subsequent suspend failures
Date: Wed, 23 Jun 2010 16:55:54 -0300	[thread overview]
Message-ID: <5204AD54-F4BF-49A8-9168-3FCA112AAA2B@linux.vnet.ibm.com> (raw)
In-Reply-To: <20100623121850.e000ac8b.akpm@linux-foundation.org>


On Jun 23, 2010, at 4:18 PM, Andrew Morton wrote:

> On Tue, 22 Jun 2010 00:08:44 -0300
> Rajiv Andrade <srajiv@linux.vnet.ibm.com> wrote:
> 
>> On Wed, 2010-06-09 at 15:11 +0200, Helmut Schaa wrote:
>>> Fix subsequent suspends by issuing tpm_continue_selftest during resume.
>>> Otherwise, the tpm chip seems to be not fully initialized and will reject
>>> the save state command during suspend, thus preventing the whole system
>>> to suspend.
>>> 
>>> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
>>> ---
>>> 
>>> Not sure if the platform resume method should be fixed in the same way.
>>> Plase review.
>>> 
>>> Thanks,
>>> Helmut
>>> 
>>> drivers/char/tpm/tpm_tis.c |    9 ++++++++-
>>> 1 files changed, 8 insertions(+), 1 deletions(-)
>>> 
>>> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
>>> index 24314a9..1030f84 100644
>>> --- a/drivers/char/tpm/tpm_tis.c
>>> +++ b/drivers/char/tpm/tpm_tis.c
>>> @@ -623,7 +623,14 @@ static int tpm_tis_pnp_suspend(struct pnp_dev *dev, pm_message_t msg)
>>> 
>>> static int tpm_tis_pnp_resume(struct pnp_dev *dev)
>>> {
>>> -	return tpm_pm_resume(&dev->dev);
>>> +	struct tpm_chip *chip = pnp_get_drvdata(dev);
>>> +	int ret;
>>> +
>>> +	ret = tpm_pm_resume(&dev->dev);
>>> +	if (!ret)
>>> +		tpm_continue_selftest(chip);
>>> +
>>> +	return ret;
>>> }
>>> 
>>> static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {
>> 
>> Sorry the ones on CC, previous message got messed up by the mail client.
>> 
>> This patch fixes https://bugzilla.kernel.org/show_bug.cgi?id=16256
>> 
>> Link to original post given it wasn't submitted to LKML originally:
>> http://marc.info/?l=tpmdd-devel&m=127609160616162&w=2
>> 
>> Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
>> 
> 
> (top-posting repaired.  Please don't do that).
> 
> This wasn't a very good way to send a patch.  I edited the diff,
> reconstructed the patch and then assembled a decent-looking changelog. 
> I also changed your acked-by to the required signed-off-by, because you
> were on the patch's delivery path.
> 
> Pretty please: next time, prepare a proper mergeable patch with the
> correct attributions and signoffs?  Thanks.

Sure, sorry. I was just not certain if I could just resent Helmut's patch to LKML without messing with his authorship.

Thanks,
Rajiv

  reply	other threads:[~2010-06-23 19:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201006091227.15729.helmut.schaa@googlemail.com>
     [not found] ` <201006091511.09810.helmut.schaa@googlemail.com>
2010-06-22  3:08   ` Rajiv Andrade
2010-06-23 19:18     ` Andrew Morton
2010-06-23 19:55       ` Rajiv Andrade [this message]
2010-06-23 20:07         ` Andrew Morton
2010-07-23 12:07           ` Helmut Schaa
2010-07-23 15:37             ` Andrew Morton
2010-07-29 10:53             ` Rajiv Andrade
2010-07-29 12:42               ` [tpmdd-devel] " Rajiv Andrade

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=5204AD54-F4BF-49A8-9168-3FCA112AAA2B@linux.vnet.ibm.com \
    --to=srajiv@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=debora@linux.vnet.ibm.com \
    --cc=helmut.schaa@googlemail.com \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=safford@watson.ibm.com \
    --cc=tpmdd-devel@lists.sourceforge.net \
    /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

all inboxes | Powered by JetHome®