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

RFC : completely remove flash-as-eeprom emulation for get/set_USER_ID #102

Closed
wants to merge 1 commit into from

Conversation

fenugrec
Copy link
Collaborator

A follow-up to the discussion in #91 .

Any thoughts ? There's no rush to delete probably-good code, but if it's not used by anyone...

This would remove all the relevant code and adjusts the linker scripts accordingly.

There is a pair of USB requests ( GS_USB_BREQ_GET_USER_ID and
_SET_USER_ID) that is not supported by the linux driver, and not used by
any known software :

candle-usb#91

Since the firmware returns a unique serial #, there doesn't appear to be
any use case for assigning a user ID. Using a whole flash page for that
purpose can be wasteful on bigger targets .

This removes all the relevant code and adjusts the linker scripts
accordingly.
@Daniel-Trevitz
Copy link
Contributor

I've yet to see the value in it. totally unsupported in linux as far as I can tell.

@fenugrec
Copy link
Collaborator Author

@HubertD , any thoughts on this ?

@marckleinebudde
Copy link
Contributor

marckleinebudde commented Oct 31, 2022

Go ahead, remove that code. The firmware provides proper device unique serial numbers via the USB interface directly.

@fenugrec
Copy link
Collaborator Author

The firmware provides proper device unique serial numbers via the USB interface directly.

Yes, I'm just not sure why Hubert went through the trouble of adding a settable user_id ...

Eh, I can always revert the removal if something pops up. But I think it won't be missed.

@fenugrec
Copy link
Collaborator Author

Rebase + merged in a0caf93 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants