From: rnayak@ti.com (Rajendra Nayak)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/6] mmc: omap_hsmmc: Don't expect MMC1 to always have vmmc supply
Date: Tue, 21 Feb 2012 18:11:52 +0530 [thread overview]
Message-ID: <4F439110.5020001@ti.com> (raw)
In-Reply-To: <20120221122022.GC22675@n2100.arm.linux.org.uk>
On Tuesday 21 February 2012 05:50 PM, Russell King - ARM Linux wrote:
> On Tue, Feb 21, 2012 at 05:43:54PM +0530, S, Venkatraman wrote:
>> On Tue, Feb 21, 2012 at 3:33 PM, Rajendra Nayak<rnayak@ti.com> wrote:
>>> @@ -324,8 +302,8 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host
>>> *host)
>>> mmc_slot(host).ocr_mask = ocr_value;
>>> } else {
>>> if (!(mmc_slot(host).ocr_mask& ocr_value)) {
>>> - pr_err("MMC%d ocrmask %x is not
>>> supported\n",
>>> - host->id,
>>> mmc_slot(host).ocr_mask);
>>> + pr_err("MMC ocrmask %x is not
>>> supported\n",
>>> + mmc_slot(host).ocr_mask);
>
> You're dropping the MMC number from these error messages. It would be
> much better to fix them instead. Use dev_info(mmc_dev(host->mmc), "blah"
> rather than pr_err().
Thanks for catching this. There are a few other instance of pr_* usage
within the driver. I will post a patch to fix all of them.
>
> Drivers should not be using pr_* unless they really do not have a struct
> device.
next prev parent reply other threads:[~2012-02-21 12:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1329818589-10062-1-git-send-email-rnayak@ti.com>
[not found] ` <1329818589-10062-7-git-send-email-rnayak@ti.com>
2012-02-21 12:13 ` [PATCH v2 6/6] mmc: omap_hsmmc: Don't expect MMC1 to always have vmmc supply S, Venkatraman
2012-02-21 12:20 ` Russell King - ARM Linux
2012-02-21 12:41 ` Rajendra Nayak [this message]
2012-02-23 11:26 [PATCH v2 0/6] mmc: omap_hsmmc: Clean up use/abuse of pdev->id Rajendra Nayak
2012-02-23 11:26 ` [PATCH v2 6/6] mmc: omap_hsmmc: Don't expect MMC1 to always have vmmc supply Rajendra Nayak
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=4F439110.5020001@ti.com \
--to=rnayak@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).