hal: microchip: sam: add the three SPI aliases the D5x/E5x pack lacks #75
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 280 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #75"
general
weight: 0.35
Madhan-Kurukondar
Moving the SPI driver onto the generic SERCOM_SPI_ names needs three aliases the D5x/E5x pack never defined, and this is the one family whose Kconfig compiles the CTRLC line at all.
Three names missing from forty
sercom_samd5xe5x.hmaps the genericSERCOM_SPI_names onto this pack'sSERCOM_SPIM_ones, some forty of them, and three are absent:CTRLA_SWRST,SYNCBUSY_SWRSTandCTRLC_ICSPACE.Nothing noticed, because
spi_mchp_sercom_g1.creached past the mapping andused the
SPIMspelling directly in exactly those four places. That directuse is what stops the driver building on PIC32CM SG/GC, which has one
SPIblock and no
SPIMprefix at all.The family where the third name matters
SPI_MCHP_INTER_CHARACTER_SPACEisdepends on, so theSOC_FAMILY_MICROCHIP_SAM_D5X_E5X
CTRLCwrite is compiled here andnowhere else. On PIC32CM JH the same three-name gap exists for the two
SWRSTnames only: that pack has noSPIMCTRLCregister at all, and theKconfig can never select it, so aliasing
CTRLC_ICSPACEthere would be adefinition pointing at a name that does not exist.
sam_e54_xprois the in-tree board that carries this pack and amicrochip,sercom-g1-spinode.Scope
Six lines in one header, all of the same one-line form as the forty already
in it. Nothing that compiles today changes meaning: on this pack each new
generic name resolves to the
SPIMdefinition the driver used before.Testing
samples/hello_worldonsam_e54_xprowithCONFIG_SPI=yandCONFIG_SPI_MCHP_INTER_CHARACTER_SPACE=1, with the Zephyr generic-nameschange in the tree.
spi_mchp_sercom_g1.c.objis built, and the generatedautoconf.hcarriesCONFIG_SPI_MCHP_INTER_CHARACTER_SPACE 1, so theCTRLCline inside the#ifdefis compiled rather than skipped - which isthe only way this pack's third alias gets exercised at all.
No D5x/E5x board is on this bench, so L3 is
UNVERIFIED.Verification
Built in the project's dev container, whose west workspace applies this
change as a module patch. This is one of the consumer-side pairs of
zephyrproject-rtos/zephyr'sspi-mchp-sercom-g1-generic-names; the otheris
sercom-jh-spi-aliases, and all three have to land in the same window.