RE: [PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response

2019-09-04 Thread Avri Altman
> On Wed, 2019-09-04 at 14:11 +, Avri Altman wrote: > > > static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct > > > mmc_blk_data *md, > > >struct mmc_blk_ioc_data *idata) > > > { > > > @@ -623,6 +675,9 @@ static int __mmc_blk_ioctl_cmd(struct > mmc_c

Re: [PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response

2019-09-04 Thread Chaotian Jing
On Wed, 2019-09-04 at 14:11 +, Avri Altman wrote: > > static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct > > mmc_blk_data *md, > >struct mmc_blk_ioc_data *idata) > > { > > @@ -623,6 +675,9 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card > > *card, s

RE: [PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response

2019-09-04 Thread Avri Altman
> static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct > mmc_blk_data *md, >struct mmc_blk_ioc_data *idata) > { > @@ -623,6 +675,9 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card > *card, struct mmc_blk_data *md, >

[PATCH 2/2] mmc: block: add CMD13 polling for ioctl() cmd with R1B response

2019-09-04 Thread Chaotian Jing
currently there is no CMD13 polling and other code to wait card change to transfer state after R1B command completed. and this polling operation cannot do in user space, because other request may coming before the CMD13 from user space. Signed-off-by: Chaotian Jing --- drivers/mmc/core/block.c |