Re: Device probe issue with an em(4) compatible device

From: Brenden Grace (bcg_at_intelli7.com)
Date: 09/29/04

  • Next message: Ryan Sommers: "Serial Console / GDB Port"
    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"
    

  • Next message: Ryan Sommers: "Serial Console / GDB Port"

    Relevant Pages