Skip to content

Commit

Permalink
tty:cyclades, load firmware even on Ze
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Jun 11, 2009
1 parent 07a2039 commit ace08c3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions drivers/char/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit ace08c3

Please sign in to comment.