All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Stefan Weil <sw@weilnetz.de>
Cc: Blue Swirl <blauwirbel@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@us.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for 1.3] pflash_cfi01: Suppress warning when Linux probes for AMD flash
Date: Tue, 1 Jan 2013 13:06:57 +0100	[thread overview]
Message-ID: <20130101120657.GA4311@ohm.aurel32.net> (raw)
In-Reply-To: <1353794593-6147-1-git-send-email-sw@weilnetz.de>

On Sat, Nov 24, 2012 at 11:03:13PM +0100, Stefan Weil wrote:
> There are several ARM and MIPS boards which are manufactured with
> either Intel (pflash_cfi01.c) or AMD (pflash_cfi02.c) flash memory.
> 
> The Linux kernel supports both and first probes for AMD flash which
> resulted in one or two warnings from the Intel flash emulation:
> 
> pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
> pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf0)
> 
> These warnings confuse users, so suppress them.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> 
> This is strictly speaking not a bug fix, but it fixes a warning
> which confuses QEMU users since a long time (see previous mails
> on qemu-devel and bug report).
> 
> It is also safe. Therefore I think it can be applied to 1.3.
> 
> Regards
> Stefan
> 
>  hw/pflash_cfi01.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c
> index 7d040b5..a4dbe19 100644
> --- a/hw/pflash_cfi01.c
> +++ b/hw/pflash_cfi01.c
> @@ -319,6 +319,9 @@ static void pflash_write(pflash_t *pfl, hwaddr offset,
>              DPRINTF("%s: Write to buffer\n", __func__);
>              pfl->status |= 0x80; /* Ready! */
>              break;
> +        case 0xf0: /* Probe for AMD flash */
> +            DPRINTF("%s: Probe for AMD flash\n", __func__);
> +            goto reset_flash;
>          case 0xff: /* Read array mode */
>              DPRINTF("%s: Read array mode\n", __func__);
>              goto reset_flash;

Thanks, applied.


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

      parent reply	other threads:[~2013-01-01 12:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-24 22:03 [Qemu-devel] [PATCH for 1.3] pflash_cfi01: Suppress warning when Linux probes for AMD flash Stefan Weil
2012-11-26  5:31 ` walimis
2012-11-26  6:38   ` Stefan Weil
2013-01-01 12:06 ` Aurelien Jarno [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=20130101120657.GA4311@ohm.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=aliguori@us.ibm.com \
    --cc=blauwirbel@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.