Looks good to me, just few minor comments below. * Balaji T K <balajitk@xxxxxx> [131219 04:40]: > --- /dev/null > +++ b/drivers/regulator/pbias-regulator.c > @@ -0,0 +1,255 @@ > +/* > + * pbias-regulator.c > + * > + * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ > + * Author: Balaji T K <balajitk@xxxxxx> Maybe use 2013 here instead? > +static int pbias_regulator_enable(struct regulator_dev *rdev) > +{ > + struct pbias_regulator_data *data = rdev_get_drvdata(rdev); > + const struct pbias_reg_info *info = data->info; > + int ret; > + > + ret = regmap_update_bits(data->syscon, data->pbias_reg, > + info->enable_mask, info->enable); > + > + return ret; > +} Do we need need to check the values after enable here? AFAIK setting the PBIAS voltage change can also fail and that's probably why it has also the interrupt available. > +static const struct pbias_reg_info pbias_mmc_omap3 = { > + .enable = BIT(1), > + .enable_mask = BIT(1), > + .vmode = BIT(0), > + .name = "pbias_mmc_omap3" > +}; > + > +static const struct pbias_reg_info pbias_sim_omap3 = { > + .enable = BIT(9), > + .enable_mask = BIT(9), > + .vmode = BIT(8), > + .name = "pbias_sim_omap3" > +}; > + > +static const struct pbias_reg_info pbias_mmc_omap4 = { > + .enable = BIT(26) | BIT(22), > + .enable_mask = BIT(26) | BIT(25) | BIT(22), > + .vmode = BIT(21), > + .name = "pbias_mmc_omap4" > +}; > + > +static const struct pbias_reg_info pbias_mmc_omap5 = { > + .enable = BIT(27) | BIT(26), > + .enable_mask = BIT(27) | BIT(25) | BIT(26), > + .vmode = BIT(21), > + .name = "pbias_mmc_omap5" > +}; > > +static struct of_regulator_match pbias_matches[] = { > + { .name = "pbias_mmc_omap3", .driver_data = (void *)&pbias_mmc_omap3}, > + { .name = "pbias_sim_omap3", .driver_data = (void *)&pbias_sim_omap3}, > + { .name = "pbias_mmc_omap4", .driver_data = (void *)&pbias_mmc_omap4}, > + { .name = "pbias_mmc_omap5", .driver_data = (void *)&pbias_mmc_omap5}, > +}; We probably need also pbias_mmc_omap2430 as that regiter mapping is separate from omap3? Other than that, good to see this finally happen. This should allow us to get rid of most of the platform data callbacks for omap_hsmmc.c driver. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html