From: Simon Horman <horms@verge.net.au>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Magnus <magnus.damm@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>
Subject: Re: [PATCH 1/9] sh-pfc: modify PINMUX_IPSR_MSEL() macro order
Date: Wed, 2 Sep 2015 17:05:36 +0900 [thread overview]
Message-ID: <20150902080534.GA31130@verge.net.au> (raw)
In-Reply-To: <87io7tjmk6.wl%kuninori.morimoto.gx@renesas.com>
On Wed, Sep 02, 2015 at 07:44:55AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> The difference between PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
> are FN_xxx order, and PINMUX_IPSR_MSEL() is used only from r8a7778.
> Now it r8a7778 works correctly with PINMUX_IPSR_MODSEL_DATA() order.
> This means we can merge PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA().
>
> Current PFC driver is very difficult to read, because macro names are
> using different lenth. Especially PINMUX_IPSR_MODSEL_DATA() is well
> used macro
>
> PINMUX_IPSR_NOGP(ispr, ...)
> PINMUX_IPSR_DATA(ipsr, ...)
> PINMUX_IPSR_NOGM(ispr, ...)
> PINMUX_IPSR_NOFN(ipsr, ...)
> PINMUX_IPSR_MSEL(ipsr, ...)
> PINMUX_IPSR_MODSEL_DATA(ipsr, ...)
>
> It can be readable if we can merge PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
>
> PINMUX_IPSR_NOGP(ispr, ...)
> PINMUX_IPSR_DATA(ipsr, ...)
> PINMUX_IPSR_NOGM(ispr, ...)
> PINMUX_IPSR_NOFN(ipsr, ...)
> PINMUX_IPSR_MSEL(ipsr, ...)
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> drivers/pinctrl/sh-pfc/sh_pfc.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
> index 7cb1ed6..c8c1d49 100644
> --- a/drivers/pinctrl/sh-pfc/sh_pfc.h
> +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
> @@ -179,7 +179,7 @@ struct sh_pfc_soc_info {
> #define PINMUX_IPSR_NOFN(ipsr, fn, ms) \
> PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##ms)
> #define PINMUX_IPSR_MSEL(ipsr, fn, ms) \
> - PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr, FN_##ms)
> + PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn)
> #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) \
> PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn)
>
> --
> 1.9.1
>
WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms@verge.net.au>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Magnus <magnus.damm@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>
Subject: Re: [PATCH 1/9] sh-pfc: modify PINMUX_IPSR_MSEL() macro order
Date: Wed, 02 Sep 2015 08:05:36 +0000 [thread overview]
Message-ID: <20150902080534.GA31130@verge.net.au> (raw)
In-Reply-To: <87io7tjmk6.wl%kuninori.morimoto.gx@renesas.com>
On Wed, Sep 02, 2015 at 07:44:55AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> The difference between PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
> are FN_xxx order, and PINMUX_IPSR_MSEL() is used only from r8a7778.
> Now it r8a7778 works correctly with PINMUX_IPSR_MODSEL_DATA() order.
> This means we can merge PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA().
>
> Current PFC driver is very difficult to read, because macro names are
> using different lenth. Especially PINMUX_IPSR_MODSEL_DATA() is well
> used macro
>
> PINMUX_IPSR_NOGP(ispr, ...)
> PINMUX_IPSR_DATA(ipsr, ...)
> PINMUX_IPSR_NOGM(ispr, ...)
> PINMUX_IPSR_NOFN(ipsr, ...)
> PINMUX_IPSR_MSEL(ipsr, ...)
> PINMUX_IPSR_MODSEL_DATA(ipsr, ...)
>
> It can be readable if we can merge PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
>
> PINMUX_IPSR_NOGP(ispr, ...)
> PINMUX_IPSR_DATA(ipsr, ...)
> PINMUX_IPSR_NOGM(ispr, ...)
> PINMUX_IPSR_NOFN(ipsr, ...)
> PINMUX_IPSR_MSEL(ipsr, ...)
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> drivers/pinctrl/sh-pfc/sh_pfc.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
> index 7cb1ed6..c8c1d49 100644
> --- a/drivers/pinctrl/sh-pfc/sh_pfc.h
> +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
> @@ -179,7 +179,7 @@ struct sh_pfc_soc_info {
> #define PINMUX_IPSR_NOFN(ipsr, fn, ms) \
> PINMUX_DATA(fn##_MARK, FN_##ipsr, FN_##ms)
> #define PINMUX_IPSR_MSEL(ipsr, fn, ms) \
> - PINMUX_DATA(fn##_MARK, FN_##fn, FN_##ipsr, FN_##ms)
> + PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn)
> #define PINMUX_IPSR_MODSEL_DATA(ipsr, fn, ms) \
> PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn)
>
> --
> 1.9.1
>
next prev parent reply other threads:[~2015-09-02 8:05 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 7:33 [PATCH 0/9] sh-pfc: modify PINMUX_IPSR_MSEL() and r8a7795 support Kuninori Morimoto
2015-09-02 7:33 ` Kuninori Morimoto
2015-09-02 7:44 ` [PATCH 1/9] sh-pfc: modify PINMUX_IPSR_MSEL() macro order Kuninori Morimoto
2015-09-02 7:44 ` Kuninori Morimoto
2015-09-02 8:05 ` Simon Horman [this message]
2015-09-02 8:05 ` Simon Horman
2015-09-25 16:43 ` Linus Walleij
2015-09-25 16:43 ` Linus Walleij
2015-09-02 7:46 ` [PATCH 2/9] sh-pfc: pfc-sh7734: use PINMUX_IPSR_MSEL() Kuninori Morimoto
2015-09-02 7:46 ` Kuninori Morimoto
2015-09-02 7:46 ` [PATCH 3/9] sh-pfc: pfc-r8a7794: " Kuninori Morimoto
2015-09-02 7:46 ` Kuninori Morimoto
2015-09-02 7:46 ` [PATCH 4/9] sh-pfc: pfc-r8a7791: " Kuninori Morimoto
2015-09-02 7:46 ` Kuninori Morimoto
2015-09-02 7:47 ` [PATCH 5/9] sh-pfc: pfc-r8a7790: " Kuninori Morimoto
2015-09-02 7:47 ` Kuninori Morimoto
2015-09-02 7:47 ` [PATCH 6/9] sh-pfc: pfc-r8a7779: " Kuninori Morimoto
2015-09-02 7:47 ` Kuninori Morimoto
2015-09-02 7:47 ` [PATCH 7/9] sh-pfc: remove unused PINMUX_IPSR_MODSEL_DATA() Kuninori Morimoto
2015-09-02 7:47 ` Kuninori Morimoto
2015-09-02 7:47 ` [PATCH 8/9] sh-pfc: Initial R8A7795 PFC support Kuninori Morimoto
2015-09-02 7:47 ` Kuninori Morimoto
2015-09-02 14:58 ` Geert Uytterhoeven
2015-09-02 14:58 ` Geert Uytterhoeven
2015-09-03 0:11 ` Kuninori Morimoto
2015-09-03 0:11 ` Kuninori Morimoto
2015-09-02 7:48 ` [PATCH 9/9] sh-pfc: r8a7795: add SCIFx support Kuninori Morimoto
2015-09-02 7:48 ` Kuninori Morimoto
2015-09-02 9:29 ` [PATCH 0/9] sh-pfc: modify PINMUX_IPSR_MSEL() and r8a7795 support Geert Uytterhoeven
2015-09-02 9:29 ` Geert Uytterhoeven
2015-09-03 0:25 ` Laurent Pinchart
2015-09-03 0:25 ` Laurent Pinchart
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=20150902080534.GA31130@verge.net.au \
--to=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
/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.