lkml.org 
[lkml]   [2004]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.6.10 Altix : ioc4 serial driver support
On Wed, Dec 22, 2004 at 09:20:42AM -0600, Patrick Gefre wrote:
> Russell King wrote:
> > You want to register with the serial core before you register with PCI.
> > Then add each port when you find it via the PCI driver ->probe method.
> >
> > Removal is precisely the reverse order - remove each port in ->remove
> > method first, then unregister from serial core.
>
> How do I know how many ports I have when I register with serial core ?
> I use the info I got when i probed to fill in .nr

You need to decide on a maximum number of ports and always use that.
You only need to add the ports that you actually have in reality
though.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.053 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site