Skip to content

Disable SPD instantiation in I2C SMBUS driver#542

Open
aravindmani-1 wants to merge 4 commits intosonic-net:masterfrom
aravindmani-1:i2c_smbus_newflag
Open

Disable SPD instantiation in I2C SMBUS driver#542
aravindmani-1 wants to merge 4 commits intosonic-net:masterfrom
aravindmani-1:i2c_smbus_newflag

Conversation

@aravindmani-1
Copy link
Contributor

@aravindmani-1 aravindmani-1 commented Mar 10, 2026

Summary:
In some of the Dell switch platforms(Z9864F,Z9964F), the system EEPROM resides at address 0x50 on the DDR SMBUS.
The automatic SPD scanning grabs this address with the ee1004 driver before the platform driver can claim it with the at24 driver and it breaks system EEPROM access.

Added a module parameter 'disable_spd' (default 0) in i2c-smbus driver.
By default, it allows automatic SPD EEPROM instantiation.
When disable_spd flag is set to 1,then the automatic SPD EEPROM instantiation will be disabled.

Signed-off-by: Aravind Mani aravind.m1@dell.com

@aravindmani-1 aravindmani-1 requested a review from a team as a code owner March 10, 2026 09:18
@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: aravindmani-1 <aravind_m1@dell.com>
Signed-off-by: aravindmani-1 <aravind_m1@dell.com>
Signed-off-by: aravindmani-1 <aravind_m1@dell.com>
From: Aravind Mani <aravind.m1@dell.com>
Date: Mon, 3 Mar 2026 00:00:00 +0000
Subject: [PATCH] i2c: smbus: Add disable_spd module parameter to skip
automatic SPD EEPROM instantiation
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not break the commit title.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Addressed now.

Usage:
modprobe i2c-smbus disable_spd=1
or: echo "options i2c-smbus disable_spd=1" > /etc/modprobe.d/i2c-smbus.conf

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for the great commit message. Did you send it upstream for review, so we do not have to carry this forever.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have sent the patch to Linux community for review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please share the URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

URL:
https://lkml.org/lkml/2026/3/11/782

Please note that we have sent the recently only to linux community and waiting for review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome. Thank you for working upstream. From a cursory look, I noted some formal errors. You should use git send-email to properly send the patch, send it also directly to the maintainers ./scripts/get_maintainer.pl <your patch file> and use 75 characters per line for the commit message scripts/checkpatch.pl <your patch file> (I think). Feel free to Cc me on the patch iteration (git format-patch -v 2).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: aravindmani-1 <aravind_m1@dell.com>
@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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