armbian-build/patch/kernel/rockchip-default/191_driver_mmc_adjustment.patch
Tony fafd26db7e
Rockchip default merge (#1026)
* Initial commit, cleanup of Rockchip default

* clean up patches:
- 100_DTS_Tinker_opp_LED was splitted into 3 patches
	- 100_DTS_opp for opp (adjusted to RKs 3 point description of opp Voltage)
	- 110_DTS_8723bs for the wifi driver
		-rename of 270-dts-tinker-bluetooth.patch -> 111_DTS_disable_AP6212_bluetooth.patch to keep wifi-chip stuff together
	- 120_DTS_led1_heartbeat
- 190_dts_tinker_s_emmc was reworked and splitted
	- gpiomem node was removed and has its own patch (260_DTS_gpiomem_node)
	- i2c1 node was removed and has its own patch 270_DTS_activate_i2c1
	- spi2 part was removed (defined in rk3288.dtsi), default CS will now be CS0 not 1 (no reason to change this)
	- vdd_log regulator is removed (the counterpart is missing anyway, and actually disabled in ASUS and Rockchips branch) --> own patch in case it gets activated
- 120_workaround_tinker_board_reboot -> 130_workaround_tinker_board_reboot to get some free numbers... ;)

* Renamed 190_DTS_tinker_s_emmc and splitted into DTS-Part and driver part (191_driver_mmc_adjustment)

* Boots, Still no hdmi console

* Rockchip Kernel config updates

Thanks to @Ntemis for the config options, they fixed the framebuffer

Still have runtime GPU errors related to power model
2018-06-28 22:11:59 -04:00

14 lines
573 B
Diff

diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c
index 2dcd570..d59fb21 100644
--- a/drivers/mmc/host/dw_mmc-rockchip.c
+++ b/drivers/mmc/host/dw_mmc-rockchip.c
@@ -295,7 +295,7 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev)
static void dw_mci_rockchip_platfm_shutdown(struct platform_device *pdev)
{
struct dw_mci *host = platform_get_drvdata(pdev);
- struct mmc_host *mmc = host->cur_slot->mmc;
+ struct mmc_host *mmc = host->slot[0]->mmc;
int ret;
if(of_machine_is_compatible("rockchip,rk3288-miniarm")){