From: Wolfgang Denk <wd@denx.de>
To: Adam Ford <aford173@gmail.com>
Cc: Tom Rini <trini@konsulko.com>,
U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: Bug in board/logicpd/omap3som/omap3logic.h ???
Date: Mon, 27 Sep 2021 17:50:55 +0200 [thread overview]
Message-ID: <2268709.1632757855@gemini.denx.de> (raw)
In-Reply-To: <CAHCN7x+_3iZtTjL9i0QL=w-iLC3imegNH38Q=RyT6wz7=Ovicw@mail.gmail.com>
Dear Adam,
In message <CAHCN7x+_3iZtTjL9i0QL=w-iLC3imegNH38Q=RyT6wz7=Ovicw@mail.gmail.com> you wrote:
> > >
> > > commit 25e4ff45b17 "ARM: omap3_logic: Enable OMAP EHCI support for
> > > SOM-LV Boards" added (among other things) these lines:
> > >
> > > ...
> > > 243 MUX_VAL(CP(MCSPI2_SOMI), (IEN | PTD | DIS | M0)); /*HSUSB2_DATA5*/
> > > 244 MUX_VAL(CP(MCSPI2_CS0), (IEN | PTD | EN | M0)); /*HSUSB2_DATA6*/
> > > 245 MUX_VAL(CP(MCSPI2_CLK), (IEN | PTD | DIS | M0)); /*HSUSB2_DATA7*/
> > > 246 MUX_VAL(CP(SYS_BOOT2), (IEN | PTD | DIS | M4)) /* GPIO_4 */
> > > 247 MUX_VAL(CP(ETK_D10_ES2), (IDIS | PTU | DIS | M3)); /*HSUSB2_CLK*/
> > > 248 MUX_VAL(CP(ETK_D11_ES2), (IDIS | PTU | DIS | M3)); /*HSUSB2_STP*/
> > > 249 MUX_VAL(CP(ETK_D12_ES2), (IEN | PTU | DIS | M3)); /*HSUSB2_DIR*/
> > > ...
> > >
> > > All the entries in set_muxconf_regs() have a terminating semicolon -
> > > all except the entry in line # 246.
> > >
> > > I reckon this is a mistake and should be fixed?
> >
> > Interesting. MUX_VAL is from arch/arm/include/asm/arch-omap3/mux.h and
> > includes a semicolon, so that's how this didn't trip anything up. Most
> > of the time it's not used with one either, from a quick grep.
>
> I am guessing it was left out by accident. I would not have
> intentionally done that. I can submit a patch to make it consistent
> if you want.
Yes, it should be made xonsistent, please - otherwise everybody
seeing this wonders what is going on here.
Tom says there is already a semicolon in the macro and most use
cases don;t have one, so the fix should probably be to keep that
line and remove the other semicolons ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The human race is faced with a cruel choice: work or daytime tele-
vision.
prev parent reply other threads:[~2021-09-27 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 14:45 Bug in board/logicpd/omap3som/omap3logic.h ??? Wolfgang Denk
2021-09-27 14:49 ` Tom Rini
2021-09-27 15:12 ` Adam Ford
2021-09-27 15:50 ` Wolfgang Denk [this message]
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=2268709.1632757855@gemini.denx.de \
--to=wd@denx.de \
--cc=aford173@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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.