Subject: [PATCH RESEND 0/9] OLPC: create a generic OLPC EC driver
Date: Thursday 19th July 2012 04:37:13 UTC (over 4 years ago)
The OLPC EC (Embedded Controller) code that is currently upstream is x86-only, originally written for the XO-1. Since then, we've had the XO-1.5 (also x86), and XO-1.75 (arm-based) enter mass production. The 1.75 uses a vastly different EC protocol, and future hardware revisions are likely to change it even further. However, the drivers do share quite a bit of code, so it makes sense to have a platform-agnostic driver that calls into platform-specific hooks for each XO's EC driver. This is the first stab and creating such a beast (with further patches pending). Aside from the lack of code duplication, this is helpful for fixing bugs in one place (for example, we fixed an EC suspend/resume bug in 1.75 that I've just seen happen on 1.5 without these patches. With these patches, the problem goes away). These patches are against Linus's current HEAD; let me know if they don't apply somewhere, and I'll happily redo them against the -next tree. I'm assuming that these changes (which touch places like x86, wireless, and staging) should go through either the x86 tree, or through akpm's tree. Alternatively, if the reviews are positive and I can get SOBs from the relevant maintainers, I can set up a platform-olpc tree somewhere and request a pull from Linus.