Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2019 16:13:44 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Warner Losh <imp@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r355827 - head/sys/dev/pccbb
Message-ID:  <CANCZdfryfBtegUu17z1cWRn66a3_5cqHXRSM%2BPukaVif-Ns6TQ@mail.gmail.com>
In-Reply-To: <201912162308.xBGN89jg049753@repo.freebsd.org>
References:  <201912162308.xBGN89jg049753@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 16, 2019 at 4:08 PM Warner Losh <imp@freebsd.org> wrote:

> Author: imp
> Date: Mon Dec 16 23:08:09 2019
> New Revision: 355827
> URL: https://svnweb.freebsd.org/changeset/base/355827
>
> Log:
>   Add back accidentally dropped masking...
>
>   -       PCI_MASK_CONFIG(sc->dev, CBBR_BRIDGECTRL,
>   -           & ~CBBM_BRIDGECTRL_INTR_IREQ_ISA_EN, 2);
>
>   was accidentally dropped from r355822 in the refactor. Restore it since
> 16-bit
>   cards may fail without it (some bridges autodetect this properly, so my
> laptop
>   worked when I tested it).
>
>   Noticed by: rpokala@
>
> Modified:
>   head/sys/dev/pccbb/pccbb.c
>
> Modified: head/sys/dev/pccbb/pccbb.c
>
> ==============================================================================
> --- head/sys/dev/pccbb/pccbb.c  Mon Dec 16 22:05:03 2019        (r355826)
> +++ head/sys/dev/pccbb/pccbb.c  Mon Dec 16 23:08:09 2019        (r355827)
> @@ -59,9 +59,6 @@
>
>  /*
>   * Driver for PCI to CardBus Bridge chips
> - * and PCI to PCMCIA Bridge chips
> - * and ISA to PCMCIA host adapters
> - * and C Bus to PCMCIA host adapters
>   *
>   * References:
>   *  TI Datasheets:
>

This was intentional, btw. I'd planned on doing it in a separate commit,
but it wound up in this one. Not worth reverting and redoing, imho, so I
won't.

The cbb driver will just be for CardBus Bridges. There's a pcic driver, out
of tree because it's broken and mostly irrelevant after the NIC purge, that
will handle PCI and ISA to 16-bit PCMCIA bridges. And C Bus is no longer
relevant because PC 98 support has been removed from FreeBSD (and the
driver it would have been was relevant for only a few very old PC 98
laptops with custom NEC PCMCIA interface that's impossible to find docs for
these days).

Warner

> @@ -273,6 +270,8 @@ cbb_enable_func_intr(struct cbb_softc *sc)
>
>         reg = (exca_getb(&sc->exca, EXCA_INTR) & ~EXCA_INTR_IRQ_MASK) |
>             EXCA_INTR_IRQ_NONE;
> +       PCI_MASK_CONFIG(sc->dev, CBBR_BRIDGECTRL,
> +           & ~CBBM_BRIDGECTRL_INTR_IREQ_ISA_EN, 2);
>         exca_putb(&sc->exca, EXCA_INTR, reg);
>  }
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfryfBtegUu17z1cWRn66a3_5cqHXRSM%2BPukaVif-Ns6TQ>