[lkml]   [2017]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/6] mmc: tmio: move mmc_host_ops to struct tmio_mmc_host from static data
On Tue, Nov 07, 2017 at 05:09:30PM +0900, Masahiro Yamada wrote:
> Currently, tmio_mmc_ops is static data and tmio_mmc_host_probe()
> updates some hooks in the static data. This is a problem when
> two or more instances call tmio_mmc_host_probe() and each of them
> requests to use its own card_busy/start_signal_voltage_switch.
> We can borrow a solution from sdhci_alloc_host(). Copy the whole
> ops structure to host->mmc_host_ops, then override the hooks in
> malloc'ed data. Constify tmio_mmc_ops since it is a template ops
> used by default.
> Signed-off-by: Masahiro Yamada <>

Reviewed-by: Wolfram Sang <>
Tested-by: Wolfram Sang <>

[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2017-11-20 21:45    [W:0.167 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site