mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] Char: cyclades, load firmware even on Ze
@ 2009-04-15  6:47 Jiri Slaby
  2009-04-15  6:47 ` [PATCH 2/3] Char: cyclades, don't kill FW Jiri Slaby
  2009-04-15  6:47 ` [PATCH 3/3] Char: cyclades, remove spurious check in ISR Jiri Slaby
  0 siblings, 2 replies; 3+ messages in thread
From: Jiri Slaby @ 2009-04-15  6:47 UTC (permalink / raw)
  To: akpm; +Cc: alan, linux-kernel, Jiri Slaby

Ze needs firmware to be loaded as well as Zo. Move cyz_load_fw one
level upper to achieve that.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 drivers/char/cyclades.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 1fdb9f6..bde2458 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -5043,6 +5043,7 @@ static int __devinit cy_pci_probe(struct pci_dev *pdev,
 			nchan = ZE_V1_NPORTS;
 		} else {
 			card_name = "Cyclades-8Zo";
+			nchan = 8;
 
 #ifdef CY_PCI_DEBUG
 			if (mailbox == ZO_V1) {
@@ -5065,15 +5066,11 @@ static int __devinit cy_pci_probe(struct pci_dev *pdev,
 			 */
 			if ((mailbox == ZO_V1) || (mailbox == ZO_V2))
 				cy_writel(addr2 + ID_ADDRESS, 0L);
-
-			retval = cyz_load_fw(pdev, addr2, addr0, irq);
-			if (retval)
-				goto err_unmap;
-			/* This must be a Cyclades-8Zo/PCI.  The extendable
-			   version will have a different device_id and will
-			   be allocated its maximum number of ports. */
-			nchan = 8;
 		}
+
+		retval = cyz_load_fw(pdev, addr2, addr0, irq);
+		if (retval)
+			goto err_unmap;
 	}
 
 	if ((cy_next_channel + nchan) > NR_PORTS) {
-- 
1.6.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/3] Char: cyclades, don't kill FW
  2009-04-15  6:47 [PATCH 1/3] Char: cyclades, load firmware even on Ze Jiri Slaby
@ 2009-04-15  6:47 ` Jiri Slaby
  2009-04-15  6:47 ` [PATCH 3/3] Char: cyclades, remove spurious check in ISR Jiri Slaby
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2009-04-15  6:47 UTC (permalink / raw)
  To: akpm; +Cc: alan, linux-kernel, Jiri Slaby

Don't reset the PLX chip after FW load, which effectively kills
the FW, so that user had to boot manually.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 drivers/char/cyclades.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index bde2458..6d52439 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -4932,8 +4932,6 @@ static int __devinit cyz_load_fw(struct pci_dev *pdev, void __iomem *base_addr,
 	cy_writel(&ctl_addr->intr_ctrl_stat, readl(&ctl_addr->intr_ctrl_stat) |
 			0x00030800UL);
 
-	plx_init(pdev, irq, ctl_addr);
-
 	return 0;
 err_rel:
 	release_firmware(fw);
-- 
1.6.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 3/3] Char: cyclades, remove spurious check in ISR
  2009-04-15  6:47 [PATCH 1/3] Char: cyclades, load firmware even on Ze Jiri Slaby
  2009-04-15  6:47 ` [PATCH 2/3] Char: cyclades, don't kill FW Jiri Slaby
@ 2009-04-15  6:47 ` Jiri Slaby
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2009-04-15  6:47 UTC (permalink / raw)
  To: akpm; +Cc: alan, linux-kernel, Jiri Slaby

No need to check if dev_id is NULL, it never is.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 drivers/char/cyclades.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 6d52439..ccf68a9 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -1737,14 +1737,6 @@ static irqreturn_t cyz_interrupt(int irq, void *dev_id)
 {
 	struct cyclades_card *cinfo = dev_id;
 
-	if (unlikely(cinfo == NULL)) {
-#ifdef CY_DEBUG_INTERRUPTS
-		printk(KERN_DEBUG "cyz_interrupt: spurious interrupt %d\n",
-									irq);
-#endif
-		return IRQ_NONE;	/* spurious interrupt */
-	}
-
 	if (unlikely(!ISZLOADED(*cinfo))) {
 #ifdef CY_DEBUG_INTERRUPTS
 		printk(KERN_DEBUG "cyz_interrupt: board not yet loaded "
-- 
1.6.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-15  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15  6:47 [PATCH 1/3] Char: cyclades, load firmware even on Ze Jiri Slaby
2009-04-15  6:47 ` [PATCH 2/3] Char: cyclades, don't kill FW Jiri Slaby
2009-04-15  6:47 ` [PATCH 3/3] Char: cyclades, remove spurious check in ISR Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome