I reorganized that beast as you can see here
https://github.com/ft-/OX820-3.1-Linux.
I have not yet had the ability to test it. My device is sitting at home but not me.
Short summary about changes:
- Reorganized code structure
- Moved config parameters into module parameters
- Added LED trigger support
- Removed Direct SATA stuff
- Removed complex locking stuff from Direct SATA and MD hwraid bridging. (Not supported by 3.1 SATA layer anyways)
- Fixed PRD stuff (Important bits that were missing)
- Corrected indentation
If you like, you can try it but I cannot tell yet whether it will work. Not tested as of now but that will come when I am back at home.