Ticket #2007 (new defect)

Opened 9 years ago

Last modified 9 years ago

[kernel] SD voltage higher after resume

Reported by: jan Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version:
Severity: normal Keywords: glamo-mci SD power voltage
Cc: jan.random@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

SD card voltage is set to 2700 mV (vdd 15) while booting, after suspend and resume it is at 3200 mV (vdd 20) again.

booting (with sd_max_clk set to 12500000)

SD power -> 3200mV
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
mmc_set_power(power_mode=2, vdd=15
SD power -> 2700mV
wake enabled for irq 53
pcf50633: dev (254:0)
pcf50633 0-0073: rtc core: registered pcf50633 as rtc0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 12500kHz div=3 (req: 12500kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 12500kHz div=3 (req: 12500kHz). Bus width=2
mmc0: new high speed SD card at address 07bd

suspend -> resume

kernel: mmc_set_power(power_mode=1, vdd=20
kernel: SD power -> 3200mV
kernel: glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus width=0
kernel: glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
last message repeated 4 times
kernel: glamo-mci glamo-mci.0: powered (vdd = 20) clk: 12500kHz div=3 (req: 12500kHz). Bus width=0
kernel: glamo-mci glamo-mci.0: powered (vdd = 20) clk: 12500kHz div=3 (req: 12500kHz). Bus width=2

Linux version 2.6.24 (build@barbie) (gcc version 4.1.2) #1 PREEMPT Mon Sep 15 11:03:56 CST 2008

testing-om-gta02-20080915.uImage.bin kernel running on Debian system installed on a Kingston C02G 2GB card.

Change History

comment:1 Changed 9 years ago by andy

Hm seems to be a bug in Linux MCI stuff. In each line the (vdd= xx) line represents the voltage, we put out 3.2V for 20 and 2.7V for 15. On resume, the MCI layer is just telling use to use 20 (3.2V) and that's what we are doing.

Note: See TracTickets for help on using tickets.