From owner-freebsd-isdn Fri May 10 1:35: 4 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by hub.freebsd.org (Postfix) with ESMTP id AA91537B40C for ; Fri, 10 May 2002 01:34:57 -0700 (PDT) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.11.6/8.11.6) with ESMTP id g4A8Yt028292 for ; Fri, 10 May 2002 11:34:55 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: isdn@FreeBSD.ORG Subject: Re: Avm Fritz!PCI v2 and 4.5-STABLE Date: Fri, 10 May 2002 11:34:19 +0300 X-Mailer: KMail [version 1.4] References: <200205101103.07751.ari@suutari.iki.fi> In-Reply-To: <200205101103.07751.ari@suutari.iki.fi> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200205101134.19017.ari.suutari@syncrontech.com> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi again, On Friday 10 May 2002 11:03, Ari Suutari wrote: > Hi, > > I have been playing with an AVM Fritz!PCI v2 card > on 4.5-STABLE. The card is detected ok and seems > to work, but if I reboot the machine (via shutdown -r now) > the machine hangs during boot. > =09I found that in i4b_ifpi2_pci.c, in avma1pp2_disable =09there is a "/* could be wrong*/" before writing =090x07 into STAT0_OFFSET. I peeked at Linux driver =09and it looks like that it writes 0x0 when device is disabled. =09So, I went and changed the source like this: ------clip clip---- *** /tmp/orig Fri May 10 11:31:30 2002 --- i4b_ifpi2_pci.c Fri May 10 11:31:41 2002 *************** *** 950,957 **** bus_space_handle_t bhandle =3D=20 rman_get_bushandle(sc->sc_resources.io_base[0]); bus_space_tag_t btag =3D rman_get_bustag(sc->sc_resources.io_base= [0]); ! /* could be wrong */ ! bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0x07); } static void --- 950,957 ---- bus_space_handle_t bhandle =3D=20 rman_get_bushandle(sc->sc_resources.io_base[0]); bus_space_tag_t btag =3D rman_get_bustag(sc->sc_resources.io_base= [0]); ! /* could still be wrong */ ! bus_space_write_1(btag, bhandle, STAT0_OFFSET, 0x00); } static void ------clip clip---- =09Tadaaa! I was able to reboot the machine without cycling the power. =09Maybe someone with card specs could verify if this change is correct ? =09=09Ari S. =09 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message