Skip to content

nfc: apple-stockholm: KUnit tests for the identity parsing - #1136

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
se/stockholm-kunit
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
se/stockholm-kunit

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 for apple-stockholm.o with the tests built in; checkpatch --strict clean on both files.

🤖 Generated with Claude Code

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
RyanTheTide merged commit 5884327 into integration/aurora Nov 7, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the se/stockholm-kunit branch November 7, 2026 13:41
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
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.

1 participant