mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: David Howells <dhowells@redhat.com>
Cc: thayne@plug.org, akpm@linux-foundation.org,
	linux-am33-list@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 9/9] MN10300: Fix MTD JEDEC probe so that the ASB2303 bootprom can be detected [2.6.24-rc3-mm2]
Date: Fri, 30 Nov 2007 15:06:33 +0000	[thread overview]
Message-ID: <1196435193.13978.35.camel@pmac.infradead.org> (raw)
In-Reply-To: <28258.1196431276@redhat.com>


On Fri, 2007-11-30 at 14:01 +0000, David Howells wrote:
> David Woodhouse <dwmw2@infradead.org> wrote:
> 
> > I don't like this -- it shouldn't be necessary.
> 
> Actually, I think you're right.  I think the problem is that:
> 
>         if (uaddr != MTD_UADDR_NOT_SUPPORTED ) {
>                 /* ASSERT("The unlock addresses for non-8-bit mode
>                    are bollocks. We don't really need an array."); */
>                 uaddr = finfo->uaddr[0];
>         }
> 
> Should be:
> 
>         if (uaddr == MTD_UADDR_NOT_SUPPORTED ) {
>                 /* ASSERT("The unlock addresses for non-8-bit mode
>                    are bollocks. We don't really need an array."); */
>                 uaddr = finfo->uaddr[0];
>         }

Nah, it does what it's supposed to. Really, the only information in the
uaddr[] array is the information about what widths are supported, and
the _first_ unlock address is the only one we should care about.

It should change to a bitmask for the widths which are supported, and a
single int for the uaddr.

> Otherwise the finfo->uaddr[] table is useless because only the first row will
> be used, except for unsupported configurations where uaddr will be set to
> MTD_UADDR_NOT_SUPPORTED.

That is basically the assertion being made, yes. And it's true -- which
is why I didn't want you removing it ;)

> With the ASB2303 bootprom I need to use the second row because it's in the x16
> configuration, *not* the x8.

No, you need to use the second row because the first row is incorrect.
It ought to contain what's in the second row. :)

-- 
dwmw2


  reply	other threads:[~2007-11-30 15:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-29 22:52 [PATCH 1/9] AOUT: Move STACK_TOP[_MAX] to asm/processor.h [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 2/9] AOUT: Mark arches that support A.OUT format [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 3/9] AOUT: Suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 4/9] AOUT: Remove unnecessary inclusions of {asm, linux}/a.out.h [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 5/9] USB: net2280 can't have a function called show_registers() [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 6/9] MN10300: Allocate serial port UART IDs for on-chip serial ports [2.6.24-rc3-mm2] David Howells
2007-11-29 22:52 ` [PATCH 8/9] MN10300: Add platform MTD support for the ASB2303 board [2.6.24-rc3-mm2] David Howells
2007-11-29 22:53 ` [PATCH 9/9] MN10300: Fix MTD JEDEC probe so that the ASB2303 bootprom can be detected [2.6.24-rc3-mm2] David Howells
2007-11-30 13:46   ` David Woodhouse
2007-11-30 14:01   ` David Howells
2007-11-30 15:06     ` David Woodhouse [this message]
2007-11-30 17:12     ` David Woodhouse
2007-11-30 14:13 ` David Howells

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=1196435193.13978.35.camel@pmac.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=linux-am33-list@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thayne@plug.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

all inboxes | Powered by JetHome®