Attached is patch for JMicron USB to (S)ATA bridges. Some parts of code (like magic numbers) are taken from smartmontools (I hope it will be not problem, because smartmontools are GPL, and hdparm seems to be BSD or GPL licence, but as you can see, code is mine and licensed same as hdparm).
In my testing, at least -v, -M, -B and -I options are supported. This is enough for me, because (and this is reason why I wrote this patch) -B removes problem with very high increasing load_cycle_count on WD Scorpio.
Patch is developed on top of hdparm-9.15. Whole work is designed to allow future simple additions of different ATP (ATA Pass Through) devices.
Log in to post a comment.