<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10px"><br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1476799787673_3890" class="yahoo_quoted"><div id="yui_3_16_0_ym19_1_1476799787673_3889" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10px;"><div id="yui_3_16_0_ym19_1_1476799787673_3888" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"><font size="2">Hi,</font><div id="yui_3_16_0_ym19_1_1476799787673_3895" class="y_msg_container"><div id="yiv4663956645"><div id="yui_3_16_0_ym19_1_1476799787673_3894"><div id="yui_3_16_0_ym19_1_1476799787673_3893" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10px;"><div id="yiv4663956645"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4913"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4912" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10px;"><div id="yiv4663956645"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_2916"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_2915" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10px;"><div id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10377" dir="ltr"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3001"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"> I am working on integrating TPS695190 regulator code into kernel version 4.4.16. The regulator powers MMC card slot using Designware MMC controller. I have declared the necessary code in my board.c file. The MMC card slot is powered by ldo8 supply declared as</font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3894"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3893"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">-----------------------------------------------------------------------------Code---------------------------------------------------------------------------------<br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3435"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div dir="ltr" id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3480"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">static struct regulator_consumer_supply opv5xc_ldo8_supply[] = {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3537"> REGULATOR_SUPPLY("sd_vdd", NULL),<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3538">};<br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3407"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div dir="ltr" id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3372"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">static struct regulator_init_data opv5xc_ldo8 = {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3395"> .constraints = {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3396"> .min_uV = 1000000,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3397"> .max_uV = 3300000,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3398"> .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3399"> REGULATOR_CHANGE_STATUS),<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3400"> .boot_on = 1,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3401"> },<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3402"> .num_consumer_supplies = ARRAY_SIZE(opv5xc_ldo8_supply),<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3403"> .consumer_supplies = opv5xc_ldo8_supply,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3404">};</font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3922" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3956" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">static struct tps65910_board tps65910_pdata = {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3987"> .tps65910_pmic_init_data[TPS65911_REG_LDO8] = &opv5xc_ldo8,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4000">};</font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4060" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3664" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">static struct i2c_board_info __initdata opv5xc_i2c1_devs[] = {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4053"> {<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4054"> I2C_BOARD_INFO ("tps65911", TPS65910_I2C_ID1),<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4055"> .platform_data = &tps65910_pdata,<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4056"> },<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4057">};<br id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_4058">-----------------------------------------------------------------------------------------------------------------------------------------------------------------------<br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3269"><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_5106" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">When I call regulator_get struct regulator *sd_vdd = regulator_get(NULL, "sd_vdd"); function from the Designware MMC driver code function the kernel panics.</font></div></div><div dir="ltr" id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3681"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">I have attached the log file for reference. Can somebody please let me know what I am doing wrong here?</font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3705" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2"><br></font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3707" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">Regards,</font></div><div id="yiv4663956645yui_3_16_0_ym19_1_1476798256231_3706" dir="ltr"><font id="yiv4663956645yui_3_16_0_ym19_1_1476797837133_10376" size="2">Amit.<br></font></div></div></div></div></div></div></div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>