Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2015 17:43:21 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Anthony Jenkins <Anthony.B.Jenkins@att.net>
Cc:        Anthony Jenkins <scoobi_doo@yahoo.com>, "wireless@freebsd.org" <wireless@freebsd.org>
Subject:   Re: Atheros AR9565 detected, not working
Message-ID:  <CAJ-Vmo=DNs6VpMis-zStySd91jO3D5xdUb-KeNV8FDU-_B53ow@mail.gmail.com>
In-Reply-To: <54C2B2F7.3060308@att.net>
References:  <CAJ-Vmo=3WXOnk-9HeeddDtDCs1Gu02WJ6Qj8j43AJu2e_ozyyQ@mail.gmail.com> <284932058.303050.1420924294011.JavaMail.yahoo@jws10628.mail.bf1.yahoo.com> <CAJ-VmoneyJBkj9MWp-Dbad45tpXPZurryr9OqVg2Bm975dWU5w@mail.gmail.com> <54C2B2F7.3060308@att.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 January 2015 at 12:45, Anthony Jenkins <Anthony.B.Jenkins@att.net> wrote:
> Here's a patch that works on my laptop's AR9565 - it just allows GPIO BIT_11
> accesses.  No idea why that works; I thought I discovered BIT_8 was the
> rfkill bit.  I tried allowing both BIT_11 /and/ BIT_8, but that doesn't work
> (wpa_supplicant(8) can never authenticate).  May dig further, but I'm kinda
> swamped with stuff.

I'm glad you dug this far!

> I can conditionally allow BIT_11 GPIOs if the device is an AR9565... should
> I do that?

I think we should just kill the check entirely for now. I'll go look
at doing that soon.

> Why/how does the Atheros driver emit invalid GPIO bit controls for a device?
> In other words, if my Atheros 123456 chip wants to do XXX, how does that
> translate to a GPIO bit access that needs to be blocked in the low-level
> GPIO functions?  Yet another way to put it, what's that blocking logic in
> ar9300_gpio.c there for?

Well, because upper layer routines may ask for GPIO pins to do things
(like configure LEDs, antenna switches, etc.) It's not just the HAL
that's asking for GPIO assignments.

It's not invalid - it's that some chips will glue other things into
GPIO lines. Things like external low noise RX amplifiers, high power
TX amplifiers, etc.




-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=DNs6VpMis-zStySd91jO3D5xdUb-KeNV8FDU-_B53ow>