On Thu, 2016-04-14 at 10:53 +0200, Bjørn Mork wrote: > Even more valuable when you make it device or bus specific. I don't see > Greg arguing against a knob to turn off LPM. Only the slegde hammer > operated master switch implementation :) We do have nousb and autosuspend=-1 And it is easy to explain to users for debugging. > I recently started thinking about ways to make it easier to test/debug > all (or at least most of) the USB quirks. I stopped after discovering Good idea. > that I didn't need the new quirk I thought I needed after all.. But the > idea was something along the lines of reusing the dynamic ID code in the > quirk processing. The "usb" driver could have a "new_id" (but let's call > it something else please) attribute, allowing writing a device ID and > quirk flag. Reading the attribute should give you a list of all current > quirks. The quirk processing is based on the common device matching > code, so adding dynamic device id matching should be a piece of cake > (FLW). > > Whatdoyouthink? Yes, I know - too much talk and too little code. I'll > see if I can come up with an RFC patch if noone else does in the mean > time. Copy the code uas.c provides. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html