Repository navigation
nfc: apple-stockholm: KUnit tests for the identity parsing - #1136
Merged
Merged
Conversation
Split the CORE_RESET and CORE_INIT response parsing out of the identity read and test it with the responses the J616s and J700 controllers returned, a reader-class response with an RF interface list, every truncation of the init response, a failed status, an RF interface count that runs past the payload and an NCI 2.x style reset response. No functional change for the hardware. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Brings aurora-wip up to fleet25: DT descriptions (#1029, #1030, #1112), the J715 board (#1129), Stockholm NFC (#1042, #1136), the AV1 tile check (#1100), the M4 Max ANE profile and AVD quirk (#1088, #1091), boot-log fixes (#1103, #1104) and the Neo ANE memory floor (#1137). Conflicts: macaudio.c and apple,macaudio.yaml, where aurora-wip's J813 and J873 entries and integration's J715 entries were added at the same spot. Keep all of them. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1042.
Splits the CORE_RESET / CORE_INIT response parsing out of the Stockholm identity read and adds a KUnit suite for it (
drivers/nfc/.kunitconfig). The cases use the exact responses the J616s and the MacBook Neo controllers returned on hardware (NCI 1.0, NXP, zero RF interfaces, firmware 0x41010160 / 0x37010160), plus a reader-class response with an RF interface list, every truncation of the init response, a failed status, an RF interface count that runs past the payload, and an NCI 2.x style one-byte reset response.No functional change on hardware: the same bytes are read and the same line is logged.
Testing (buildbox):
kunit.py run --arch=arm64 --kunitconfig=drivers/nfc --make_options W=1: 5/5 passed; W=1 clean forapple-stockholm.owith the tests built in; checkpatch --strict clean on both files.🤖 Generated with Claude Code