- htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update.patch removed from -mm tree

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

 



The patch titled
     htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers update
has been removed from the -mm tree.  Its filename was
     htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update.patch

This patch was dropped because it was folded into htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers.patch

------------------------------------------------------
Subject: htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers update
From: "Bryan O'Sullivan" <bos@xxxxxxxxxxxxxx>

Secret changes.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@xxxxxxxxxx>
Cc: Dave Olson <dave.olson@xxxxxxxxxx>
Cc: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Cc: Bryan O'Sullivan <bos@xxxxxxxxxxxxx>
Cc: Roland Dreier <rolandd@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/pci/htirq.c   |   21 ++++++++++-----------
 include/linux/htirq.h |    3 ++-
 2 files changed, 12 insertions(+), 12 deletions(-)

diff -puN drivers/pci/htirq.c~htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update drivers/pci/htirq.c
--- a/drivers/pci/htirq.c~htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update
+++ a/drivers/pci/htirq.c
@@ -38,17 +38,16 @@ void write_ht_irq_msg(unsigned int irq, 
 	struct ht_irq_cfg *cfg = get_irq_data(irq);
 	unsigned long flags;
 	spin_lock_irqsave(&ht_irq_lock, flags);
-	if (!likely(cfg->update)) {
-		if (cfg->msg.address_lo != msg->address_lo) {
-			pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx);
-			pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_lo);
-		}
-		if (cfg->msg.address_hi != msg->address_hi) {
-			pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx + 1);
-			pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_hi);
-		}
-	} else
-		cfg->update(irq, msg);
+	if (cfg->msg.address_lo != msg->address_lo) {
+		pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx);
+		pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_lo);
+	}
+	if (cfg->msg.address_hi != msg->address_hi) {
+		pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx + 1);
+		pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_hi);
+	}
+	if (cfg->update)
+		cfg->update(cfg->dev, irq, msg);
 	spin_unlock_irqrestore(&ht_irq_lock, flags);
 	cfg->msg = *msg;
 }
diff -puN include/linux/htirq.h~htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update include/linux/htirq.h
--- a/include/linux/htirq.h~htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update
+++ a/include/linux/htirq.h
@@ -16,7 +16,8 @@ void unmask_ht_irq(unsigned int irq);
 int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
 
 /* For drivers of buggy hardware */
-typedef void (ht_irq_update_t)(int irq, struct ht_irq_msg *);
+typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
+			       struct ht_irq_msg *msg);
 int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
 
 #endif /* LINUX_HTIRQ_H */
_

Patches currently in -mm which might be from bos@xxxxxxxxxxxxxx are

htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers.patch
htirq-allow-buggy-drivers-of-buggy-hardware-to-write-the-registers-update.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