Date: Sat, 2 Jun 2007 14:39:45 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 120782 for review Message-ID: <200706021439.l52Edj6g051339@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=120782 Change 120782 by rpaulo@rpaulo_epsilon on 2007/06/02 14:38:42 Need to use bus_set_resource() on the probe routine or else the IRQ will only be setup on the second time the module is loaded. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#6 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#6 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#5 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#6 $ * */ @@ -48,6 +48,8 @@ #include <sys/sysctl.h> #include <sys/sbuf.h> +#include <isa/isavar.h> + #include <machine/bus.h> #include <sys/rman.h> #include <machine/resource.h> @@ -218,6 +220,9 @@ if (!model) return ENXIO; + if (isa_get_irq(dev) == -1) + bus_set_resource(dev, SYS_RES_IRQ, 0, ASMC_IRQ, 1); + device_set_desc(dev, model->smc_desc); return BUS_PROBE_GENERIC;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706021439.l52Edj6g051339>