https://github.com/torvalds/linux
Revision 93dbc1b3b506e16c1f6d5b5dcfe756a85cb1dc58 authored by Daniel Drake on 22 August 2013, 23:35:43 UTC, committed by Linus Torvalds on 23 August 2013, 16:51:22 UTC
Being a low-level component, various drivers (e.g. olpc-battery) assume that it is ok to communicate with the OLPC Embedded Controller during probe. Therefore the OLPC EC driver must be initialised before other drivers try to use it. This was the case until it was recently moved out of arch/x86 and restructured around commits ac2504151f5a ("Platform: OLPC: turn EC driver into a platform_driver") and 85f90cf6ca56 ("x86: OLPC: switch over to using new EC driver on x86"). Use arch_initcall so that olpc-ec is readied earlier, matching the previous behaviour. Fixes a regression introduced in Linux-3.6 where various drivers such as olpc-battery and olpc-xo1-sci failed to load due to an inability to communicate with the EC. The user-visible effect was a lack of battery monitoring, missing ebook/lid switch input devices, etc. Signed-off-by: Daniel Drake <dsd@laptop.org> Cc: Andres Salomon <dilinger@queued.net> Cc: Paul Fox <pgf@laptop.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fd3930f
Tip revision: 93dbc1b3b506e16c1f6d5b5dcfe756a85cb1dc58 authored by Daniel Drake on 22 August 2013, 23:35:43 UTC
drivers/platform/olpc/olpc-ec.c: initialise earlier
drivers/platform/olpc/olpc-ec.c: initialise earlier
Tip revision: 93dbc1b
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.6 KB |
Makefile | -rw-r--r-- | 451 bytes |
acl.c | -rw-r--r-- | 4.0 KB |
endian24.h | -rw-r--r-- | 1.5 KB |
file.c | -rw-r--r-- | 4.4 KB |
inode.c | -rw-r--r-- | 10.1 KB |
ioctl.c | -rw-r--r-- | 4.0 KB |
jfs_acl.h | -rw-r--r-- | 1.2 KB |
jfs_btree.h | -rw-r--r-- | 4.0 KB |
jfs_debug.c | -rw-r--r-- | 2.8 KB |
jfs_debug.h | -rw-r--r-- | 3.4 KB |
jfs_dinode.h | -rw-r--r-- | 5.6 KB |
jfs_discard.c | -rw-r--r-- | 3.1 KB |
jfs_discard.h | -rw-r--r-- | 1.0 KB |
jfs_dmap.c | -rw-r--r-- | 111.6 KB |
jfs_dmap.h | -rw-r--r-- | 11.2 KB |
jfs_dtree.c | -rw-r--r-- | 100.1 KB |
jfs_dtree.h | -rw-r--r-- | 6.6 KB |
jfs_extent.c | -rw-r--r-- | 17.3 KB |
jfs_extent.h | -rw-r--r-- | 1.3 KB |
jfs_filsys.h | -rw-r--r-- | 8.9 KB |
jfs_imap.c | -rw-r--r-- | 84.1 KB |
jfs_imap.h | -rw-r--r-- | 6.4 KB |
jfs_incore.h | -rw-r--r-- | 7.4 KB |
jfs_inode.c | -rw-r--r-- | 4.0 KB |
jfs_inode.h | -rw-r--r-- | 2.5 KB |
jfs_lock.h | -rw-r--r-- | 1.5 KB |
jfs_logmgr.c | -rw-r--r-- | 59.5 KB |
jfs_logmgr.h | -rw-r--r-- | 14.7 KB |
jfs_metapage.c | -rw-r--r-- | 19.6 KB |
jfs_metapage.h | -rw-r--r-- | 4.2 KB |
jfs_mount.c | -rw-r--r-- | 12.7 KB |
jfs_superblock.h | -rw-r--r-- | 4.1 KB |
jfs_txnmgr.c | -rw-r--r-- | 75.4 KB |
jfs_txnmgr.h | -rw-r--r-- | 8.2 KB |
jfs_types.h | -rw-r--r-- | 4.0 KB |
jfs_umount.c | -rw-r--r-- | 4.0 KB |
jfs_unicode.c | -rw-r--r-- | 3.3 KB |
jfs_unicode.h | -rw-r--r-- | 3.7 KB |
jfs_uniupr.c | -rw-r--r-- | 7.5 KB |
jfs_xattr.h | -rw-r--r-- | 2.6 KB |
jfs_xtree.c | -rw-r--r-- | 92.1 KB |
jfs_xtree.h | -rw-r--r-- | 4.0 KB |
namei.c | -rw-r--r-- | 37.0 KB |
resize.c | -rw-r--r-- | 14.7 KB |
super.c | -rw-r--r-- | 23.0 KB |
symlink.c | -rw-r--r-- | 1.6 KB |
xattr.c | -rw-r--r-- | 27.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...