Re: [PATCH 9/9] MN10300: Fix MTD JEDEC probe so that the ASB2303 bootprom can be detected [2.6.24-rc3-mm2]




On Fri, 2007-11-30 at 14:01 +0000, David Howells wrote:
David Woodhouse <dwmw2@xxxxxxxxxxxxx> 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Row and Col property of MSHFlexGrid
    ... Private Sub MSHFlexGrid1_Click ... For the first table, if I click on the first row, no dialog pops up. ... the "data" of the second row. ... When the grid has focus, ...
    (microsoft.public.vb.controls)
  • Row and Col property of MSHFlexGrid
    ... for modifing the data of a row on the grid. ... For the first table, if I click on the first row, no dialog pops up. ... the "data" of the second row. ... Also in one of the grid, I don't see the "square" on the active cell ...
    (microsoft.public.vb.controls)
  • txt2xls
    ... This should go in the first row, ... first column. ... This should go in the second row, ... This should go in the third row, ...
    (comp.lang.python)
  • Re: txt2xls
    ... > This should go in the first row, ... > first column. ... > This should go in the second row, ... > This should go in the third row, ...
    (comp.lang.python)
  • Re: how to average two different lines
    ... The first row average will be a true average of three numbers for example ... By giving the second row the same importance as the first row you do not get ... row, then I bring them to a report, the report will sum the two average ...
    (microsoft.public.excel.misc)