From: Ed Vance <EdV@macrolink.com>
To: "'fabrizio.gennari@philips.com'" <fabrizio.gennari@philips.com>
Cc: "'linux-kernel'" <linux-kernel@vger.kernel.org>,
"'linux-serial'" <linux-serial@vger.kernel.org>
Subject: RE: Oxford Semiconductor's OXCB950 UART not recognized by serial. c
Date: Wed, 6 Mar 2002 11:53:07 -0800 [thread overview]
Message-ID: <11E89240C407D311958800A0C9ACF7D13A76D9@EXCHANGE> (raw)
On Wed, Mar 06, 2002, fabrizio.gennari@philips.com wrote:
> As you probably have noticed, the last two entries of
> serial_pci_tbl[] match PCI_ANY_ID for both vendor and device,
> respectively for serial ports and modems. Therefore, any
> serial or modem PCI card is in serial_pci_tbl[]!
Yes I saw that, but it would not probe my ST16C654 based
card unless there was a specific table entry for it. That's
why I thought something in there was broken. I will try again
with an OX16C954 based card. Maybe my 654 card is weird.
> The associated entry in pci_boards[] is pbn_default (=0).
> So, all "pbn_default" entries that match
> serial_pci_guess_board() are marked as redundant!
Yes. Assuming an unknown card can get probed, the code that
calls serial_pci_guess_board is definitely broken. At least,
the test for "no matching specific list entry" is broken.
Do you know of any valid reason for the driver to message
about devices that were found in the specific list entries,
regardless of what the guess function detects?
> Probably, the right way could be to replace the message
> "Redundant entry" with something like:
> "The settings of your serial card (vendor_id:dev_id) have
> been successfully guessed. In order to help developers add
> a proper entry for your card, send this message along with
If the settings were successfully guessed, why do we need a
proper entry? Shouldn't the specific id portion of the list
contain only devices that cannot be successfully guessed?
In essence, shouldn't all "single bare UART interface"
serial and modem cards work *without* an id table entry?
That's what the older driver version does.
> the output of lspci -vv to an_address_where_somebody_reads_
> your_messages@unlike_serial_pci_info_where_nobody_cares_
> about_you".
If we must log a message, shouldn't it be PCI id and class
info about cards that did not match and could not be guessed.
I think we are not supposed to do that because another driver
may yet attach the device. (Somebody please correct me if
that's not right.)
> By the way, here is a patch that adds OXCB950 properly to
> serial_pci_tbl[]. pbn_b0_bt_1_115200 has been used instead
> of pbn_b0_1_115200, because the latter is identical to
> pbn_default, and the effect should be the same since
> OXCB950 is single-port.
>
> Another proposed change: why not create separate entries in
> pci_boards[] for pbn_b0_1_115200 and pbn_default?
I already have your patch. Thanks. Yes, the "no matching
specific list entry" test is broken.
I have been porting the known patches to 2.4.19-pre2 and
breaking them down to single ideas, and will start submitting
them shortly. Everything will be on linux-serial for comment.
Best regards,
Ed Vance
next reply other threads:[~2002-03-06 19:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-06 19:53 Ed Vance [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-03-06 9:14 fabrizio.gennari
2002-03-06 0:56 Ed Vance
2002-02-28 18:07 fabrizio.gennari
2002-02-21 0:05 Ed Vance
2002-02-21 9:56 ` Andrey Panin
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=11E89240C407D311958800A0C9ACF7D13A76D9@EXCHANGE \
--to=edv@macrolink.com \
--cc=fabrizio.gennari@philips.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/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
all inboxes | Powered by JetHome®