Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2024 09:27:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 255337] ath(4): Atheros AR9462 identified correctly but does not function
Message-ID:  <bug-255337-21060-1mxQPhzpb7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255337-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255337-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255337

--- Comment #27 from Dmitry Lukhtionov <dmitryluhtionov@gmail.com> ---
I can put any debug information in thiis code, or anoter

ar9300_eeprom_read_word(struct ath_hal *ah, u_int off, u_int16_t *data)
{
    if (AR_SREV_OSPREY(ah) || AR_SREV_POSEIDON(ah) || AR_SREV_JUPITER(ah))
    {
        (void) OS_REG_READ(ah, AR9300_EEPROM_OFFSET + (off <<
AR9300_EEPROM_S));
        if (!ath_hal_wait(ah,
                          AR_HOSTIF_REG(ah, AR_EEPROM_STATUS_DATA),
                          AR_EEPROM_STATUS_DATA_BUSY |
AR_EEPROM_STATUS_DATA_PROT_ACCESS,
                          0))
        {
            return AH_FALSE;
        }
        *data =3D MS(OS_REG_READ(ah,
                               AR_HOSTIF_REG(ah, AR_EEPROM_STATUS_DATA)),
AR_EEPROM_STATUS_DATA_VAL);
       return AH_TRUE;
    }
    else
    {
        *data =3D 0;
        return AH_FALSE;
    }
}

=D0=A1an you send me a patch that will generate a lot of debugging informat=
ion?

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255337-21060-1mxQPhzpb7>