Hi Simon,

On 05/19/2019 12:08 AM, Simon Glass wrote:
> Hi Christoph,
>
> On Tue, 7 May 2019 at 03:05, Christoph Muellner
> <christoph.muell...@theobroma-systems.com> wrote:
>> Currently addr_aligned() performs an alignment and a length check
>> to validate the DMA address. However, some machines have stricter
>> restrictions of DMA-able addresses.
>>
>> This patch adds a call to mach_addr_is_dmaable() to honor this
>> machine specific restrictions.
>>
>> Signed-off-by: Christoph Muellner <christoph.muell...@theobroma-systems.com>
>> ---
>>
>>  common/bouncebuf.c | 6 ++++++
>>  1 file changed, 6 insertions(+)
> I feel like this should be handled with DM. Can we add a new method to
> the DMA uclass to check an address? If not provided by the DMA driver,
> we can assume the address is OK.

The DMA in MMC controller which is not stand alone, do not using the
driver of DMA uclass, so I'm afraid this is not able to using DMA uclass
for this address check.

Thanks,
- Kever
>
> Regards,
> Simon
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot



_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to