[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+iBjpS2UAPk+TiuX7_Ufp6uXwU3nxFZ-8emwGU2TMF9+6q66g@mail.gmail.com>
Date: Tue, 22 Apr 2014 14:17:05 -0500
From: Graham Moore <ggrahammoore@...il.com>
To: Gerhard Sittig <gsi@...x.de>
Cc: Graham Moore <grmoore@...era.com>, ZY - marex <marex@...x.de>,
Geert Uytterhoeven <geert+renesas@...ux-m68k.org>,
Artem Bityutskiy <artem.bityutskiy@...ux.intel.com>,
Sascha Hauer <s.hauer@...gutronix.de>,
Jingoo Han <jg1.han@...sung.com>, linux-kernel@...r.kernel.org,
Yves Vandervennet <rocket.yvanderv@...il.com>,
linux-mtd@...ts.infradead.org,
Insop Song <insop.song@...nspeed.com>,
Alan Tull <atull@...era.com>,
Sourav Poddar <sourav.poddar@...com>,
Brian Norris <computersforpeace@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Dinh Nguyen <dinguyen@...era.com>
Subject: Re: [PATCH V3] Add support for flag status register on Micron chips.
On Tue, Apr 22, 2014 at 1:45 PM, Gerhard Sittig <gsi@...x.de> wrote:
> the patch appears to not have dev_err() references, were they
> removed? see below
[...]
> this emits a message that an error has occured, but doesn't tell
> where it occured -- can you dev_err() here to make the message
> even more helpful?
Yeah, the previous dev_err was actually copy-pasted from a similar
function that already existed. When I rebased to l2-mtd/spinor, I did
the same copy-paste but that branch has pr_err instead of dev_err.
I'm a noob, so I didn't want to change things without a good
explanation :) On the other hand, I'm in favor of using dev_err
instead.
[...]
> this logic always returns "timed out" when the ready flag is not
> seen, even in the case of read errors -- can you "preset" the
> error code with "timed out", and update it with something more
> appropriate before returning when other errors are seen?
>
> though this is an internal helper, and callers may not tell the
> situations apart in the first place, so this might be a minor nit
Same here as above, copy-pasted, and so the logic is what already
existed. I double-checked the calling code, and like you say, the
callers do not tell the situations apart. About half the calls assume
any error is timeout. The others either pass return value or some
other error up, or they ignore it.
Thanks,
Graham
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists