Page MenuHomeFreeBSD

urtwn(4): rework ROM reading
ClosedPublic

Authored by avos on Nov 22 2015, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 2:47 PM
Unknown Object (File)
Nov 25 2024, 6:10 PM
Unknown Object (File)
Nov 24 2024, 1:17 AM
Unknown Object (File)
Nov 4 2024, 7:12 PM
Unknown Object (File)
Nov 4 2024, 7:12 PM
Unknown Object (File)
Nov 4 2024, 7:11 PM
Unknown Object (File)
Nov 4 2024, 7:11 PM
Unknown Object (File)
Nov 4 2024, 6:45 PM
Subscribers

Details

Summary
  • Add error handling for urtwn_(r88e)_read_rom() and urtwn_efuse_*() functions.
  • Remove code duplication between urtwn_efuse_read() and urtwn_r88e_read_rom().
  • Merge r88e_rom and (r92c_)rom structures (only one of them can be used at the same time).
  • Other minor fixes / improvements.
Test Plan

Tested with RTL8188EU (URTWN_DEBUG + USB_DEBUG, hw.usb.urtwn.debug=3, no visual differences), STA mode.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to urtwn(4): rework ROM reading.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added reviewers: adrian, kevlo.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.

Looks fine to me. Go for it!

This revision is now accepted and ready to land.Nov 23 2015, 5:26 PM

Merging r88e_rom and (r92c_)rom structures looks good, but the rest gets more
complicated. For example, the original function doesn't need that error
handling since the length won't exceed URTWN_EFUSE_MAX_LEN while reading
data from efuse.

avos edited edge metadata.

Remove unneded (sc->last_rom_addr == URTWN_EFUSE_MAX_LEN) checking in urtwn_efuse_read().

This revision now requires review to proceed.Nov 24 2015, 11:43 AM
kevlo edited edge metadata.
This revision is now accepted and ready to land.Nov 24 2015, 3:36 PM
This revision was automatically updated to reflect the committed changes.