| Message ID | 20261105-upstream_partconf_fixes-v1-2-6abda284aacf@foss.st.com |
|---|---|
| State | Superseded |
| Delegated to: | Peng Fan |
| Headers | show |
| Series | mmc: mmc_set_part_conf() fixes | expand |
On 05-11-2026 14:33, Patrice Chotard wrote: > From: Patrick Delaunay <patrick.delaunay@foss.st.com> > > Export the function mmc_set_capacity to be used after change of > hardware partition manually requested by 'mmc partconf'. > > Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> > Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> > --- > drivers/mmc/mmc.c | 2 +- > drivers/mmc/mmc_private.h | 9 +++++++++ > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > index 4835ce0c64b..f9110c365fb 100644 > --- a/drivers/mmc/mmc.c > +++ b/drivers/mmc/mmc.c > @@ -1096,7 +1096,7 @@ static int mmc_get_capabilities(struct mmc *mmc) > } > #endif > > -static int mmc_set_capacity(struct mmc *mmc, int part_num) > +int mmc_set_capacity(struct mmc *mmc, int part_num) > { > switch (part_num) { > case 0: > diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h > index 24e68ceb5e6..a0d4dab9af9 100644 > --- a/drivers/mmc/mmc_private.h > +++ b/drivers/mmc/mmc_private.h > @@ -116,6 +116,15 @@ void mmc_list_init(void); > */ > void mmc_list_add(struct mmc *mmc); > > +/** > + * mmc_set_capacity() - Update capacity for a new MMC hardware partition > + * > + * @mmc: MMC device > + * @part_num: Hardware partition number > + * @return 0 if OK, -ve on error The neighbouring entries in the same header use Return:, refer mmc_switch. The @return line is rendered as part of the @part_num description and no Return section is produced. > + */ > +int mmc_set_capacity(struct mmc *mmc, int part_num); > + > /** > * mmc_switch_part() - Switch to a new MMC hardware partition > * >
On 11/9/26 13:18, Kathpalia, Tanmay wrote: > > On 05-11-2026 14:33, Patrice Chotard wrote: >> From: Patrick Delaunay <patrick.delaunay@foss.st.com> >> >> Export the function mmc_set_capacity to be used after change of >> hardware partition manually requested by 'mmc partconf'. >> >> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> >> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> >> --- >> drivers/mmc/mmc.c | 2 +- >> drivers/mmc/mmc_private.h | 9 +++++++++ >> 2 files changed, 10 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c >> index 4835ce0c64b..f9110c365fb 100644 >> --- a/drivers/mmc/mmc.c >> +++ b/drivers/mmc/mmc.c >> @@ -1096,7 +1096,7 @@ static int mmc_get_capabilities(struct mmc *mmc) >> } >> #endif >> -static int mmc_set_capacity(struct mmc *mmc, int part_num) >> +int mmc_set_capacity(struct mmc *mmc, int part_num) >> { >> switch (part_num) { >> case 0: >> diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h >> index 24e68ceb5e6..a0d4dab9af9 100644 >> --- a/drivers/mmc/mmc_private.h >> +++ b/drivers/mmc/mmc_private.h >> @@ -116,6 +116,15 @@ void mmc_list_init(void); >> */ >> void mmc_list_add(struct mmc *mmc); >> +/** >> + * mmc_set_capacity() - Update capacity for a new MMC hardware partition >> + * >> + * @mmc: MMC device >> + * @part_num: Hardware partition number >> + * @return 0 if OK, -ve on error > > The neighbouring entries in the same header use Return:, refer > mmc_switch. The @return line is rendered as part of the @part_num > description and no Return section is produced. Hi Tanmay Will be fixed Thanks Patrice > >> + */ >> +int mmc_set_capacity(struct mmc *mmc, int part_num); >> + >> /** >> * mmc_switch_part() - Switch to a new MMC hardware partition >> * >>
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4835ce0c64b..f9110c365fb 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1096,7 +1096,7 @@ static int mmc_get_capabilities(struct mmc *mmc) } #endif -static int mmc_set_capacity(struct mmc *mmc, int part_num) +int mmc_set_capacity(struct mmc *mmc, int part_num) { switch (part_num) { case 0: diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h index 24e68ceb5e6..a0d4dab9af9 100644 --- a/drivers/mmc/mmc_private.h +++ b/drivers/mmc/mmc_private.h @@ -116,6 +116,15 @@ void mmc_list_init(void); */ void mmc_list_add(struct mmc *mmc); +/** + * mmc_set_capacity() - Update capacity for a new MMC hardware partition + * + * @mmc: MMC device + * @part_num: Hardware partition number + * @return 0 if OK, -ve on error + */ +int mmc_set_capacity(struct mmc *mmc, int part_num); + /** * mmc_switch_part() - Switch to a new MMC hardware partition *