[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABb+yY0-RQ80q92EBsuBoYpjxW5zR=nXr+j3zCXw3wKkCf33OQ@mail.gmail.com>
Date: Wed, 5 Aug 2015 16:22:01 +0530
From: Jassi Brar <jassisinghbrar@...il.com>
To: Leo Yan <leo.yan@...aro.org>
Cc: Rob Herring <robh+dt@...nel.org>, Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Wei Xu <xuwei5@...ilicon.com>,
Bintian Wang <bintian.wang@...wei.com>,
Haojian Zhuang <haojian.zhuang@...aro.org>,
Devicetree List <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Guodong Xu <guodong.xu@...aro.org>,
Jian Zhang <zhangjian001@...ilicon.com>,
Zhenwei Wang <Zhenwei.wang@...ilicon.com>,
Haoju Mo <mohaoju@...ilicon.com>,
Dan Zhao <dan.zhao@...ilicon.com>, kongfei@...ilicon.com,
Guangyue Zeng <zengguangyue@...ilicon.com>
Subject: Re: [RFC PATCH 0/3] mailbox: hisilicon: add mailbox driver
On Mon, Aug 3, 2015 at 6:43 AM, Leo Yan <leo.yan@...aro.org> wrote:
> This patch series is to implement Hisilicon's mailbox driver and enable
> the mailbox controller on Hi6220.
>
Cool.
> The Hisilicon mailbox supports up to 32 channels. Each channel is
> unidirectional with a maximum message size of 8 words. I/O is performed
> using register access (there is no DMA) and the cell raises an interrupt
> when messages are received.
>
FYI, none of other platforms has mailbox with DMA. 8-word deep fifo,
RX interrupt
and optional TX interrupt is pretty common. So cool still.
> For easily extending for Hisilicon series SoCs (SoCs may have difference
> for register's definition with each other), so firstly implement common
> mailbox driver; this common mailbox driver provides three mainly
> functionality:
>
> - help register channels into framework;
> - hook low level callback functions for register's operations;
> - Enhance rx channel's message queue, which is based on the code in
> drivers/mailbox/omap-mailbox.c.
>
Not cool.
Please don't reinvent the wheel by having platform specific
implementation of the mailbox api. Which vendor doesn't plan to roll
out new SoCs, and hence variations of mailbox controllers? The OMAP
stack predates the common api, and was actually supposed to be
converted over eventually. Please implement just the
drivers/mailbox/hi6220-mailbox.c (preferably by the name of the
mailbox controller, if any)
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists