Skip to content

Conversation

@vdadhani
Copy link

@vdadhani vdadhani commented Dec 9, 2025

On Lemans and Monaco EVK platforms the boot-from-SD-card feature requires an IO expander to be enabled at an early stage to detect the SD card. This IO expander is connected over I2C.

Currently the I2C driver is built as a loadable module which resides on the SD card along with other modules. This creates a circular dependency where to detect the SD card the IO expander must be initialized the IO expander depends on the I2C driver and the I2C driver is on the SD card which cannot be accessed until detection succeeds.

To break this dependency enable I2C_QCOM_GENI as built-in so that the driver is available during early boot.

On Lemans and Monaco EVK platforms the boot-from-SD-card feature requires
an IO expander to be enabled at an early stage to detect the SD card. This
IO expander is connected over I2C.

Currently the I2C driver is built as a loadable module which resides on the
SD card along with other modules. This creates a circular dependency where
to detect the SD card the IO expander must be initialized the IO expander
depends on the I2C driver and the I2C driver is on the SD card which cannot
be accessed until detection succeeds.

To break this dependency enable I2C_QCOM_GENI as built-in so that the
driver is available during early boot.

Signed-off-by: Viken Dadhaniya <[email protected]>
Copy link
Contributor

@lumag lumag left a comment

Choose a reason for hiding this comment

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

Why do we need to support boot-from-SD?

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test run workflow

Test jobs for commit 61158a3

@test-reporting-app
Copy link

test-reporting-app bot commented Dec 9, 2025

Test Results

 14 files  ±0   28 suites  ±0   36m 28s ⏱️ +50s
 51 tests +1   51 ✅ +1  0 💤 ±0  0 ❌ ±0 
304 runs  ±0  304 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 61158a3. ± Comparison against base commit 65bdc36.

♻️ This comment has been updated with latest results.

@vdadhani
Copy link
Author

vdadhani commented Dec 9, 2025

It is a product requirement.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test run workflow

Test jobs for commit 61158a3

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Test run workflow

Test jobs for commit 61158a3

@vkraleti
Copy link
Contributor

@vdadhani Having an SD card slot is a board-level design decision, not a distribution choice. The purpose of qcom.cfg is to manage kernel configurations required by the distribution. In my opinion, the right place for this configuration would be:
https://github.com/qualcomm-linux/kernel/blob/qcom-next/arch/arm64/configs/qcom.config

Could you check if this configuration can be accepted there?

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