- tpm-driver-for-next-generation-tpm-chips-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     tpm: update to use wait_event calls

has been removed from the -mm tree.  Its filename is

     tpm-driver-for-next-generation-tpm-chips-fix.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Kylene Jo Hall <kjhall@xxxxxxxxxx>

Use wait_event_interruptible_timeout in place of
interruptible_sleep_on_timeout due to its racy nature.

Signed-off-by: Kylie Hall <kjhall@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/tpm/tpm_tis.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff -puN drivers/char/tpm/tpm_tis.c~tpm-driver-for-next-generation-tpm-chips-fix drivers/char/tpm/tpm_tis.c
--- 25/drivers/char/tpm/tpm_tis.c~tpm-driver-for-next-generation-tpm-chips-fix	Tue Apr 11 15:14:44 2006
+++ 25-akpm/drivers/char/tpm/tpm_tis.c	Tue Apr 11 15:14:44 2006
@@ -95,10 +95,10 @@ static int request_locality(struct tpm_c
 		 chip->vendor.iobase + TPM_ACCESS(l));
 
 	if (chip->vendor.irq) {
-		interruptible_sleep_on_timeout(&chip->vendor.int_queue,
-					       HZ *
-					       chip->vendor.timeout_a /
-					       1000);
+		wait_event_interruptible_timeout(chip->vendor.int_queue,
+						 (check_locality(chip, l) >= 0),
+						 HZ * chip->vendor.timeout_a /
+						 1000);
 		if (check_locality(chip, l) >= 0)
 			return l;
 
@@ -150,7 +150,7 @@ static int get_burstcount(struct tpm_chi
 }
 
 static int wait_for_stat(struct tpm_chip *chip, u8 mask, u32 timeout,
-			 wait_queue_head_t * queue)
+			 wait_queue_head_t *queue)
 {
 	unsigned long stop;
 	u8 status;
@@ -161,7 +161,10 @@ static int wait_for_stat(struct tpm_chip
 		return 0;
 
 	if (chip->vendor.irq) {
-		interruptible_sleep_on_timeout(queue, HZ * timeout / 1000);
+		wait_event_interruptible_timeout(*queue,
+						 ((tpm_tis_status(chip) &
+						   mask) == mask),
+						 HZ * timeout / 1000);
 		status = tpm_tis_status(chip);
 		if ((status & mask) == mask)
 			return 0;
_

Patches currently in -mm which might be from kjhall@xxxxxxxxxx are

tpm-fix-memory-leak.patch
tpm-fix-missing-string.patch
tpm-spacing-cleanups.patch
tpm-reorganize-sysfs-files.patch
tpm-chip-struct-update.patch
tpm-return-chip-from-tpm_register_hardware.patch
tpm-command-duration-update.patch
tpm-new-12-sysfs-files.patch
tpm-driver-for-next-generation-tpm-chips.patch
tpm-msecs_to_jiffies-cleanups.patch
tpm-use-clear_bit.patch
tpm-tpm_infineon-updated-to-latest-interface-changes.patch
tpm-check-mem-start-and-len.patch
tpm-update-bios-log-code-for-12.patch
tpm_infineon-section-fixup.patch
tpm-spacing-cleanups-2.patch
tpm-add-interrupt-module-parameter.patch
tpm-add-hid-module-paramater.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux