brv >>= 1; /* brv = 2^9 = 512 max in specs */
/* Baud Rate = CLOCK_BASE / TMC / 2^BR */
- tmc = CLOCK_BASE / (brv * port->settings.clock_rate);
- }while(br > 1 && tmc <= 128);
+ tmc = CLOCK_BASE / brv / port->settings.clock_rate;
+ }while (br > 1 && tmc <= 128);
if (tmc < 1) {
tmc = 1;
} else if (tmc > 255)
tmc = 256; /* tmc=0 means 256 - low baud rates */
- port->settings.clock_rate = CLOCK_BASE / (brv * tmc);
+ port->settings.clock_rate = CLOCK_BASE / brv / tmc;
} else {
br = 9; /* Minimum clock rate */
tmc = 256; /* 8bit = 0 */
card_t* card = port_to_card(port);
/* reset channel */
- netif_stop_queue(dev);
sca_out(CMD_RESET, get_msci(port) + CMD, port_to_card(port));
#ifdef __HD64570_H
/* disable MSCI interrupts */
sca_outl(sca_inl(IER0, card) &
(phy_node(port) ? 0x00FF00FF : 0xFF00FF00), IER0, card);
#endif
+ netif_stop_queue(dev);
}