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 19:54:03 +0100 [thread overview]
Message-ID: <201512111954.03640.marex@denx.de> (raw)
In-Reply-To: <CAD6G_RRrVs7Zft5xxdZ1c1aJVwiFYBL-QKSbiQ89SBuvJkmLsg@mail.gmail.com>
On Friday, December 11, 2015 at 04:41:50 PM, Jagan Teki wrote:
> On 11 December 2015 at 20:58, Fabio Estevam <festevam@gmail.com> wrote:
> > On Fri, Dec 11, 2015 at 1:24 PM, Marek Vasut <marex@denx.de> wrote:
> >> 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.
> >
> > Agreed. A simple proof that this is confusing is that it broke the
> > fsl_qspi.c driver.
>
> Probably your pointed at wrong h on genmask - but this wasn't be a
> proof of any global defined macro it's a mistake of using improper h
> value.
Sorry, I do not understand this sentence at all.
> If something went wrong with the patch then always ask and fix
> for proper thing and blaming global macro which used in other files is
> not a good thing.
Usage of the macro itself is so confusing that even the conversion went
wrong and introduced bugs. Clearly, using the macro is NOT an improvement.
I also vote for the revert.
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-12-11 18:54 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
2015-12-11 15:28 ` Fabio Estevam
2015-12-11 15:41 ` Jagan Teki
2015-12-11 18:54 ` Marek Vasut [this message]
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=201512111954.03640.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