Le mardi 14 mai 2013 21:06:16, Tejun Heo a écrit : > Patch looks correct to me but can you please put more detail into the > description preferably with a link to this thread? Updated & attached. I write one (trivial) kernel commit message every 3 years, so please correct me if there is a more consistent way to present it. > As for why atapi_dmadir isn't enabled by default, my memory is extremely > fuzzy now but ISTR it to be deprecated and cause issues with some devices. As atapi_id_dmadir() doesn't detect the bridge needs DMADIR, for now I need to enable it globally. This means it doesn't work out of the box, and needs a reboot to work as atapi_dmadir is read-only in sysfs. Also, if it causes regression with other drives, maybe one would gain a drive by enabling DMADIR but loose another. From my (very limited) understanding, the bridge just passes the drive's "id" (as in "atapi_id_dmadir(dev->id)") through. Is there another way to detect such bridge ? Other things atapi_id_dmadir() should look for in "id" ? If not, would it be possible to have a rw sysfs pseudofile per-device (...per port ?) to enable DMADIR ? If not, what about making atapi_dmadir sysfs pseudofile rw, to save a reboot ? Would you have more ideas on how it could be solved ? I'm willing to give a try to any of these options if they have a chance to get somewhere. Regards, -- Vincent Pelletier