In message: <20090514002555.f56ba38b.s...@freebsd.org>
            Stanislav Sedov <s...@freebsd.org> writes:
: On Wed, 13 May 2009 18:42:49 +0000 (UTC)
: Oleksandr Tymoshenko <go...@freebsd.org> mentioned:
: 
: > Author: gonzo
: > Date: Wed May 13 18:42:49 2009
: > New Revision: 192059
: > URL: http://svn.freebsd.org/changeset/base/192059
: > 
: > Log:
: >   - Make SPI bus bridge be non-arch dependent by using more generic
: >       name
: >   
: >   Reviewed by:      imp
: > 
: > Modified:
: >   head/sys/arm/at91/at91_spi.c
: >   head/sys/dev/spibus/spibus.c
: > 
: > Modified: head/sys/arm/at91/at91_spi.c
: > 
==============================================================================
: > --- head/sys/arm/at91/at91_spi.c    Wed May 13 18:31:28 2009        
(r192058)
: > +++ head/sys/arm/at91/at91_spi.c    Wed May 13 18:42:49 2009        
(r192059)
: > @@ -297,7 +297,7 @@ static device_method_t at91_spi_methods[
: >  };
: >  
: >  static driver_t at91_spi_driver = {
: > -   "at91_spi",
: > +   "spi",
: >     at91_spi_methods,
: >     sizeof(struct at91_spi_softc),
: >  };
: > 
: > Modified: head/sys/dev/spibus/spibus.c
: > 
==============================================================================
: > --- head/sys/dev/spibus/spibus.c    Wed May 13 18:31:28 2009        
(r192058)
: > +++ head/sys/dev/spibus/spibus.c    Wed May 13 18:42:49 2009        
(r192059)
: > @@ -194,5 +194,5 @@ static driver_t spibus_driver = {
: >  
: >  devclass_t spibus_devclass;
: >  
: > -DRIVER_MODULE(spibus, at91_spi, spibus_driver, spibus_devclass, 0, 0);
: > +DRIVER_MODULE(spibus, spi, spibus_driver, spibus_devclass, 0, 0);
: >  MODULE_VERSION(spibus, 1);
: > 
: 
: On the other hand this driver appears to be machine-specific. What if one
: would like to have a kernel with several SPI bus drivers included for devices
: that doesn't support enumeration? In this case it will be impossible to
: diffirentiate these drivers in the hints file.

The driver is machine specific.  However, there's almost certainly
only ever going to be one of these drivers that attaches to a given
bus.  It is little different from the variety pci bridge drivers we
have, for example, that all have the same name.

Unlike the i2c case we had recently (which is about devices that
attach to i2c), this driver is a controller for the spi bus.

Warner
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to