Skip to content
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

usb: shell: Remove use of ctx_shell #81395

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Nov 14, 2024

The ctx_shell was only used a single place and in a function that already has a sh that would be better to use.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
The ctx_shell was only used a single place and in a function
that already has a `sh` that would be better to use.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Copy link
Member

@jhedberg jhedberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Thalley why a draft? This looks like a trivial change.

@Thalley
Copy link
Collaborator Author

Thalley commented Nov 14, 2024

@Thalley why a draft? This looks like a trivial change.

I always keep PRs in draft until they reach their first CI pass :)

@Thalley Thalley marked this pull request as ready for review November 14, 2024 12:28
@zephyrbot zephyrbot added the area: USB Universal Serial Bus label Nov 14, 2024
@Thalley
Copy link
Collaborator Author

Thalley commented Nov 19, 2024

@jfischer-no please review :)

Copy link
Collaborator

@jfischer-no jfischer-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, although I have to bring it back soon.

@Thalley
Copy link
Collaborator Author

Thalley commented Nov 26, 2024

okay, although I have to bring it back soon.

:(
The concept of a ctx_shell is pretty terrible, as that is not how the shell really works. There can be multiple shells, and the shell executing the command may not be the shell receiving the result. See #70945 for a bit more.

In BT we have #74652 as a step forward to eliminating it

@nashif nashif merged commit c7ce861 into zephyrproject-rtos:main Nov 26, 2024
27 checks passed
@Thalley Thalley deleted the usb_shell_ctx_shell branch November 26, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants