mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
update i2c-dev driver and sdmmc driver
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
|
||||
#define I2C_DEV_SCL_RATE 100 * 1000
|
||||
|
||||
struct completion i2c_dev_complete;
|
||||
struct completion i2c_dev_complete = {
|
||||
.done = -1;
|
||||
};
|
||||
struct i2c_dump_info g_dump;
|
||||
|
||||
static void i2c_dev_get_list(struct i2c_list_info *list)
|
||||
@@ -99,7 +101,8 @@ void i2c_dev_dump_stop(struct i2c_adapter *adap, struct i2c_msg *msgs, int num,
|
||||
g_dump.get_value[j] = msgs[i].buf[j];
|
||||
}
|
||||
}
|
||||
complete(&i2c_dev_complete);
|
||||
if(i2c_dev_complete.done == 0)
|
||||
complete(&i2c_dev_complete);
|
||||
return;
|
||||
}
|
||||
EXPORT_SYMBOL(i2c_dev_dump_stop);
|
||||
|
||||
@@ -279,6 +279,7 @@ void mmc_remove_card(struct mmc_card *card)
|
||||
#endif
|
||||
|
||||
if (mmc_card_present(card)) {
|
||||
mmc_card_clr_present(card);
|
||||
if (mmc_host_is_spi(card->host)) {
|
||||
printk(KERN_INFO "%s: SPI card removed\n",
|
||||
mmc_hostname(card->host));
|
||||
|
||||
@@ -1392,6 +1392,7 @@ static int rk29_sdmmc_resume(struct platform_device *pdev)
|
||||
host);
|
||||
if(ret < 0)
|
||||
dev_err(host->dev, "gpio request_irq error\n");
|
||||
mmc_detect_change(host->mmc, 0);
|
||||
ret = mmc_resume_host(host->mmc);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user