From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 1/1] Revert "spi: fsl_qspi: Use GENMASK"
Date: Fri, 11 Dec 2015 16:24:46 +0100 [thread overview]
Message-ID: <201512111624.46826.marex@denx.de> (raw)
In-Reply-To: <CAD6G_RS7edm-eMRGVx6+P9-JSn-eBv1Omn2DZywWEth7bYiOGA@mail.gmail.com>
On Friday, December 11, 2015 at 03:59:14 PM, Jagan Teki wrote:
> On 11 December 2015 at 02:57, Troy Kisky <troy.kisky@boundarydevices.com>
wrote:
> > If GENMASK is REALLY desired, it should be GENMASK(23,0)
> > But since GENMASK is obviously more confusing, let's just revert.
> >
> > This reverts commit bad490a24212c068c5b718b9189f47ea4075d078.
>
> Sorry, just fix genmask why revert? because driver author has no
> complaint on this, please don't just say simply "more confusing" more
> over I usually prefer reverting bug fix patches.
I also agree this GENMASK() crap is confusing.
> > Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
> > Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> >
> > ---
> > v2: add sign off/ reviewed by
> > ---
> >
> > drivers/spi/fsl_qspi.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
> > index ed39114..dd7048a 100644
> > --- a/drivers/spi/fsl_qspi.c
> > +++ b/drivers/spi/fsl_qspi.c
> > @@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
> >
> > #define TX_BUFFER_SIZE 0x40
> > #endif
> >
> > -#define OFFSET_BITS_MASK GENMASK(24, 0)
> > +#define OFFSET_BITS_MASK 0x00ffffff
> >
> > #define FLASH_STATUS_WEL 0x02
> >
> > --
> > 2.5.0
>
> thanks!
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-12-11 15:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 21:27 [U-Boot] [PATCH V2 1/1] Revert "spi: fsl_qspi: Use GENMASK" Troy Kisky
2015-12-11 14:59 ` Jagan Teki
2015-12-11 15:24 ` Marek Vasut [this message]
2015-12-11 15:28 ` Fabio Estevam
2015-12-11 15:41 ` Jagan Teki
2015-12-11 18:54 ` Marek Vasut
2015-12-14 11:21 ` Stefano Babic
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=201512111624.46826.marex@denx.de \
--to=marex@denx.de \
--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