* [PATCH 1/1] solos-pci: Fix regression introduced by newest firmware
@ 2011-03-20 23:41 Philip Prindeville
0 siblings, 0 replies; only message in thread
From: Philip Prindeville @ 2011-03-20 23:41 UTC (permalink / raw)
To: Netdev; +Cc: linux-atm-general@lists.sourceforge.net
The newest FPGA firmware on the Solos processors correctly signals carrier transitions, bitrate, etc.
The driver previously ignored these messages, and the physical state was always ATM_PHY_SIG_UNKNOWN.
Now that the board reports its state, we expose a bug whereby the transition from UNKNOWN to LOST causes us to release all VC's. It should not: only transitions from FOUND to LOST or UNKNOWN should do this (actually, it's bears examining if the VC's should be released at all).
So we add a check to the previous state on transitions for leaving FOUND state.
Signed-off-by: Philip A Prindeville <philipp@redfish-solutions.com>
---
--- a/drivers/atm/solos-pci.c 2011-03-20 15:27:40.000000000 -0600
+++ b/drivers/atm/solos-pci.c 2011-03-20 16:32:11.000000000 -0600
@@ -382,8 +382,11 @@ static int process_status(struct solos_c
/* Anything but 'Showtime' is down */
if (strcmp(state_str, "Showtime")) {
+ char old_signal = card->atmdev[port]->signal;
+
atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_LOST);
- atm_dev_release_vccs(card->atmdev[port]);
+ if (old_signal == ATM_PHY_SIG_FOUND)
+ atm_dev_release_vccs(card->atmdev[port]);
dev_info(&card->dev->dev, "Port %d: %s\n", port, state_str);
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-20 23:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-20 23:41 [PATCH 1/1] solos-pci: Fix regression introduced by newest firmware Philip Prindeville
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.