Skip to content

Device MSC: add START STOP (load/eject) request support#246

Open
ayedm1 wants to merge 2 commits intoeclipse-threadx:devfrom
ayedm1:device_storage_load_eject_media
Open

Device MSC: add START STOP (load/eject) request support#246
ayedm1 wants to merge 2 commits intoeclipse-threadx:devfrom
ayedm1:device_storage_load_eject_media

Conversation

@ayedm1
Copy link
Contributor

@ayedm1 ayedm1 commented Jan 18, 2026

  • changes:
  • Add mass-storage “removable media” support by tracking per-LUN prevent/allow medium removal and loaded/ejected status.
  • Introduce an optional per-LUN callback to handle SCSI START STOP UNIT (including load/eject and power-condition fields).
  • Extend storage constants (media types, sense keys/codes, power conditions, prevent flags) to support the new behavior and improve readability (explicit hex values).
  • Initialize new per-LUN state on activation (default: medium removal allowed, medium loaded) and wire the new callback through storage initialization.
  • Includes minor formatting/comment cleanups and version banner updates to 6.4.6.
  • implemenatation referance:

SCSI Block Commands – 4 (SBC-4)

PREVENT ALLOW MEDIUM REMOVAL command:

image

START STOP UNIT command:

image image

fdesbiens and others added 2 commits January 14, 2026 11:01
Merging changes ahead of hotfix release 202504a
- Add mass-storage “removable media” support by tracking per-LUN prevent/allow medium removal and loaded/ejected status.
- Introduce an optional per-LUN callback to handle SCSI START STOP UNIT (including load/eject and power-condition fields).
- Extend storage constants (media types, sense keys/codes, power conditions, prevent flags) to support the new behavior and improve readability (explicit hex values).
- Initialize new per-LUN state on activation (default: medium removal allowed, medium loaded) and wire the new callback through storage initialization.
- Includes minor formatting/comment cleanups and version banner updates to 6.4.6.

SCSI Block Commands – 4 (SBC-4)
@ayedm1 ayedm1 moved this to In review in ThreadX Roadmap Jan 18, 2026
@ayedm1 ayedm1 added the feature New feature or enhancement request label Jan 18, 2026
@ayedm1 ayedm1 requested review from ABOUSTM and rahmanih January 18, 2026 14:55
@fdesbiens fdesbiens changed the base branch from master to dev February 5, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enhancement request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants