From: Mathias Adam <a2@adamis.de>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Once again: Socket CF card and Kernel 2.6
Date: Sat, 5 Mar 2005 20:25:39 +0100 [thread overview]
Message-ID: <20050305192539.GA26285@adamis.de> (raw)
In-Reply-To: <1110046671.18555.3.camel@pegasus>
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
Hi Marcel,
On 05.03.05 19:17:50, Marcel Holtmann wrote:
> I only have the old Socket cards (dtl1_cs driver) at hand and so I can't
> test it, but my Xircom card is still not working.
Is that Xircom card similar to the newer Socket cards? i.e. does it have
a 16C95x UART? If yes you could try this patch which I used while
investigating the problem, it includes some debug messages which might
help.
> For the Socket card the baud rate is 230400 and yes, this is to slow for
> the full bandwith of a piconet. However I never did any bandwith test
> with this card, but actually there are cards out there where the UART
> limits the total possible bandwidth.
Huh - but at least it's still a lot faster than a GPRS connection so it's
okay for me...
Regards,
Mathias
--
The first time you'll get a Microsoft product that doesn't suck,
will be the day they start producing vacuum cleaners.
[-- Attachment #2: debug-patch --]
[-- Type: text/plain, Size: 1736 bytes --]
--- 8250.c_2.6.11-org 2005-03-02 08:37:47.000000000 +0100
+++ 8250.c 2005-03-05 02:32:50.000000000 +0100
@@ -56,11 +56,11 @@
/*
* Debugging.
*/
-#if 0
+//#if 0
#define DEBUG_AUTOCONF(fmt...) printk(fmt)
-#else
-#define DEBUG_AUTOCONF(fmt...) do { } while (0)
-#endif
+//#else
+//#define DEBUG_AUTOCONF(fmt...) do { } while (0)
+//#endif
#if 0
#define DEBUG_INTR(fmt...) printk(fmt)
@@ -346,7 +346,7 @@
static inline void serial8250_clear_fifos(struct uart_8250_port *p)
{
if (p->capabilities & UART_CAP_FIFO) {
- serial_outp(p, UART_FCR, UART_FCR_ENABLE_FIFO);
+//alskdfj serial_outp(p, UART_FCR, UART_FCR_ENABLE_FIFO);
serial_outp(p, UART_FCR, UART_FCR_ENABLE_FIFO |
UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT);
serial_outp(p, UART_FCR, 0);
@@ -1636,9 +1636,25 @@
/*
* Ask the core to calculate the divisor for us.
*/
- baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
+ baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk /* /16 */);
quot = serial8250_get_divisor(port, baud);
+ printk(KERN_INFO "***** Serial: baud=%d quot=%d\n", baud, quot);
+ if (up->port.type == PORT_16C950) {
+ unsigned int baud_base = port->uartclk/16;
+ if (baud <= baud_base)
+ serial_icr_write(up, UART_TCR, 0);
+ else if (baud <= 2*baud_base) {
+ serial_icr_write(up, UART_TCR, 0x8);
+ baud_base = baud_base * 2;
+ } else if (baud <= 4*baud_base) {
+ serial_icr_write(up, UART_TCR, 0x4);
+ baud_base = baud_base * 4;
+ } else
+ serial_icr_write(up, UART_TCR, 0);
+ printk(KERN_INFO "***** Serial: baud_base=%d\n", baud_base);
+ }
+
/*
* Work around a bug in the Oxford Semiconductor 952 rev B
* chip which causes it to seriously miscalculate baud rates
next prev parent reply other threads:[~2005-03-05 19:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 3:19 [Bluez-users] Once again: Socket CF card and Kernel 2.6 Mathias Adam
2005-02-28 8:13 ` Marcel Holtmann
2005-02-28 22:02 ` a2
2005-03-01 8:29 ` Marcel Holtmann
2005-03-05 5:37 ` Mathias Adam
2005-03-05 9:17 ` Erwin Authried
2005-03-05 14:42 ` Mathias Adam
2005-03-05 11:24 ` Marcel Holtmann
2005-03-05 14:18 ` Mathias Adam
2005-03-05 14:35 ` Mathias Adam
2005-03-05 18:17 ` Marcel Holtmann
2005-03-05 19:25 ` Mathias Adam [this message]
2005-03-05 19:55 ` Marcel Holtmann
2005-03-06 19:37 ` Mathias Adam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050305192539.GA26285@adamis.de \
--to=a2@adamis.de \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox