Skip to content

Conversation

@yangfl
Copy link
Contributor

@yangfl yangfl commented Nov 23, 2024

  • Remove wrong reserved fields in Command12.
  • Handle EXTEND bit in Command16.

There are no requirements for lba_* to be unsigned values in 04-262r8.pdf, section 13.2.2. Besides, SMART LBA 0xC24F00 works pretty well with ATA PASS-THROUGH (12) command.

Also add getter/setter for lba.
EXTEND bit is required to be set in order for LBA high parts to be considered. Set it within lba setter.

Also remove the need for protocol field shifting for better code.
@yangfl yangfl changed the title Fix Command12. Fix Command12 and Command16. Nov 24, 2024
@TkTech
Copy link
Owner

TkTech commented Jan 30, 2025

Hey! Thanks for the contribution and sorry for taking so long to get back to you.

Unfortunately the changes as-is seem to break under Linux, specifically your 2nd commit, 76fe427. I need to take a closer look before we can look at merging this.

@TkTech TkTech self-requested a review January 30, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants