From: Maxime Ripard <maxime.ripard@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3.2 14/58] musb-new: sunxi: Use CLK and RESET support
Date: Thu, 23 Aug 2018 14:44:18 +0200 [thread overview]
Message-ID: <20180823124418.5yht2vxulg2by2mx@flea> (raw)
In-Reply-To: <CAMty3ZDv9Q6qi4JRWynMLiKC1s_92j=gMRyGbkvoKRuF4mcMPg@mail.gmail.com>
On Wed, Aug 22, 2018 at 09:33:27PM +0530, Jagan Teki wrote:
> On Wed, Aug 22, 2018 at 9:24 PM, Maxime Ripard
> <maxime.ripard@bootlin.com> wrote:
> > Hi,
> >
> > On Mon, Aug 20, 2018 at 10:02:31PM +0530, Jagan Teki wrote:
> >> - glue->ccm = (struct sunxi_ccm_reg *)SUNXI_CCM_BASE;
> >> - if (IS_ERR(glue->ccm))
> >> - return PTR_ERR(glue->ccm);
> >> + if (glue->cfg->has_reset)
> >> + test_and_set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags);
> >
> > I'm not sure why the flag is needed here. It's completely redundant
> > with the boolean you're testing to set that flag.
>
> Since the reset is optional, set the flag for reset required SoC's
> instead of using reset_get_by_index_optional
Yeah, I understood the intent, but you can remove the flag and use
glue->cfg->has_reset.
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180823/0fa7733a/attachment.sig>
prev parent reply other threads:[~2018-08-23 12:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-20 16:32 [U-Boot] [PATCH v3.2 14/58] musb-new: sunxi: Use CLK and RESET support Jagan Teki
2018-08-22 15:54 ` Maxime Ripard
2018-08-22 16:03 ` Jagan Teki
2018-08-23 12:44 ` Maxime Ripard [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=20180823124418.5yht2vxulg2by2mx@flea \
--to=maxime.ripard@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox