[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cc016eff-8897-0d08-b68e-e10eeefdb73c@loongson.cn>
Date: Fri, 13 Mar 2020 17:03:16 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Christoph Hellwig <hch@...radead.org>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Huacai Chen <chenhc@...ote.com>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Jens Axboe <axboe@...nel.dk>, linux-mips@...r.kernel.org,
linux-pci@...r.kernel.org, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org, Xuefeng Li <lixuefeng@...ngson.cn>
Subject: Re: [PATCH 4/6] MIPS: Loongson: Add DMA support for 7A1000
On 03/13/2020 04:24 PM, Christoph Hellwig wrote:
> On Mon, Mar 09, 2020 at 04:23:24PM +0800, Tiezhu Yang wrote:
>> Implement __phys_to_dma() and __dma_to_phys() according to the
>> node id offset in 7A1000 DMA route config register.
> Can you just switch Loongson over to use the dma_pfn_offset field in
> struct device? I'd love to kill the __phys_to_dma and __dma_to_phys
> hooks wherever possible.
Hi Christoph,
Thanks for your suggestion, I will refactor the code.
Thanks,
Tiezhu Yang
Powered by blists - more mailing lists