Re: Device probe issue with an em(4) compatible device
From: Brenden Grace (bcg_at_intelli7.com)
Date: 09/29/04
- Previous message: Brenden Grace: "Re: Device probe issue with an em(4) compatible device"
- Maybe in reply to: Brenden Grace: "Device probe issue with an em(4) compatible device"
- Next in thread: M. Warner Losh: "Re: Device probe issue with an em(4) compatible device"
- Reply: M. Warner Losh: "Re: Device probe issue with an em(4) compatible device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-hackers@freebsd.org Date: Wed, 29 Sep 2004 15:17:47 -0400
On Wed, 2004-09-29 at 13:37, Peter Buckingham wrote:
> why compile the em driver in at all? it won't probe the device if it
> doesn't exist ;-)
because I need it ...
> otherwise, just add some code to the em's probe routine to check for
> your subvendor, subdevice pair and exit without attaching.
Well sure (though ugly), but I think having it just return a negative
number would be a better fix than that. I was more interested in why the
em driver (and others) returns 0 and ends the probing of a device that
it could possibly only partially support (based on its matching of
PCI_ANY_ID). If I understand DEVICE_PROBE(9) correctly it seems that the
whole reason for the negative return scale is to avoid this very issue.
-- Brenden C. Grace Intelli7 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Brenden Grace: "Re: Device probe issue with an em(4) compatible device"
- Maybe in reply to: Brenden Grace: "Device probe issue with an em(4) compatible device"
- Next in thread: M. Warner Losh: "Re: Device probe issue with an em(4) compatible device"
- Reply: M. Warner Losh: "Re: Device probe issue with an em(4) compatible device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Device probe issue with an em(4) compatible device
... :> why compile the em driver in at all? ... it won't probe the device
if it ... As opposed to just hacking the em driver? ... had a chance to bid
(as well as the potential drivers that bid a ... (freebsd-hackers) - Re: If you used Linux before why did you switch to FreeBSD?
... There are three mutually incompatible wlan driver ... > any botched installation
attempt. ... too large and let FreeBSD compile it over night if I want it. ... for
me Firefox has become far too slow. ... (comp.unix.bsd.freebsd.misc) - Re: Simple ADS5273 -> Xilinx Interconnect Model
... Is the ADS5273 a non-standard LVDS "style" of driver? ... If there are
excessive reflections from the ... reduced-amplitude probe point. ... (comp.arch.fpga) - Re: Problem with hyperref + tableofcontents + tetex?
... >> I compile the following with latex using MIKTEX and TETEX: ...
the driver chosen is dvips but and it ... (comp.text.tex) - Re: Problems with kernel: no sound, printer, cdwriter
... Compile them, install them and then load the module. ... kernel,
not as module. ... > Journalled Block Device driver loaded ... (Debian-User)