Skip to content

[tmp]: test ci-sarif on staging/adrv903x_agc - #3600

Draft
gastmaier wants to merge 3 commits into
mainfrom
test/ci-sarif-adrv903x_agc
Draft

gastmaier wants to merge 3 commits into
mainfrom
test/ci-sarif-adrv903x_agc

Conversation

@gastmaier

@gastmaier gastmaier commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Test PR for the ci-sarif CI branch (GCC/Clang analyzer results uploaded as SARIF to code scanning).

Content: #3592 (staging/adrv903x_agc) plus one dummy commit pointing top-level.yml at @ci-sarif and granting security-events: write to the checks jobs.

Add per-channel AGC configuration support via debugfs,
following the shadow-struct + commit pattern.

Each RX channel exposes ~35 AGC parameters as individual
debugfs files (u8/u16/u32) plus a summary file
(rxN_agc_config) that seeds the shadow on read and
commits to hardware on write.

The AGC shadow is stored per-channel in the phy struct
(phy->rx_agc[]) to support multiple device instances.

Clamp four fields before commit where firmware defaults
fall outside the API's own documented valid ranges:
  - adcOvldLowThresh: max 8
  - adcOvldLowerThreshPeakExceededCnt: min 2
  - adcOvldUpperThreshPeakExceededCnt: min 2
  - agcPeakWaitTime: max 3

Make adrv903x_debugfs.o and adrv903x_agc.o conditional on
CONFIG_DEBUG_FS to avoid compiling dead code when debugfs
is disabled.

Signed-off-by: George Mois <george.mois@analog.com>
@gastmaier
gastmaier force-pushed the test/ci-sarif-adrv903x_agc branch from 734c28e to 2008cc0 Compare October 12, 2026 13:57
@gastmaier gastmaier changed the title DO NOT MERGE: test ci-sarif on staging/adrv903x_agc [tmp]: test ci-sarif on staging/adrv903x_agc Oct 12, 2026
@gastmaier
gastmaier force-pushed the test/ci-sarif-adrv903x_agc branch 3 times, most recently from 1dd4e3e to 768c73e Compare October 12, 2026 14:19
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@gastmaier
gastmaier force-pushed the test/ci-sarif-adrv903x_agc branch 2 times, most recently from 3a97d05 to 6a99a25 Compare October 12, 2026 14:25
Test analogdevicesinc/linux ci-sarif with SARIF upload on top of #3592.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@gastmaier
gastmaier force-pushed the test/ci-sarif-adrv903x_agc branch from 6a99a25 to ee94d84 Compare October 12, 2026 14:27
if (count > PAGE_SIZE)
agc = NULL;

agc->rxChannelMask = ADI_ADRV903X_RX0 << priv->idx;
Test SARIF detection on touched lines.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@gastmaier
gastmaier force-pushed the test/ci-sarif-adrv903x_agc branch from 0d7ecbe to bba359c Compare October 13, 2026 07:06
if (count > PAGE_SIZE)
agc = NULL;

agc->rxChannelMask = ADI_ADRV903X_RX0 << priv->idx;

This branch has not been deployed

No deployments
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.

3 participants