From: open.sudheer@gmail.com (sudheer.v)
To: linux-arm-kernel@lists.infradead.org
Subject: [[PATCH] 8/9] DMA-UART-Driver-for-AST2500
Date: Fri, 26 Oct 2018 12:37:28 +0530 [thread overview]
Message-ID: <20181026070726.GA30088@Pilot130> (raw)
In-Reply-To: <20181020162624.GC2894@vkoul-mobl>
On Sat, Oct 20, 2018 at 09:56:24PM +0530, Vinod wrote:
> On 19-10-18, 12:41, sudheer.v wrote:
> > On Fri, Oct 19, 2018 at 10:32:24AM +1100, Benjamin Herrenschmidt wrote:
> > > On Thu, 2018-10-18 at 15:25 +0530, Vinod wrote:
> > > >
> > > > > It's not a dmaengine driver. It's a serial UART driver that happens to
> > > > > use a dedicated DMA engine.
> > > >
> > > > Then I see no reason for it to use dmaengine APIs. The framework allows
> > > > people to share a controller for many clients, but if you have dedicated
> > > > one then you may use it directly
> > >
> > > Well... the engine is shared by a few UARTs, they have dedicated rings
> > > but there's a common set of regs for interrupt handling etc.
> > >
> > > That said, I still think it could be contained within a UART driver,
> > > there's little benefit in adding the framework overhead, esp since
> > > these are really weak cores, any overhead will be felt.
> > >
> > > Ben.
> > >
> > > > > It's unclear whether it should be split into two drivers, or just have
> > > > > the serial driver directly use the dma engine since that engine is
> > > > > dedicated in HW to only work on those UARTs and nothing else...
> > > > >
> > > > > Cheers,
> > > > > Ben.
> >
> > Initially we wanted to have a single driver,
> > however we had an informal discussion with one of the maintainer
> > and based on the feedback, followed the Linux DMA and UART architecture.
> >
> > If this seperate DMA-engine driver adds more overhead than benifit,
> > we will merge them into a single UART driver and resubmitt the patches.
> > Vinod,
> > can this dma-controller driver sit under dma subsystem?.
> > or better to move it under UART framework.
>
>
> My advise would be to see what you can do with the DMA IP block. If this
> can/would be used in different places then it would make sense to do a
> dmaengine driver and solve the problem for everyone.
>
> If this is always going to be hidden behind serial then maybe it makes
> sense to be inside serial driver and not use dmaengine APIs
>
> If you decide to prefer the former case, please move it to dmaengine and
> resubmit :)
>
> HTH
> --
> ~Vinod
Hi All,
As the DMA engine is dedicated only to UART,we have decided
to rewrite the driver so that no code will come under
drivers/dma.
I will resubmitt the patches after merging dma controller
code and uart driver code.
Regards
-sudheer
next prev parent reply other threads:[~2018-10-26 7:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 4:10 [[PATCH] 0/9] *** DMA support for UART in ASPEED's AST2500 *** sudheer.v
2018-10-17 4:10 ` [[PATCH] 1/9] DT-changes-for-DMA-UART-of-AST2500 sudheer.v
2018-10-17 4:10 ` [[PATCH] 2/9] Defconfig-changes-for-DMA-UART-of-AST2500 sudheer.v
2018-10-17 4:11 ` [[PATCH] 4/9] Documentation-DTbindings-DMA-controller-of-AST2500 sudheer.v
2018-10-17 4:11 ` [[PATCH] 8/9] DMA-UART-Driver-for-AST2500 sudheer.v
2018-10-17 6:05 ` Vinod
2018-10-17 8:56 ` Benjamin Herrenschmidt
2018-10-18 9:55 ` Vinod
2018-10-18 23:32 ` Benjamin Herrenschmidt
2018-10-19 7:11 ` sudheer.v
2018-10-20 16:26 ` Vinod
2018-10-26 7:07 ` sudheer.v [this message]
2018-10-25 14:48 ` [[PATCH] 0/9] *** DMA support for UART in ASPEED's AST2500 *** Rob Herring
2018-10-26 7:23 ` sudheer.v
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181026070726.GA30088@Pilot130 \
--to=open.sudheer@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).