Thread (133 messages) 133 messages, 5 authors, 2021-11-06

Re: [PATCH v2 02/35] mtd: spi-nor: core: Report correct name in case of ID collisions

From: Michael Walle <hidden>
Date: 2021-08-23 22:34:56

Am 2021-08-04 10:23, schrieb Pratyush Yadav:
On 27/07/21 07:51AM, Tudor Ambarus wrote:
quoted
Provide a way to report the correct flash name in case of ID 
collisions.
There will be a single flash_info entry when flash IDs collide, and 
the
differentiation between the flash types will be made at runtime
if possible.
I have the same comments as last time around. I am not convinced that
this approach is better than having multiple entries, one for each
colliding flash. I wonder how you will handle different fixups for the
colliding flashes for example, since nor->info is const.
I thought of multple entries in xx_parts[], too. But how would you 
choose
between those? The flash id is the same, only the name would be 
different.
Searching by name seems cumbersome. Also, the fixup of the first match
will change the pointer (or maybe an additional pointer, so we still
have the original match), and thus also changes the pointer to the fixup
itself.

-michael

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help