All of lore.kernel.org
 help / color / mirror / Atom feed
From: ben-linux@fluff.org (Ben Dooks)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] S3C: DMA: Add api driver for PL330
Date: Mon, 17 May 2010 09:25:06 +0100	[thread overview]
Message-ID: <20100517082506.GB6684@trinity.fluff.org> (raw)
In-Reply-To: <AANLkTin56HFIrKyXqEt7eUTxE3JYbdfLJRG2Q-r8UMQT@mail.gmail.com>

On Mon, May 17, 2010 at 12:55:33PM +0900, Jassi Brar wrote:
> On Mon, May 17, 2010 at 12:44 PM, Kyungmin Park <kmpark@infradead.org> wrote:
> > On Mon, May 17, 2010 at 10:35 AM, Jassi Brar <jassi.brar@samsung.com> wrote:
> >> Latest Samsung SoCs have one or more PL330 as their DMACs. This patch
> >> implements the S3C DMA API for PL330 core driver.
> >>
> >> The design has been kept as generic as possible while keeping effort to
> >> add support for new SoCs to the minimum possible level.
> >>
> >> Some of the salient features of this driver are:-
> >> ?o ?Automatic scheduling of client requests onto DMAC if more than
> >> ? ?one DMAC can reach the peripheral. Factors, such as current load
> >> ? ?and number of exclusive but inactive peripherals that are
> >> ? ?supported by the DMAC, are used to decide suitability of a DMAC
> >> ? ?for a particular client.
> >> ?o ?CIRCULAR buffer option is supported.
> >> ?o ?The driver scales transparently with the number of DMACs and total
> >> ? ?peripherals in the platform, since all peripherals are added to
> >> ? ?the peripheral pool and DMACs to the controller pool.
> >>
> >> For most conservative use of memory, smallest driver size and best
> >> performance, we don't employ legacy data structures of the S3C DMA API.
> >> That should not have any affect since those data structures are completely
> >> invisible to the DMA clients.
> >>
> >> Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
> >> ---
> >> ?arch/arm/plat-samsung/Kconfig ? ? ? ? ? ? ? ? ? ? ?| ? ?6 +
> >> ?arch/arm/plat-samsung/Makefile ? ? ? ? ? ? ? ? ? ? | ? ?2 +
> >> ?arch/arm/plat-samsung/include/plat/s3c-dma-pl330.h | ? 87 ++
> >> ?.../plat-samsung/include/plat/s3c-pl330-pdata.h ? ?| ? 34 +
> >> ?arch/arm/plat-samsung/s3c-pl330.c ? ? ? ? ? ? ? ? ?| 1229 ++++++++++++++++++++
> >> ?5 files changed, 1358 insertions(+), 0 deletions(-)
> >> ?create mode 100644 arch/arm/plat-samsung/include/plat/s3c-dma-pl330.h
> >> ?create mode 100644 arch/arm/plat-samsung/include/plat/s3c-pl330-pdata.h
> >> ?create mode 100644 arch/arm/plat-samsung/s3c-pl330.c
> >>
> >> diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
> >> index d552c65..78b8b89 100644
> >> --- a/arch/arm/plat-samsung/Kconfig
> >> +++ b/arch/arm/plat-samsung/Kconfig
> >> @@ -198,6 +198,12 @@ config S3C_DMA
> >> ? ? ? ?help
> >> ? ? ? ? ?Internal configuration for S3C DMA core
> >>
> >> +config S3C_PL330_DMA
> >> + ? ? ? bool
> >> + ? ? ? select PL330
> >> + ? ? ? help
> >> + ? ? ? ? S3C DMA API Driver for PL330 DMAC.
> >> +
> >
> > It's not functional comment. just suggestion. At least plat-samsung
> > directory, How about to use 'SAMUSNG' prefix instead of 'S3C'. We
> > don't know next chip name start S7, S9, and so on. which one can be
> > possible.
> > So future use and reduce the confusion, we start the use the 'SAMSUNG' prefix.
> This DMA API driver has nothing to do with S3Cxxxx, S5Pxxxx, S7Pxxxx etc SoCs.
> The "S3C" prefix specifies the DMA API version. And the DMA API remains same
> as that used for S3C24xx SoCs.

I'm siding with Jassi on this.

Does this really matter, especially as this is really internal Kconfig
to select support that is compiled in.

Unless anyone else can come up with a reasonable objection, this'll get
merged tomorrow.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

  reply	other threads:[~2010-05-17  8:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-17  1:35 [PATCHESv2] S3C: DMA: Support for PL330 Jassi Brar
2010-05-17  1:35 ` [PATCH 1/6] S3C: DMA: Change argument of s3c2410_dma_devconfig Jassi Brar
2010-05-17  1:35 ` [PATCH 2/6] S3C: DMA: Add api driver for PL330 Jassi Brar
2010-05-17  3:44   ` Kyungmin Park
2010-05-17  3:55     ` Jassi Brar
2010-05-17  8:25       ` Ben Dooks [this message]
2010-05-17  8:40   ` Ben Dooks
2010-05-18  1:59     ` Jassi Brar
2010-05-17  1:35 ` [PATCH 3/6] S5PC100: DMA: Add platform devices for PL330 DMACs Jassi Brar
2010-05-17  1:35 ` [PATCH 4/6] S5P6440: " Jassi Brar
2010-05-17  1:36 ` [PATCH 5/6] S5P6442: " Jassi Brar
2010-05-17  1:36 ` [PATCH 6/6] S5PV210: " Jassi Brar
  -- strict thread matches above, loose matches on Subject: below --
2010-05-18  2:58 [PATCHESv3] S3C: DMA: Support for PL330 Jassi Brar
2010-05-18  2:59 ` [PATCH 2/6] S3C: DMA: Add api driver " Jassi Brar

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=20100517082506.GB6684@trinity.fluff.org \
    --to=ben-linux@fluff.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.