Skip to content

Fix for i2c_designware shutdown #497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

byu343
Copy link
Contributor

@byu343 byu343 commented Jul 16, 2025

Designware I2C driver was failing to probe the I2C controller after we kexec to another kernel on some Arista platforms:
i2c_designware AMDI0010:00: Unknown Synopsys component type: 0xffffffff

Designware I2C driver was failing to probe the I2C controller after we
kexec to another kernel on some Arista platforms:
i2c_designware AMDI0010:00: Unknown Synopsys component type: 0xffffffff
@byu343 byu343 requested a review from a team as a code owner July 16, 2025 21:58
@mssonicbld
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS StormLiangMS requested a review from saiarcot895 July 17, 2025 02:06
StormLiangMS
StormLiangMS previously approved these changes Jul 17, 2025
Copy link

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

It’d be really appreciated to send this upstream.

@@ -0,0 +1,49 @@
From: Justin Oliver <[email protected]>
Date: 2022-12-12 17:42:20 +0000
Subject: Designware I2C driver fails to probe device after kexec
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make it a statement and follow the Linux kernel prefix style for the subsystem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,49 @@
From: Justin Oliver <[email protected]>
Date: 2022-12-12 17:42:20 +0000
Copy link
Contributor

Choose a reason for hiding this comment

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

Has this been sent upstream (especially for review)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet ,but we could try submitting a patch for review to the Linux community.

Copy link
Contributor

Choose a reason for hiding this comment

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

That’d be great. Please give a timeline. (It shouldn’t take longer than five minutes.)

Date: 2022-12-12 17:42:20 +0000
Subject: Designware I2C driver fails to probe device after kexec

The Designware I2C driver sometimes fails to probe the I2C controller after
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the error log message from the merge/pull request description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

defines a `shutdown` procedure for the Designware I2C platform driver. This
will gracefully bring down the I2C controller, allowing the driver to
successfully initialize the device with the new kernel.

Copy link
Contributor

Choose a reason for hiding this comment

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

Missing Signed-off-by line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@lguohan
Copy link
Contributor

lguohan commented Jul 18, 2025

@byu343 , can you address comments?

@mssonicbld
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

Upstreaming this would be really paramount to avoid maintenance burden.

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.

5 participants