Someone will need a new quirks flag in the future anyway... :)
I can think of only one way to accomplish this on 32-bit systems: Change
the driver_info field from a bit array to an index into a static table
of 64-bit flags values. Each unusual_devs structure would have its own
entry in this table. As far as I can tell, the other unusual_*.h tables
could retain their current driver_info interpretations, since no new
quirk bits are likely to be relevant to them.
Making this change would be an awkward nuisance, but it should be
doable.
Hm, yes, thanks for the idea,that is a possible solution.
It will need to modify all unusual macros, though. Just I am not sure I want
to spent time patching all the drivers as I have not way how to test it.
I don't think it will be necessary to change all those macros, just the
ones in usual_tables.c. And to create the new table containing the
actual flag values, of course.
There will also have to be a new argument to usb_stor_probe1()
specifying whether the id->driver_info field is standard (i.e., it
contains the flags directly) or is one of the new indirect index values.
And you'll have to figure out a comparable change to the dynamic device
ID table mechanism.
(If you want to be really fancy about it, you could design things in
such a way that the indirect flags approach is used only on 32-bit
systems. 64-bit systems can put the new flag bits directly into the
driver_info field. However, it's probably best not to worry about this
initially.)