On Tue, 21 Jun 2011, Per Forlin wrote:
> On 21 June 2011 21:18, Nicolas Pitre wrote:
> > On Tue, 21 Jun 2011, Per Forlin wrote:
> >
> >> On 21 June 2011 07:41, Kishore Kadiyala
> >> wrote:
> >> >
> >> >
> >> >> +
> >> >> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct
> >> >> mmc
On 21 June 2011 21:18, Nicolas Pitre wrote:
> On Tue, 21 Jun 2011, Per Forlin wrote:
>
>> On 21 June 2011 07:41, Kishore Kadiyala wrote:
>> >
>> >
>> >> +
>> >> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request
>> >> *mrq,
>> >> + bool is_firs
On Tue, 21 Jun 2011, Per Forlin wrote:
> On 21 June 2011 07:41, Kishore Kadiyala wrote:
> >
> >
> >> +
> >> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request
> >> *mrq,
> >> + bool is_first_req)
> >
> > I don't see the usage of "is_first_req"
Hi Per,
On Tue, Jun 21, 2011 at 12:21 PM, Per Forlin wrote:
> On 21 June 2011 07:41, Kishore Kadiyala wrote:
>>
>>
>>> +
>>> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request
>>> *mrq,
>>> + bool is_first_req)
>>
>> I don't see the usage of "
On 21 June 2011 07:41, Kishore Kadiyala wrote:
>
>
>> +
>> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request
>> *mrq,
>> + bool is_first_req)
>
> I don't see the usage of "is_first_req" below.
> Is it required?
>
It is not required. It is only
> +
> +static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq,
> + bool is_first_req)
I don't see the usage of "is_first_req" below.
Is it required?
> +{
> + struct omap_hsmmc_host *host = mmc_priv(mmc);
> +
> + if (mrq->data->host_
pre_req() runs dma_map_sg(), post_req() runs dma_unmap_sg.
If not calling pre_req() before omap_hsmmc_request()
dma_map_sg will be issued before starting the transfer.
It is optional to use pre_req(). If issuing pre_req()
post_req() must be to be called as well.
Signed-off-by: Per Forlin
---
dri