Skip to content

Conversation

@danmois
Copy link
Contributor

@danmois danmois commented Nov 13, 2025

PR Description

Add DPD functionality to the Madura driver.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • [] I have updated the documentation outside this repo accordingly
  • [] I have provided links for the relevant upstream lore

Add Orx to Tx mapping setting functionality.

Signed-off-by: George Mois <[email protected]>
Add external path delay initial calibration selection.

Signed-off-by: George Mois <[email protected]>
Add an IIO attribute that allows changing the calibration mask.

Signed-off-by: George Mois <[email protected]>
Copy link
Contributor

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looked into the ci output to check sanity. the two new warnings seems to be valid, I highlighted with comments.
There are extra warnings outside touched lines, that would be nice to progressively resolve.

In the files changed tab, action summary page, and log file, you can see the ci warnings


ret = sysfs_create_bin_file(&indio_dev->dev.kobj, &phy->bin);
if (ret < 0)
return ret;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From ci: shouldn't this go to the error de-initialization path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it should, thank you! I will update the function.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also do not use the above function. Directly accessing a fundamental thing as kobjects from a driver is a very strong sign of something very odd. Use the device_create_bin_file() wrapper.


ret = sscanf(line, "%hhu %hhu %hhu %hhu %s", &i, &j, &k, &lut, coef);
if (ret != 5)
return ret;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From ci: this is never a error code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I wonder if an error message should be displayed before returning -EINVAL?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely yes 😉

Add a bin_attribute for loading the data structure to hold Tx DPD
Model initialization parameters, without floats.

Signed-off-by: George Mois <[email protected]>
Add IIO attribute for selecting the target Tx channel for DPD.

Signed-off-by: George Mois <[email protected]>
Add IIO attribute for resetting DPD.

Signed-off-by: George Mois <[email protected]>
Add DEBUGF attribut for getting DPD status on each of the 4 Tx
channels.

Signed-off-by: George Mois <[email protected]>
Add tracking configuration settings.

Signed-off-by: George Mois <[email protected]>
Add IIO attribute for enabling DPD.

Signed-off-by: George Mois <[email protected]>
@danmois
Copy link
Contributor Author

danmois commented Nov 13, 2025

V2

  • fix error de-initialization path
  • display message and return correct value in case of error in adrv9025_parse_dpd_coef
  • use device_create_bin_file() instead of sysfs_create_bin_file()

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.

4 participants