Skip to content

Fix Command12 and Command16. #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix Command12 and Command16. #24

wants to merge 2 commits into from

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