Re: [PATCH] mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host

2019-05-06 Thread Ulf Hansson
On Thu, 2 May 2019 at 07:59, Kamlesh Gurudasani wrote: > > The driver for Alcor Micro AU6601 and AU6621 controllers uses a pointer to > get from the private alcor_sdmmc_host structure to the generic mmc_host > structure. However the latter is always immediately preceding the former in > memory, so

Re: [PATCH] mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host

2019-05-01 Thread Oleksij Rempel
CC: Daniel Drake Am 02.05.19 um 07:58 schrieb Kamlesh Gurudasani: > The driver for Alcor Micro AU6601 and AU6621 controllers uses a pointer to > get from the private alcor_sdmmc_host structure to the generic mmc_host > structure. However the latter is always immediately preceding the former in >

[PATCH] mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host

2019-05-01 Thread Kamlesh Gurudasani
The driver for Alcor Micro AU6601 and AU6621 controllers uses a pointer to get from the private alcor_sdmmc_host structure to the generic mmc_host structure. However the latter is always immediately preceding the former in memory, so compute its address with a subtraction (which is cheaper than a d