From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Andreas Färber" <afaerber@suse.de>,
liuwei@actions-semi.com, mp-cs@actions-semi.com,
96boards@ucrobotics.com,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
"Daniel Thompson" <daniel.thompson@linaro.org>,
"Amit Kucheria" <amit.kucheria@linaro.org>,
"Linux ARM" <linux-arm-kernel@lists.infradead.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
hzhang@ucrobotics.com, bdong@ucrobotics.com,
"Mani Sadhasivam" <manivannanece23@gmail.com>
Subject: Re: [PATCH v4 04/10] pinctrl: actions: Add Actions S900 pinctrl driver
Date: Fri, 2 Mar 2018 23:26:57 +0530 [thread overview]
Message-ID: <20180302175657.cnudp24fp3ejevwc@linaro.org> (raw)
In-Reply-To: <CACRpkdYKm9CuKb+0CDwddVK7uJvVKpkR_mubzDe1n2joUom-FA@mail.gmail.com>
Hi Linus,
On Fri, Mar 02, 2018 at 02:21:37PM +0100, Linus Walleij wrote:
> On Fri, Mar 2, 2018 at 4:50 AM, Manivannan Sadhasivam
> <manivannan.sadhasivam@linaro.org> wrote:
>
> > Add pinctrl driver for Actions Semi S900 SoC. The driver supports
> > pinctrl, pinmux and pinconf functionalities through a range of registers
> > common to both gpio driver and pinctrl driver.
> >
> > Pinmux functionality is available only for the pin groups while the
> > pinconf functionality is available for both pin groups and individual
> > pins.
> >
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>
> Seems like this is pretty much finished.
>
> Let's see if you can collect some ACKs before we apply it.
>
Andreas is at Embedded World conference. I hope once he is
back, he will have a look at this patchset.
> Now just minor things remain.
>
> Random chosen example:
>
> > +static unsigned int lvds_e_drv_pads[] = {
> > + LVDS_EEP,
> > + LVDS_EEN,
> > + LVDS_EDP,
> > + LVDS_EDN,
> > + LVDS_ECP,
> > + LVDS_ECN,
> > + LVDS_EBP,
> > + LVDS_EBN,
> > +};
> > +
> > +static unsigned int sd0_d3_d0_drv_pads[] = {
> > + SD0_D3,
> > + SD0_D2,
> > + SD0_D1,
> > + SD0_D0,
> > +};
>
> People (e.g. Torvalds) sometimes get upset with files with too many lines
> in them. This file has a lot of lines. A lot of pin control drivers try to cut
> down the lines with macros, and you do it in some places too,
> would you consider to see if you can cut down these tables with
> macros?
>
> S900_PADS(LVDS_EEP, LVDS_EEN, LVDS_EDP, LVDS_EDN,
> LVDS_ECP, LVDS_ECN, LVDS_EBP, LVDS_EBN);
> S900_PADS(SD0_D3, SD0_D2, SD0_D1, SD0_D0);
>
I don't think it would be efficient to use macros here. However, I can
align the pads and func definitions in a single line. This will also
save a considerable amount of space.
Thanks,
Mani
> Would be so much more compact.
>
> It's not the biggest problem though.
>
> Yours,
> Linus Walleij
next prev parent reply other threads:[~2018-03-02 17:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 3:50 [PATCH v4 00/10] Add Actions Semi S900 pinctrl and gpio support Manivannan Sadhasivam
2018-03-02 3:50 ` [PATCH v4 01/10] dt-bindings: pinctrl: Add bindings for Actions S900 SoC Manivannan Sadhasivam
2018-03-02 13:10 ` Linus Walleij
2018-03-02 3:50 ` [PATCH v4 02/10] arm64: dts: actions: Add pinctrl node for S900 Manivannan Sadhasivam
2018-03-02 13:11 ` Linus Walleij
2018-03-02 3:50 ` [PATCH v4 03/10] arm64: actions: Enable PINCTRL in platforms Kconfig Manivannan Sadhasivam
2018-03-02 13:12 ` Linus Walleij
2018-03-02 3:50 ` [PATCH v4 04/10] pinctrl: actions: Add Actions S900 pinctrl driver Manivannan Sadhasivam
2018-03-02 13:21 ` Linus Walleij
2018-03-02 17:56 ` Manivannan Sadhasivam [this message]
2018-03-02 3:50 ` [PATCH v4 05/10] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC Manivannan Sadhasivam
2018-03-07 19:52 ` Rob Herring
2018-03-07 20:05 ` Manivannan Sadhasivam
2018-03-02 3:50 ` [PATCH v4 06/10] arm64: dts: actions: Add S900 gpio nodes Manivannan Sadhasivam
2018-03-02 3:50 ` [PATCH v4 07/10] arm64: dts: actions: Add gpio line names to Bubblegum-96 board Manivannan Sadhasivam
2018-03-22 15:28 ` Linus Walleij
2018-03-02 3:50 ` [PATCH v4 08/10] gpio: Add gpio driver for Actions OWL S900 SoC Manivannan Sadhasivam
2018-03-02 3:50 ` [PATCH v4 09/10] MAINTAINERS: Add reviewer for ACTIONS platforms Manivannan Sadhasivam
2018-03-02 13:23 ` Linus Walleij
2018-03-02 3:50 ` [PATCH v4 10/10] MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries Manivannan Sadhasivam
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=20180302175657.cnudp24fp3ejevwc@linaro.org \
--to=manivannan.sadhasivam@linaro.org \
--cc=96boards@ucrobotics.com \
--cc=afaerber@suse.de \
--cc=amit.kucheria@linaro.org \
--cc=bdong@ucrobotics.com \
--cc=daniel.thompson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hzhang@ucrobotics.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuwei@actions-semi.com \
--cc=manivannanece23@gmail.com \
--cc=mp-cs@actions-semi.com \
--cc=robh+dt@kernel.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).