summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2008-01-28 00:42:59 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2008-01-28 00:42:59 +0000
commit3496ddf4b32fd9dea06162a3b5076586f9611bca (patch)
tree44b6fe121923e26a9d63940916a17e2fce08befd
parentlatest svn (diff)
downloadje_fro-3496ddf4b32fd9dea06162a3b5076586f9611bca.tar.gz
je_fro-3496ddf4b32fd9dea06162a3b5076586f9611bca.tar.bz2
je_fro-3496ddf4b32fd9dea06162a3b5076586f9611bca.zip
Trying the mactel-linux 2.6.24 svn r145 patches.
svn path=/; revision=166
-rw-r--r--sys-kernel/mactel-linux-sources/Manifest110
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch76
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch115
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc_int.patch415
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/appletouch.patch23
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch28
-rw-r--r--sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch30
-rw-r--r--sys-kernel/mactel-linux-sources/files/digest-mactel-linux-sources-2.6.249
-rw-r--r--sys-kernel/mactel-linux-sources/mactel-linux-sources-2.6.24.ebuild38
9 files changed, 768 insertions, 76 deletions
diff --git a/sys-kernel/mactel-linux-sources/Manifest b/sys-kernel/mactel-linux-sources/Manifest
index 96bb48a..24ed5f3 100644
--- a/sys-kernel/mactel-linux-sources/Manifest
+++ b/sys-kernel/mactel-linux-sources/Manifest
@@ -1,63 +1,27 @@
-AUX mactel-patches-r138/appleir-undo-hid-blacklist.patch 1243 RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c SHA1 781ebfa912ab0cade15a2db978ec4bc0824e7211 SHA256 cbb945e2691f71f58baff171156778b99d59e31b89c10c604a2adf67cd29fa7e
-MD5 6cafb3260807e7a4e8fe6ed7efa90d7c files/mactel-patches-r138/appleir-undo-hid-blacklist.patch 1243
-RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c files/mactel-patches-r138/appleir-undo-hid-blacklist.patch 1243
-SHA256 cbb945e2691f71f58baff171156778b99d59e31b89c10c604a2adf67cd29fa7e files/mactel-patches-r138/appleir-undo-hid-blacklist.patch 1243
-AUX mactel-patches-r138/applesmc-add-macbook-temperature-keys.patch 1608 RMD160 55c9ee3672d26328eae98013d4bd1170d7980ada SHA1 9b545fe0aec185d4d074935b2e7bff68211892ba SHA256 8598fe0a787d14c48da1fa364bbfe4e38a21d1ef05d504adfb2c347e5a4faf37
-MD5 986dc5fce1439bd828bb0b1dd58f256c files/mactel-patches-r138/applesmc-add-macbook-temperature-keys.patch 1608
-RMD160 55c9ee3672d26328eae98013d4bd1170d7980ada files/mactel-patches-r138/applesmc-add-macbook-temperature-keys.patch 1608
-SHA256 8598fe0a787d14c48da1fa364bbfe4e38a21d1ef05d504adfb2c347e5a4faf37 files/mactel-patches-r138/applesmc-add-macbook-temperature-keys.patch 1608
-AUX mactel-patches-r138/applesmc-use-input-polldev.patch 6730 RMD160 4bb41be03d0cac7cc363607308be747aa963b7a0 SHA1 b70322552e936ccb1359f28a0368c67ac873f417 SHA256 3db966ce685b0a580bd71ef3d8ee14e0fa6ba1fd9c1740515e88b15e8b6e79a4
-MD5 ee2e79dbfac67279a47fed5e19ad55b9 files/mactel-patches-r138/applesmc-use-input-polldev.patch 6730
-RMD160 4bb41be03d0cac7cc363607308be747aa963b7a0 files/mactel-patches-r138/applesmc-use-input-polldev.patch 6730
-SHA256 3db966ce685b0a580bd71ef3d8ee14e0fa6ba1fd9c1740515e88b15e8b6e79a4 files/mactel-patches-r138/applesmc-use-input-polldev.patch 6730
-AUX mactel-patches-r138/applesmc_int.patch 11196 RMD160 f1aab1302478373644ee6372ee7d56ac3d267e8e SHA1 bd477fbd19992d331d93450ee979a015a0992f5a SHA256 344c50897e4105c79b327587ad8eabd87466309b6e90be63fe3aa2018049efa0
-MD5 6729cbb7d47277c64bac2d509b7dc6ff files/mactel-patches-r138/applesmc_int.patch 11196
-RMD160 f1aab1302478373644ee6372ee7d56ac3d267e8e files/mactel-patches-r138/applesmc_int.patch 11196
-SHA256 344c50897e4105c79b327587ad8eabd87466309b6e90be63fe3aa2018049efa0 files/mactel-patches-r138/applesmc_int.patch 11196
-AUX mactel-patches-r138/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532 RMD160 692a4f4cd1b35691ca5627a7887ad8e3ca277d46 SHA1 f474eb6bbf9a77d228510879b90b7ab494694916 SHA256 c3ebafd0dc2db7905561e19321bfde3547638d88b29ecc60e19c67d02c30de11
-MD5 3c49f9f552f9a0a5ffdf5aaed030cf96 files/mactel-patches-r138/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-RMD160 692a4f4cd1b35691ca5627a7887ad8e3ca277d46 files/mactel-patches-r138/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-SHA256 c3ebafd0dc2db7905561e19321bfde3547638d88b29ecc60e19c67d02c30de11 files/mactel-patches-r138/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-AUX mactel-patches-r138/appletouch.patch 673 RMD160 a999e0be735e8773aa8de7e1c46eb065c344ad93 SHA1 bd923cabc3a07382c698f9fdd571bbf92c79c4d8 SHA256 e32bd2088ebeb99f03e7bf52301b047b0ff5b595565af0b70df71ba1e5a7a604
-MD5 4753986b03c066d8a9b916ef8a15a36b files/mactel-patches-r138/appletouch.patch 673
-RMD160 a999e0be735e8773aa8de7e1c46eb065c344ad93 files/mactel-patches-r138/appletouch.patch 673
-SHA256 e32bd2088ebeb99f03e7bf52301b047b0ff5b595565af0b70df71ba1e5a7a604 files/mactel-patches-r138/appletouch.patch 673
-AUX mactel-patches-r138/sigmatel-backport-2.6.23.patch 11073 RMD160 da1596221d9235dc367c38562d710606d088a010 SHA1 d6e7972cb462853b8951efb8f31303a6b6acfd5d SHA256 001bf670cfdb292a3c28ba9cbf09066f07fc373b469fbb6f41d3e115cbb74c77
-MD5 776192d1e332bfbc7008815d20dc57ea files/mactel-patches-r138/sigmatel-backport-2.6.23.patch 11073
-RMD160 da1596221d9235dc367c38562d710606d088a010 files/mactel-patches-r138/sigmatel-backport-2.6.23.patch 11073
-SHA256 001bf670cfdb292a3c28ba9cbf09066f07fc373b469fbb6f41d3e115cbb74c77 files/mactel-patches-r138/sigmatel-backport-2.6.23.patch 11073
-AUX mactel-patches-r140/appleir-undo-hid-blacklist.patch 1243 RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c SHA1 781ebfa912ab0cade15a2db978ec4bc0824e7211 SHA256 cbb945e2691f71f58baff171156778b99d59e31b89c10c604a2adf67cd29fa7e
-MD5 6cafb3260807e7a4e8fe6ed7efa90d7c files/mactel-patches-r140/appleir-undo-hid-blacklist.patch 1243
-RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c files/mactel-patches-r140/appleir-undo-hid-blacklist.patch 1243
-SHA256 cbb945e2691f71f58baff171156778b99d59e31b89c10c604a2adf67cd29fa7e files/mactel-patches-r140/appleir-undo-hid-blacklist.patch 1243
-AUX mactel-patches-r140/applesmc-add-macbook-temperature-keys.patch 1608 RMD160 55c9ee3672d26328eae98013d4bd1170d7980ada SHA1 9b545fe0aec185d4d074935b2e7bff68211892ba SHA256 8598fe0a787d14c48da1fa364bbfe4e38a21d1ef05d504adfb2c347e5a4faf37
-MD5 986dc5fce1439bd828bb0b1dd58f256c files/mactel-patches-r140/applesmc-add-macbook-temperature-keys.patch 1608
-RMD160 55c9ee3672d26328eae98013d4bd1170d7980ada files/mactel-patches-r140/applesmc-add-macbook-temperature-keys.patch 1608
-SHA256 8598fe0a787d14c48da1fa364bbfe4e38a21d1ef05d504adfb2c347e5a4faf37 files/mactel-patches-r140/applesmc-add-macbook-temperature-keys.patch 1608
-AUX mactel-patches-r140/applesmc-retry-when-accessing-keys.patch 3004 RMD160 4fb1f4a7e6e2e49f2417e8fe926b0b72073e36f6 SHA1 7db2c2d306048eb0546d01c492927c06868ce6ee SHA256 dd483fc5fecdd1f060ab8b5fa4c090134f58e6a53941dd7ece8196359437ec8d
-MD5 50a4d32f1007f54264ad58e7339b704a files/mactel-patches-r140/applesmc-retry-when-accessing-keys.patch 3004
-RMD160 4fb1f4a7e6e2e49f2417e8fe926b0b72073e36f6 files/mactel-patches-r140/applesmc-retry-when-accessing-keys.patch 3004
-SHA256 dd483fc5fecdd1f060ab8b5fa4c090134f58e6a53941dd7ece8196359437ec8d files/mactel-patches-r140/applesmc-retry-when-accessing-keys.patch 3004
-AUX mactel-patches-r140/applesmc-use-input-polldev.patch 6730 RMD160 4bb41be03d0cac7cc363607308be747aa963b7a0 SHA1 b70322552e936ccb1359f28a0368c67ac873f417 SHA256 3db966ce685b0a580bd71ef3d8ee14e0fa6ba1fd9c1740515e88b15e8b6e79a4
-MD5 ee2e79dbfac67279a47fed5e19ad55b9 files/mactel-patches-r140/applesmc-use-input-polldev.patch 6730
-RMD160 4bb41be03d0cac7cc363607308be747aa963b7a0 files/mactel-patches-r140/applesmc-use-input-polldev.patch 6730
-SHA256 3db966ce685b0a580bd71ef3d8ee14e0fa6ba1fd9c1740515e88b15e8b6e79a4 files/mactel-patches-r140/applesmc-use-input-polldev.patch 6730
-AUX mactel-patches-r140/applesmc_int.patch 11196 RMD160 f1aab1302478373644ee6372ee7d56ac3d267e8e SHA1 bd477fbd19992d331d93450ee979a015a0992f5a SHA256 344c50897e4105c79b327587ad8eabd87466309b6e90be63fe3aa2018049efa0
-MD5 6729cbb7d47277c64bac2d509b7dc6ff files/mactel-patches-r140/applesmc_int.patch 11196
-RMD160 f1aab1302478373644ee6372ee7d56ac3d267e8e files/mactel-patches-r140/applesmc_int.patch 11196
-SHA256 344c50897e4105c79b327587ad8eabd87466309b6e90be63fe3aa2018049efa0 files/mactel-patches-r140/applesmc_int.patch 11196
-AUX mactel-patches-r140/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532 RMD160 692a4f4cd1b35691ca5627a7887ad8e3ca277d46 SHA1 f474eb6bbf9a77d228510879b90b7ab494694916 SHA256 c3ebafd0dc2db7905561e19321bfde3547638d88b29ecc60e19c67d02c30de11
-MD5 3c49f9f552f9a0a5ffdf5aaed030cf96 files/mactel-patches-r140/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-RMD160 692a4f4cd1b35691ca5627a7887ad8e3ca277d46 files/mactel-patches-r140/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-SHA256 c3ebafd0dc2db7905561e19321bfde3547638d88b29ecc60e19c67d02c30de11 files/mactel-patches-r140/appletouch-shut-up-when-it-has-nothing-to-say.patch 6532
-AUX mactel-patches-r140/appletouch.patch 673 RMD160 a999e0be735e8773aa8de7e1c46eb065c344ad93 SHA1 bd923cabc3a07382c698f9fdd571bbf92c79c4d8 SHA256 e32bd2088ebeb99f03e7bf52301b047b0ff5b595565af0b70df71ba1e5a7a604
-MD5 4753986b03c066d8a9b916ef8a15a36b files/mactel-patches-r140/appletouch.patch 673
-RMD160 a999e0be735e8773aa8de7e1c46eb065c344ad93 files/mactel-patches-r140/appletouch.patch 673
-SHA256 e32bd2088ebeb99f03e7bf52301b047b0ff5b595565af0b70df71ba1e5a7a604 files/mactel-patches-r140/appletouch.patch 673
-AUX mactel-patches-r140/sigmatel-backport-2.6.23.patch 11073 RMD160 da1596221d9235dc367c38562d710606d088a010 SHA1 d6e7972cb462853b8951efb8f31303a6b6acfd5d SHA256 001bf670cfdb292a3c28ba9cbf09066f07fc373b469fbb6f41d3e115cbb74c77
-MD5 776192d1e332bfbc7008815d20dc57ea files/mactel-patches-r140/sigmatel-backport-2.6.23.patch 11073
-RMD160 da1596221d9235dc367c38562d710606d088a010 files/mactel-patches-r140/sigmatel-backport-2.6.23.patch 11073
-SHA256 001bf670cfdb292a3c28ba9cbf09066f07fc373b469fbb6f41d3e115cbb74c77 files/mactel-patches-r140/sigmatel-backport-2.6.23.patch 11073
+AUX 2.6.24-mactel-patches-r145/applesmc-macbook2.patch 3087 RMD160 cc8004b2cded1ab1e799f80892e9c0ead247f1ac SHA1 9ebdbe5427a962fc8fd1293f2ec5c6b0bf9472c2 SHA256 7e77a025094f33329d72b3173a59d7b45046e6e244b8f7fa86ac397fa6455eff
+MD5 5385bcd5f2ee395b1d495961be467bc0 files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch 3087
+RMD160 cc8004b2cded1ab1e799f80892e9c0ead247f1ac files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch 3087
+SHA256 7e77a025094f33329d72b3173a59d7b45046e6e244b8f7fa86ac397fa6455eff files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch 3087
+AUX 2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch 3004 RMD160 424e9ddee6928a97eea55dbbbc8dec0ab5538b9b SHA1 262db3755ab837468aea2f7c89c755c5e597ac09 SHA256 82bf776bb5029f5a9a292c5a42109fa22f3ce5540122af5faad4ad273592c3c9
+MD5 065ed62d005f946b98832fe31eac9461 files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch 3004
+RMD160 424e9ddee6928a97eea55dbbbc8dec0ab5538b9b files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch 3004
+SHA256 82bf776bb5029f5a9a292c5a42109fa22f3ce5540122af5faad4ad273592c3c9 files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch 3004
+AUX 2.6.24-mactel-patches-r145/applesmc_int.patch 11196 RMD160 732ddf93bdbb07e23607d0247b21276e45d7d6dd SHA1 89ac3dd9dfc2a62d28a01aab6d5b6281e91ea94a SHA256 7a000e30e7323654a13e3880cfab258578c2af2cc890f09d14e41ade440d16f7
+MD5 78e61016dc8aca138aad72901dda0f8b files/2.6.24-mactel-patches-r145/applesmc_int.patch 11196
+RMD160 732ddf93bdbb07e23607d0247b21276e45d7d6dd files/2.6.24-mactel-patches-r145/applesmc_int.patch 11196
+SHA256 7a000e30e7323654a13e3880cfab258578c2af2cc890f09d14e41ade440d16f7 files/2.6.24-mactel-patches-r145/applesmc_int.patch 11196
+AUX 2.6.24-mactel-patches-r145/appletouch.patch 653 RMD160 7af72520cfc712a37ad3a44e2d7ffa66284cdd77 SHA1 0a2ae7c4d9057322be7bfe269c1724bbdcb1c6e6 SHA256 4ed7833238e497050fc175e2f41777e983a58ba61b6ed6034df307065e57cf8e
+MD5 17aaa8e32710713111814fa69725d32e files/2.6.24-mactel-patches-r145/appletouch.patch 653
+RMD160 7af72520cfc712a37ad3a44e2d7ffa66284cdd77 files/2.6.24-mactel-patches-r145/appletouch.patch 653
+SHA256 4ed7833238e497050fc175e2f41777e983a58ba61b6ed6034df307065e57cf8e files/2.6.24-mactel-patches-r145/appletouch.patch 653
+AUX 2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch 819 RMD160 8bec3f90f028e060695aebf0f8bae63778cd013c SHA1 19142c8fd86614727b95a0374539315995768e25 SHA256 94e7415487d455cbd1d0f6a3d5a393b4d008ac6dedf1a335a2aa40b70d6767f2
+MD5 f17d7398b9f564959ec5bf7c12082775 files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch 819
+RMD160 8bec3f90f028e060695aebf0f8bae63778cd013c files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch 819
+SHA256 94e7415487d455cbd1d0f6a3d5a393b4d008ac6dedf1a335a2aa40b70d6767f2 files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch 819
+AUX 2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch 855 RMD160 f9a8a9c67f2a69e9e6cd5012c4a58e493d05930b SHA1 677656bd94f432aa92ad77b13c8fe32fd738a71b SHA256 4ad9524f09b2d3ffc2d3643be844a25e5ad11e7e7b4638e98340d10d27c5a722
+MD5 a17cc51c5f649f7185e68af0028e3177 files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch 855
+RMD160 f9a8a9c67f2a69e9e6cd5012c4a58e493d05930b files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch 855
+SHA256 4ad9524f09b2d3ffc2d3643be844a25e5ad11e7e7b4638e98340d10d27c5a722 files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch 855
AUX mactel-patches-r141/appleir-undo-hid-blacklist.patch 1243 RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c SHA1 781ebfa912ab0cade15a2db978ec4bc0824e7211 SHA256 cbb945e2691f71f58baff171156778b99d59e31b89c10c604a2adf67cd29fa7e
MD5 6cafb3260807e7a4e8fe6ed7efa90d7c files/mactel-patches-r141/appleir-undo-hid-blacklist.patch 1243
RMD160 9cab09367c6aa4d4d77a4c7c3a04879e6ae6d24c files/mactel-patches-r141/appleir-undo-hid-blacklist.patch 1243
@@ -186,24 +150,17 @@ AUX mactel-patches-r147/sigmatel_audio_fix_macbook_v2.patch 855 RMD160 8135541c8
MD5 eaefd430cae30ad5307ea58ba9f2be57 files/mactel-patches-r147/sigmatel_audio_fix_macbook_v2.patch 855
RMD160 8135541c8f9c988d78f4892c81b503d703a26b97 files/mactel-patches-r147/sigmatel_audio_fix_macbook_v2.patch 855
SHA256 08362cac191683e4d615e5f1220c976cf62bc2cf0d2850ee23c5c14d75638ac6 files/mactel-patches-r147/sigmatel_audio_fix_macbook_v2.patch 855
-DIST genpatches-2.6.22-2.base.tar.bz2 2742 RMD160 2bfb0c05acd2eb01f785d58d9785fc2f9a14d606 SHA1 78883f122d349940fc012d472eea64fec8cf179b SHA256 056838c82c8b6ef028afbe2b654882f375dedfe85eb8fec28b3919dd52048b6e
-DIST genpatches-2.6.22-2.extras.tar.bz2 63706 RMD160 42f3ec0477edb3751068f6fc815aab3f0065d619 SHA1 4715440b92f04466e2fc6f2d5d451b9eb084d62d SHA256 2c1bd61ab9c1c52748f1d70a967efc75d88d41c8f8864a0864754632b32538a8
DIST genpatches-2.6.22-6.base.tar.bz2 37424 RMD160 ad09510b3330014fd0ee945dfe5c5665b7571e4e SHA1 3cf8563ad950bddc7cef4cb569f429104efa8319 SHA256 7dad76e531041f4254a38c8ffbc94300cdabcf92dbc6b8c3d5f48e5f42b408fb
DIST genpatches-2.6.22-6.extras.tar.bz2 63748 RMD160 8e3f1503ab8ecb036b50bd9b5ce4d919f8841bf0 SHA1 05cb23861a665ba577f91d93f41e04054cb10826 SHA256 7dc5a4390c9f073261a7019023cdef0c2a583441d1e0ec512f54662246c83d3f
DIST genpatches-2.6.23-1.base.tar.bz2 3147 RMD160 555ed180e4e700f3ce913fe460f05eb8f71dfe46 SHA1 3d68154d4d956460aa66b6c6d30e857696d8c2f2 SHA256 773cbe243642b1c10a49cab1175fa1c54c0ca67d6471257ce66417a754d87578
DIST genpatches-2.6.23-1.extras.tar.bz2 57252 RMD160 201fdd76ba5024f662da2c2d20e03093bcecc6d5 SHA1 196238c658d68d9046b70c98d1340a1305a102df SHA256 50bf8799ea7816d72b0db7c0fa4b886379b7b49f366fd647130318ad5de314b6
DIST genpatches-2.6.23-5.base.tar.bz2 82324 RMD160 b49a59910d95bd12f077a5de51961cbb5799895e SHA1 edff5b23fb3c9949a76f5c58d95c1542f72d757b SHA256 d778784f81b1bfd342e0b94cbe2fc5324c102024c025e3152cf06c1e86787041
DIST genpatches-2.6.23-5.extras.tar.bz2 147992 RMD160 bb9cfc7687944b677799b2386bc4b36d95676cea SHA1 fc7f24df398033cdf8e0ff444020c58407aa9925 SHA256 9d272384be06e00ecfdfa1795262a0859e86acd09aa95c531ff311e210d87db6
+DIST genpatches-2.6.24-1.base.tar.bz2 960 RMD160 a7b9932bc33e8a56da4bfafbdf16749bf141db6c SHA1 19271490c3faf040b7cf580123690785e95c1c66 SHA256 3f7c948b72494aed970be1187a75c7c8573ad500e35c5bc9610b87ffa42bd54f
+DIST genpatches-2.6.24-1.extras.tar.bz2 41902 RMD160 259b831110120518149bbccdacf9982330af5ef0 SHA1 48d85d6b6cf84369b34d6fbd169fbfdaf97fc83f SHA256 bc8723863cace59d8bcb6d84d678cc9c370a5e2144133f543396b45e4655b063
DIST linux-2.6.22.tar.bz2 45119878 RMD160 c4b2ca5ee8e71c0f8f1c95f3c9c5f261f2785912 SHA1 39401f195a618f397312d6d84ff9aebe28d99381 SHA256 73c10604c53f1a6ee65ef805293d23903696f8cef864f42d7de9506f0d2ba4c7
DIST linux-2.6.23.tar.bz2 45488158 RMD160 755690e80751d5de86d260fe05c6eeadde116c4e SHA1 3a186adf13e44415796ab6381aa8979b16a5d5ca SHA256 d4e67c0935ffb2a4158234bff92cc791b83177866009fc9b2214104e0038dbdb
-EBUILD mactel-linux-sources-2.6.22-r1.ebuild 1015 RMD160 22bd8b202d28859ff8edb96af0b93b0c558265b0 SHA1 cb307f63b24e02185fdd25128edca03fc0abb1bb SHA256 0e8be879af694f1e2f6d48e43559396fbb68f1c687ee3f12c8ea3806e504a4cf
-MD5 558333d842184412aa7827e234a2d896 mactel-linux-sources-2.6.22-r1.ebuild 1015
-RMD160 22bd8b202d28859ff8edb96af0b93b0c558265b0 mactel-linux-sources-2.6.22-r1.ebuild 1015
-SHA256 0e8be879af694f1e2f6d48e43559396fbb68f1c687ee3f12c8ea3806e504a4cf mactel-linux-sources-2.6.22-r1.ebuild 1015
-EBUILD mactel-linux-sources-2.6.22-r2.ebuild 980 RMD160 7a9108d2d3b0e8a8a2749ccc02febc5946ed2927 SHA1 92c29d980b586a36b53e1769b6b8a1592a6179c8 SHA256 d46d1d2ec7e4203f219770d0355e51cd44604f3b26c253b7a08497d3b9fd3386
-MD5 2d87dcc388c450e69a16f4d7f0c6208b mactel-linux-sources-2.6.22-r2.ebuild 980
-RMD160 7a9108d2d3b0e8a8a2749ccc02febc5946ed2927 mactel-linux-sources-2.6.22-r2.ebuild 980
-SHA256 d46d1d2ec7e4203f219770d0355e51cd44604f3b26c253b7a08497d3b9fd3386 mactel-linux-sources-2.6.22-r2.ebuild 980
+DIST linux-2.6.24.tar.bz2 46737783 RMD160 0e5194c69c3d82c41ece689c4f84e638f8776d34 SHA1 351aebc784a5395fe4c92d1e514a89680482f7e2 SHA256 413c64fbbcf81244cb5571be4963644a1e81166a2b0f008a016528363b65c5d3
EBUILD mactel-linux-sources-2.6.22-r3.ebuild 1078 RMD160 4cd254b19d7d44da181dfd4b55937de6b4e89874 SHA1 bb8c9ca2faeb73a2db2632b7a1eec6907f047e00 SHA256 83c556df36a29032649bf8cb577f846319c5c402acbc1a8c9356854173008c38
MD5 e7c7735f09675aa9608a8b0f586e74e3 mactel-linux-sources-2.6.22-r3.ebuild 1078
RMD160 4cd254b19d7d44da181dfd4b55937de6b4e89874 mactel-linux-sources-2.6.22-r3.ebuild 1078
@@ -216,12 +173,10 @@ EBUILD mactel-linux-sources-2.6.23.ebuild 1156 RMD160 4c3b8420602b14a72171871be7
MD5 ec2ef327082d9e951adedb0459d18f5a mactel-linux-sources-2.6.23.ebuild 1156
RMD160 4c3b8420602b14a72171871be7c020fc63c05035 mactel-linux-sources-2.6.23.ebuild 1156
SHA256 67940fc4f01bde5f9de48f9fc40c24294115684e5f0b9ac8b8d40892e11e2119 mactel-linux-sources-2.6.23.ebuild 1156
-MD5 5335397db700b8b205539d4b2d9ad1d6 files/digest-mactel-linux-sources-2.6.22-r1 798
-RMD160 04cc66d11fe7c2c1224587e0d3bf3863cd6f94a3 files/digest-mactel-linux-sources-2.6.22-r1 798
-SHA256 722a780105853083e13b722a2a41247f412a0964b29997f7d2a5ba3d03019aad files/digest-mactel-linux-sources-2.6.22-r1 798
-MD5 f83c0844fadefce31f7740f86bf3cad2 files/digest-mactel-linux-sources-2.6.22-r2 801
-RMD160 d10b312f55bd1b4c923721968cae6bfa387abf99 files/digest-mactel-linux-sources-2.6.22-r2 801
-SHA256 84793279800820a1c88618a2289f390a53f8c588a50b410d3db0628dada5152f files/digest-mactel-linux-sources-2.6.22-r2 801
+EBUILD mactel-linux-sources-2.6.24.ebuild 1075 RMD160 d4faebe24ade521e9f1fabef1ad504da342ebce0 SHA1 387c68286eb8e79b289f954b0acd54aa5bcc65fc SHA256 5fae3a8d672c884078968748713868e85b741d9d8c7f9533429f1b94065868a9
+MD5 58c902fa3e1a935f5c709c518bef67f6 mactel-linux-sources-2.6.24.ebuild 1075
+RMD160 d4faebe24ade521e9f1fabef1ad504da342ebce0 mactel-linux-sources-2.6.24.ebuild 1075
+SHA256 5fae3a8d672c884078968748713868e85b741d9d8c7f9533429f1b94065868a9 mactel-linux-sources-2.6.24.ebuild 1075
MD5 f83c0844fadefce31f7740f86bf3cad2 files/digest-mactel-linux-sources-2.6.22-r3 801
RMD160 d10b312f55bd1b4c923721968cae6bfa387abf99 files/digest-mactel-linux-sources-2.6.22-r3 801
SHA256 84793279800820a1c88618a2289f390a53f8c588a50b410d3db0628dada5152f files/digest-mactel-linux-sources-2.6.22-r3 801
@@ -231,3 +186,6 @@ SHA256 91c37606d2f9fabebecbd311a1ecd0a89b6058c624b90fed135be807d116feba files/di
MD5 3560859548cebc2c6daf3fd183837141 files/digest-mactel-linux-sources-2.6.23-r4 804
RMD160 906ae21265c8886a7d629d56524e3bb6a7f7294e files/digest-mactel-linux-sources-2.6.23-r4 804
SHA256 6be75c66c3e929c8f25d6c83e4c50e8ad09776b92730848ae87362dff6d350cf files/digest-mactel-linux-sources-2.6.23-r4 804
+MD5 432ee9f9a4d39c644cde2b7619016c1b files/digest-mactel-linux-sources-2.6.24 795
+RMD160 1c9c8cdf24fe106071187d8d6266320d160935f8 files/digest-mactel-linux-sources-2.6.24 795
+SHA256 5549a2760166ae0c8cc07d3da094813dd860c817ba0578a60885d5790439cb10 files/digest-mactel-linux-sources-2.6.24 795
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch
new file mode 100644
index 0000000..ec3128a
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-macbook2.patch
@@ -0,0 +1,76 @@
+Add sensors set for MacBook2, from register dump on a mid-2007 MacBook2.
+
+From: Riki Oktarianto <rkoktarianto@gmail.com>
+
+
+---
+
+ drivers/hwmon/applesmc.c | 29 +++++++++++++++++++----------
+ 1 files changed, 19 insertions(+), 10 deletions(-)
+
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index 86c66c3..c0dd9b1 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -84,12 +84,15 @@ static const char* temperature_sensors_sets[][36] = {
+ /* Set 0: Macbook Pro */
+ { "TA0P", "TB0T", "TC0D", "TC0P", "TG0H", "TG0P", "TG0T", "Th0H",
+ "Th1H", "Tm0P", "Ts0P", "Ts1P", NULL },
+-/* Set 1: Macbook set */
++/* Set 1: Macbook2 set */
++ { "TB0T", "TC0D", "TC0P", "TM0P", "TN0P", "TN1P", "TTF0", "Th0H",
++ "Th0S", "Th1H", NULL },
++/* Set 2: Macbook set */
+ { "TB0T", "TC0D", "TC0P", "TM0P", "TN0P", "TN1P", "Th0H", "Th0S",
+ "Th1H", "Ts0P", NULL },
+-/* Set 2: Macmini set */
++/* Set 3: Macmini set */
+ { "TC0D", "TC0P", NULL },
+-/* Set 3: Mac Pro (2 x Quad-Core) */
++/* Set 4: Mac Pro (2 x Quad-Core) */
+ { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", "TC0C", "TC0D", "TC0P",
+ "TC1C", "TC1D", "TC2C", "TC2D", "TC3C", "TC3D", "THTG", "TH0P",
+ "TH1P", "TH2P", "TH3P", "TMAP", "TMAS", "TMBS", "TM0P", "TM0S",
+@@ -1212,12 +1215,14 @@ static void applesmc_release_accelerometer(void)
+ static __initdata struct dmi_match_data applesmc_dmi_data[] = {
+ /* MacBook Pro: accelerometer, backlight and temperature set 0 */
+ { .accelerometer = 1, .light = 1, .temperature_set = 0 },
+-/* MacBook: accelerometer and temperature set 1 */
++/* MacBook2: accelerometer and temperature set 1 */
+ { .accelerometer = 1, .light = 0, .temperature_set = 1 },
+-/* MacMini: temperature set 2 */
+- { .accelerometer = 0, .light = 0, .temperature_set = 2 },
+-/* MacPro: temperature set 3 */
++/* MacBook: accelerometer and temperature set 2 */
++ { .accelerometer = 1, .light = 0, .temperature_set = 2 },
++/* MacMini: temperature set 3 */
+ { .accelerometer = 0, .light = 0, .temperature_set = 3 },
++/* MacPro: temperature set 4 */
++ { .accelerometer = 0, .light = 0, .temperature_set = 4 },
+ };
+
+ /* Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1".
+@@ -1229,16 +1234,20 @@ static __initdata struct dmi_system_id applesmc_whitelist[] = {
+ (void*)&applesmc_dmi_data[0]},
+ { applesmc_dmi_match, "Apple MacBook", {
+ DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
+- DMI_MATCH(DMI_PRODUCT_NAME,"MacBook") },
++ DMI_MATCH(DMI_PRODUCT_NAME,"MacBook2") },
+ (void*)&applesmc_dmi_data[1]},
++ { applesmc_dmi_match, "Apple MacBook", {
++ DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
++ DMI_MATCH(DMI_PRODUCT_NAME,"MacBook") },
++ (void*)&applesmc_dmi_data[2]},
+ { applesmc_dmi_match, "Apple Macmini", {
+ DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
+ DMI_MATCH(DMI_PRODUCT_NAME,"Macmini") },
+- (void*)&applesmc_dmi_data[2]},
++ (void*)&applesmc_dmi_data[3]},
+ { applesmc_dmi_match, "Apple MacPro2", {
+ DMI_MATCH(DMI_BOARD_VENDOR,"Apple"),
+ DMI_MATCH(DMI_PRODUCT_NAME,"MacPro2") },
+- (void*)&applesmc_dmi_data[3]},
++ (void*)&applesmc_dmi_data[4]},
+ { .ident = NULL }
+ };
+
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch
new file mode 100644
index 0000000..a12be92
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc-retry-when-accessing-keys.patch
@@ -0,0 +1,115 @@
+Retry up to 200 ms when reading or writing keys.
+
+From: Nicolas Boichat <nicolas@boichat.ch>
+
+
+---
+
+ drivers/hwmon/applesmc.c | 69 +++++++++++++++++++++++++++++++---------------
+ 1 files changed, 47 insertions(+), 22 deletions(-)
+
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index c0dd9b1..3b09cdb 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -112,6 +112,9 @@ static const char* fan_speed_keys[] = {
+ #define INIT_TIMEOUT_MSECS 5000 /* wait up to 5s for device init ... */
+ #define INIT_WAIT_MSECS 50 /* ... in 50ms increments */
+
++#define ACCESS_TIMEOUT_MSECS 500 /* wait up to 500ms when accessing a key */
++#define ACCESS_WAIT_MSECS 5 /* ... in 5ms increments */
++
+ #define APPLESMC_POLL_INTERVAL 50 /* msecs */
+ #define APPLESMC_INPUT_FUZZ 4 /* input event threshold */
+ #define APPLESMC_INPUT_FLAT 4
+@@ -186,12 +189,13 @@ static int __wait_status(u8 val)
+
+ /*
+ * applesmc_read_key - reads len bytes from a given key, and put them in buffer.
++ * Tries up to ACCESS_WAIT_MSECS to read the value.
+ * Returns zero on success or a negative error on failure. Callers must
+ * hold applesmc_lock.
+ */
+ static int applesmc_read_key(const char* key, u8* buffer, u8 len)
+ {
+- int i;
++ int i, total, ret;
+
+ if (len > APPLESMC_MAX_DATA_LENGTH) {
+ printk(KERN_ERR "applesmc_read_key: cannot read more than "
+@@ -199,33 +203,54 @@ static int applesmc_read_key(const char* key, u8* buffer, u8 len)
+ return -EINVAL;
+ }
+
+- outb(APPLESMC_READ_CMD, APPLESMC_CMD_PORT);
+- if (__wait_status(0x0c))
+- return -EIO;
++ for (total = ACCESS_TIMEOUT_MSECS; total > 0;
++ total -= ACCESS_WAIT_MSECS) {
++ ret = 0;
++ outb(APPLESMC_READ_CMD, APPLESMC_CMD_PORT);
++ if (__wait_status(0x0c)) {
++ ret = -EIO;
++ goto wait_fail;
++ }
+
+- for (i = 0; i < 4; i++) {
+- outb(key[i], APPLESMC_DATA_PORT);
+- if (__wait_status(0x04))
+- return -EIO;
+- }
+- if (debug)
+- printk(KERN_DEBUG "<%s", key);
++ for (i = 0; i < 4; i++) {
++ outb(key[i], APPLESMC_DATA_PORT);
++ if (__wait_status(0x04)) {
++ ret = -EIO;
++ goto wait_fail;
++ }
++ }
++ if (debug)
++ printk(KERN_DEBUG "<%s", key);
+
+- outb(len, APPLESMC_DATA_PORT);
+- if (debug)
+- printk(KERN_DEBUG ">%x", len);
++ outb(len, APPLESMC_DATA_PORT);
++ if (debug)
++ printk(KERN_DEBUG ">%x", len);
+
+- for (i = 0; i < len; i++) {
+- if (__wait_status(0x05))
+- return -EIO;
+- buffer[i] = inb(APPLESMC_DATA_PORT);
++ for (i = 0; i < len; i++) {
++ if (__wait_status(0x05)) {
++ ret = -EIO;
++ goto wait_fail;
++ }
++ buffer[i] = inb(APPLESMC_DATA_PORT);
++ if (debug)
++ printk(KERN_DEBUG "<%x", buffer[i]);
++ }
+ if (debug)
+- printk(KERN_DEBUG "<%x", buffer[i]);
++ printk(KERN_DEBUG "\n");
++
++ break;
++
++wait_fail:
++ msleep(ACCESS_WAIT_MSECS);
++ continue;
+ }
+- if (debug)
+- printk(KERN_DEBUG "\n");
+
+- return 0;
++ if (total != ACCESS_TIMEOUT_MSECS) {
++ printk(KERN_DEBUG "Read: Waited %d ms for the value\n",
++ ACCESS_TIMEOUT_MSECS-total);
++ }
++
++ return ret;
+ }
+
+ /*
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc_int.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc_int.patch
new file mode 100644
index 0000000..5a10e44
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/applesmc_int.patch
@@ -0,0 +1,415 @@
+Add interrupt support for the accelerometer. A message is printed in dmesg when an interrupt occurs, but no further handling is done.
+
+From: Nicolas Boichat <nicolas@boichat.ch>
+
+
+---
+
+ drivers/hwmon/applesmc.c | 321 +++++++++++++++++++++++++++++++++++++++++++---
+ 1 files changed, 298 insertions(+), 23 deletions(-)
+
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index 3b09cdb..ff3e79d 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -39,14 +39,20 @@
+ #include <linux/leds.h>
+ #include <linux/hwmon.h>
+ #include <linux/workqueue.h>
++#include <linux/interrupt.h>
+
+ /* data port used by Apple SMC */
+ #define APPLESMC_DATA_PORT 0x300
+ /* command/status port used by Apple SMC */
+ #define APPLESMC_CMD_PORT 0x304
++/* status port used by Apple SMC to get which interrupt type just happened */
++#define APPLESMC_INT_PORT 0x31f
+
+ #define APPLESMC_NR_PORTS 32 /* 0x300-0x31f */
+
++/* Defined in ACPI DSDT table, should we read it from there? */
++#define APPLESMC_IRQ 6
++
+ #define APPLESMC_MAX_DATA_LENGTH 32
+
+ #define APPLESMC_STATUS_MASK 0x0f
+@@ -57,6 +63,8 @@
+
+ #define KEY_COUNT_KEY "#KEY" /* r-o ui32 */
+
++#define INTERRUPT_OK_KEY "NTOK" /* w-o ui8 */
++
+ #define LIGHT_SENSOR_LEFT_KEY "ALV0" /* r-o {alv (6 bytes) */
+ #define LIGHT_SENSOR_RIGHT_KEY "ALV1" /* r-o {alv (6 bytes) */
+ #define BACKLIGHT_KEY "LKSB" /* w-o {lkb (2 bytes) */
+@@ -68,6 +76,19 @@
+ #define MOTION_SENSOR_Z_KEY "MO_Z" /* r-o sp78 (2 bytes) */
+ #define MOTION_SENSOR_KEY "MOCN" /* r/w ui16 */
+
++/*
++ * Interrupt controls.
++ * If the norm of the position (sqrt(MO_X^2+MO_Y^2+MO_Z^2)) is smaller than
++ * MOLT (free fall), or bigger than MOHT (high acceleration) for longer than the
++ * value of MOLD (or MOHD), SMC will trigger an interrupt.
++ */
++#define MOTION_LOW_NORM "MOLT" /* r/w sp78 (2 bytes) */
++#define MOTION_HIGH_NORM "MOHT" /* r/w sp78 (2 bytes) */
++#define MOTION_LOW_NORM_INTERVAL "MOLD" /* r/w ui8 */
++#define MOTION_HIGH_NORM_INTERVAL "MOHD" /* r/w ui8 */
++
++#define MSDW_KEY "MSDW" /* r/w flag (1 byte) */
++
+ #define FANS_COUNT "FNum" /* r-o ui8 */
+ #define FANS_MANUAL "FS! " /* r-w ui16 */
+ #define FAN_ACTUAL_SPEED "F0Ac" /* r-o fpe2 (2 bytes) */
+@@ -385,12 +406,83 @@ static int applesmc_read_motion_sensor(int index, s16* value)
+ }
+
+ /*
++ * applesmc_init_check_key_value - checks if a given key contains the bytes in
++ * buffer, if not, writes these bytes.
++ * In case of failure retry every INIT_WAIT_MSECS msec, and timeout if it
++ * waited more than INIT_TIMEOUT_MSECS in total.
++ * Returns zero on success or a negative error on failure. Callers must
++ * hold applesmc_lock.
++ */
++static int applesmc_init_check_key_value(const char *key, u8 *buffer, u8 len)
++{
++ int total, ret, i, compare;
++ u8 rdbuffer[APPLESMC_MAX_DATA_LENGTH];
++
++ if (len > APPLESMC_MAX_DATA_LENGTH) {
++ printk(KERN_ERR "applesmc_init_check_key_value: cannot "
++ "read/write more than %d bytes",
++ APPLESMC_MAX_DATA_LENGTH);
++ return -EINVAL;
++ }
++
++ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
++ ret = applesmc_read_key(key, rdbuffer, len);
++ if (!ret) {
++ compare = 1;
++ for (i = 0; i < len; i++) {
++ if (rdbuffer[i] != buffer[i]) {
++ compare = 0;
++ break;
++ }
++ }
++
++ if (compare) {
++ return 0;
++ }
++ }
++ ret = applesmc_write_key(key, buffer, len);
++ msleep(INIT_WAIT_MSECS);
++ }
++
++ if (ret)
++ return ret;
++ else
++ return -EIO;
++}
++
++irqreturn_t applesmc_irq_handler(int irq, void *dev_id)
++{
++ u8 int_type = inb(APPLESMC_INT_PORT);
++
++ switch (int_type) {
++ case 0x60:
++ printk(KERN_INFO "applesmc: received a free fall interrupt\n");
++ break;
++ case 0x6f:
++ printk(KERN_INFO
++ "applesmc: received a high acceleration interrupt\n");
++ break;
++ case 0x80:
++ printk(KERN_INFO "applesmc: received a shock interrupt\n");
++ break;
++ default:
++ printk(KERN_INFO
++ "applesmc: received an unknown interrupt %x\n",
++ int_type);
++ }
++
++ return IRQ_HANDLED;
++}
++
++/*
+ * applesmc_device_init - initialize the accelerometer. Returns zero on success
+ * and negative error code on failure. Can sleep.
+ */
+ static int applesmc_device_init(void)
+ {
+- int total, ret = -ENXIO;
++ int total;
++ int ret = -ENXIO;
++ int ret1, ret2;
+ u8 buffer[2];
+
+ if (!applesmc_accelerometer)
+@@ -398,32 +490,79 @@ static int applesmc_device_init(void)
+
+ mutex_lock(&applesmc_lock);
+
++ /* Accept interrupts */
++ buffer[0] = 0x01;
+ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
+- if (debug)
+- printk(KERN_DEBUG "applesmc try %d\n", total);
+- if (!applesmc_read_key(MOTION_SENSOR_KEY, buffer, 2) &&
+- (buffer[0] != 0x00 || buffer[1] != 0x00)) {
+- if (total == INIT_TIMEOUT_MSECS) {
+- printk(KERN_DEBUG "applesmc: device has"
+- " already been initialized"
+- " (0x%02x, 0x%02x).\n",
+- buffer[0], buffer[1]);
+- } else {
+- printk(KERN_DEBUG "applesmc: device"
+- " successfully initialized"
+- " (0x%02x, 0x%02x).\n",
+- buffer[0], buffer[1]);
+- }
+- ret = 0;
+- goto out;
+- }
+- buffer[0] = 0xe0;
+- buffer[1] = 0x00;
+- applesmc_write_key(MOTION_SENSOR_KEY, buffer, 2);
++ ret1 = applesmc_write_key(INTERRUPT_OK_KEY, buffer, 1);
+ msleep(INIT_WAIT_MSECS);
++
++ if (!ret1)
++ break;
++ }
++ if (ret1)
++ printk(KERN_WARNING "applesmc: Cannot set NTOK key, "
++ "will not receive interrupts.\n");
++
++ /* Setup interrupt controls. */
++ buffer[0] = 20; /* 20 msecs */
++ ret1 = applesmc_init_check_key_value(MOTION_LOW_NORM_INTERVAL,
++ buffer, 1);
++
++ buffer[0] = 20; /* 20 msecs */
++ ret2 = applesmc_init_check_key_value(MOTION_HIGH_NORM_INTERVAL,
++ buffer, 1);
++
++ if (ret1 || ret2) {
++ printk(KERN_WARNING "applesmc: Cannot set motion sensor "
++ "interrupt interval, might not receive "
++ "some interrupts.");
+ }
+
+- printk(KERN_WARNING "applesmc: failed to init the device\n");
++ buffer[0] = 0x00;
++ buffer[1] = 0x60;
++ ret1 = applesmc_init_check_key_value(MOTION_LOW_NORM, buffer, 2);
++
++ buffer[0] = 0x01;
++ buffer[1] = 0xc0;
++ ret2 = applesmc_init_check_key_value(MOTION_HIGH_NORM, buffer, 2);
++
++ if (ret1 || ret2) {
++ printk(KERN_WARNING "applesmc: Cannot set motion sensor "
++ "min/max norm parameters, "
++ "might not receive some interrupts.");
++ }
++
++ /* Mysterious key. */
++ buffer[0] = 0x01;
++ for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) {
++ ret1 = applesmc_write_key(MSDW_KEY, buffer, 1);
++ msleep(INIT_WAIT_MSECS);
++
++ if (!ret1)
++ break;
++ }
++ if (ret1)
++ printk(KERN_WARNING "applesmc: Cannot set MSDW key\n");
++
++ /* Initialize the device. */
++ buffer[0] = 0xe0;
++ buffer[1] = 0xf8;
++ if (applesmc_init_check_key_value(MOTION_SENSOR_KEY, buffer, 2)) {
++ printk(KERN_WARNING "applesmc: failed to init "
++ "the accelerometer\n");
++ goto out;
++ }
++
++ ret1 = request_irq(APPLESMC_IRQ, applesmc_irq_handler, IRQF_DISABLED,
++ "applesmc_irq_handler", NULL);
++
++ if (ret1) {
++ printk(KERN_WARNING "applesmc: cannot setup irq handler\n");
++ }
++
++ printk(KERN_DEBUG "applesmc: accelerometer "
++ "successfully initialized.\n");
++ ret = 0;
+
+ out:
+ mutex_unlock(&applesmc_lock);
+@@ -468,9 +607,16 @@ static int applesmc_resume(struct platform_device *dev)
+ return applesmc_device_init();
+ }
+
++static int applesmc_remove(struct platform_device *dev)
++{
++ free_irq(APPLESMC_IRQ, NULL);
++ return 0;
++}
++
+ static struct platform_driver applesmc_driver = {
+ .probe = applesmc_probe,
+ .resume = applesmc_resume,
++ .remove = applesmc_remove,
+ .driver = {
+ .name = "applesmc",
+ .owner = THIS_MODULE,
+@@ -932,6 +1078,123 @@ static ssize_t applesmc_key_at_index_store(struct device *dev,
+ return count;
+ }
+
++static ssize_t applesmc_accelerometer_show(struct device *dev,
++ struct device_attribute *attr, char *sysfsbuf)
++{
++ int ret;
++ unsigned int value = 0;
++ u8 buffer[2];
++ char *key;
++ int length;
++ struct sensor_device_attribute_2 *sensor_attr =
++ to_sensor_dev_attr_2(attr);
++
++ switch (sensor_attr->index) {
++ case 0:
++ key = MOTION_LOW_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 1:
++ key = MOTION_HIGH_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 2:
++ key = MOTION_LOW_NORM;
++ length = 2;
++ break;
++ case 3:
++ key = MOTION_HIGH_NORM;
++ length = 2;
++ break;
++ default:
++ printk(KERN_ERR
++ "Invalid index for applesmc_accelerometer_show");
++ return -EINVAL;
++ }
++
++ mutex_lock(&applesmc_lock);
++
++ ret = applesmc_read_key(key, buffer, length);
++ if (length == 2)
++ value = ((unsigned int)buffer[0] << 8) | buffer[1];
++ else if (length == 1)
++ value = buffer[0];
++ else {
++ printk("Invalid length for applesmc_param_show");
++ ret = -EINVAL;
++ }
++
++ mutex_unlock(&applesmc_lock);
++ if (ret)
++ return ret;
++ else
++ return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", value);
++}
++
++static ssize_t applesmc_accelerometer_store(struct device *dev,
++ struct device_attribute *attr,
++ const char *sysfsbuf, size_t count)
++{
++ int ret;
++ u32 value;
++ u8 buffer[2];
++ char *key;
++ int length;
++ struct sensor_device_attribute_2 *sensor_attr =
++ to_sensor_dev_attr_2(attr);
++
++ switch (sensor_attr->index) {
++ case 0:
++ key = MOTION_LOW_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 1:
++ key = MOTION_HIGH_NORM_INTERVAL;
++ length = 1;
++ break;
++ case 2:
++ key = MOTION_LOW_NORM;
++ length = 2;
++ break;
++ case 3:
++ key = MOTION_HIGH_NORM;
++ length = 2;
++ break;
++ default:
++ printk("Invalid index for applesmc_accelerometer_show");
++ return -EINVAL;
++ }
++
++ value = simple_strtoul(sysfsbuf, NULL, 10);
++
++ if (length == 2) {
++ if (value > 0xffff)
++ return -EINVAL;
++
++ buffer[0] = (value >> 8) & 0xff;
++ buffer[1] = value & 0xff;
++ } else if (length == 1) {
++ if (value > 0xff)
++ return -EINVAL;
++
++ buffer[0] = value & 0xff;
++ } else {
++ printk("Invalid length for applesmc_param_store");
++ return -EINVAL;
++ }
++
++ mutex_lock(&applesmc_lock);
++
++ ret = applesmc_write_key(key, buffer, length);
++
++ mutex_unlock(&applesmc_lock);
++
++ if (ret)
++ return ret;
++ else
++ return count;
++}
++
+ static struct led_classdev applesmc_backlight = {
+ .name = "smc:kbd_backlight",
+ .default_trigger = "nand-disk",
+@@ -943,10 +1206,22 @@ static DEVICE_ATTR(name, 0444, applesmc_name_show, NULL);
+ static DEVICE_ATTR(position, 0444, applesmc_position_show, NULL);
+ static DEVICE_ATTR(calibrate, 0644,
+ applesmc_calibrate_show, applesmc_calibrate_store);
++static SENSOR_DEVICE_ATTR(low_norm_trigger_interval, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 0);
++static SENSOR_DEVICE_ATTR(high_norm_trigger_interval, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 1);
++static SENSOR_DEVICE_ATTR(low_norm_trigger, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 2);
++static SENSOR_DEVICE_ATTR(high_norm_trigger, 0644,
++ applesmc_accelerometer_show, applesmc_accelerometer_store, 3);
+
+ static struct attribute *accelerometer_attributes[] = {
+ &dev_attr_position.attr,
+ &dev_attr_calibrate.attr,
++ &sensor_dev_attr_low_norm_trigger.dev_attr.attr,
++ &sensor_dev_attr_high_norm_trigger.dev_attr.attr,
++ &sensor_dev_attr_low_norm_trigger_interval.dev_attr.attr,
++ &sensor_dev_attr_high_norm_trigger_interval.dev_attr.attr,
+ NULL
+ };
+
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/appletouch.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/appletouch.patch
new file mode 100644
index 0000000..d09b12a
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/appletouch.patch
@@ -0,0 +1,23 @@
+Appletouch driver ATP_THRESHOLD fix.
+
+From: Ortwin Gl├╝ck <odi@odi.ch>
+
+
+---
+
+ drivers/input/mouse/appletouch.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c
+index b4423a4..17381a9 100644
+--- a/drivers/input/mouse/appletouch.c
++++ b/drivers/input/mouse/appletouch.c
+@@ -127,7 +127,7 @@ MODULE_DEVICE_TABLE (usb, atp_table);
+ * Threshold for the touchpad sensors. Any change less than ATP_THRESHOLD is
+ * ignored.
+ */
+-#define ATP_THRESHOLD 5
++#define ATP_THRESHOLD 3
+
+ /* Geyser initialization constants */
+ #define ATP_GEYSER_MODE_READ_REQUEST_ID 1
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch
new file mode 100644
index 0000000..f7b4cb9
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch
@@ -0,0 +1,28 @@
+Display Macbook Pro 1st gen controls when the subsystem id is wrong (0x100).
+
+From: Nicolas Boichat <nicolas@boichat.ch>
+
+
+---
+
+ sound/pci/hda/patch_sigmatel.c | 4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
+index 0401223..c0e626b 100644
+--- a/sound/pci/hda/patch_sigmatel.c
++++ b/sound/pci/hda/patch_sigmatel.c
+@@ -2587,10 +2587,12 @@ static int patch_stac922x(struct hda_codec *codec)
+ case 0x106b1700:
+ case 0x106b0200:
+ case 0x106b1e00:
++ case 0x100: /* Invalid subsystem ID, happens randomly on
++ * MacBook Pro 1st generation
++ */
+ spec->board_config = STAC_INTEL_MAC_V3;
+ break;
+ case 0x106b1a00:
+- case 0x00000100:
+ spec->board_config = STAC_INTEL_MAC_V4;
+ break;
+ case 0x106b0a00:
diff --git a/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch
new file mode 100644
index 0000000..a559167
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/2.6.24-mactel-patches-r145/sigmatel_audio_fix_macbook_v2.patch
@@ -0,0 +1,30 @@
+Fixes audio on Macbook v2.
+
+From: Marek Sterzik <marek@milimetr.org>
+
+
+---
+
+ sound/pci/hda/patch_sigmatel.c | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
+index c0e626b..e7995f6 100644
+--- a/sound/pci/hda/patch_sigmatel.c
++++ b/sound/pci/hda/patch_sigmatel.c
+@@ -81,6 +81,7 @@ enum {
+ /* for backward compatibility */
+ STAC_MACMINI,
+ STAC_MACBOOK,
++ STAC_MACBOOK_V2,
+ STAC_MACBOOK_PRO_V1,
+ STAC_MACBOOK_PRO_V2,
+ STAC_IMAC_INTEL,
+@@ -905,6 +906,7 @@ static const char *stac922x_models[STAC_922X_MODELS] = {
+ /* for backward compatibility */
+ [STAC_MACMINI] = "macmini",
+ [STAC_MACBOOK] = "macbook",
++ [STAC_MACBOOK_V2] = "macbook-v2",
+ [STAC_MACBOOK_PRO_V1] = "macbook-pro-v1",
+ [STAC_MACBOOK_PRO_V2] = "macbook-pro",
+ [STAC_IMAC_INTEL] = "imac-intel",
diff --git a/sys-kernel/mactel-linux-sources/files/digest-mactel-linux-sources-2.6.24 b/sys-kernel/mactel-linux-sources/files/digest-mactel-linux-sources-2.6.24
new file mode 100644
index 0000000..59b9408
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/files/digest-mactel-linux-sources-2.6.24
@@ -0,0 +1,9 @@
+MD5 d76ade4e81deb31d9bb231f43405a1e2 genpatches-2.6.24-1.base.tar.bz2 960
+RMD160 a7b9932bc33e8a56da4bfafbdf16749bf141db6c genpatches-2.6.24-1.base.tar.bz2 960
+SHA256 3f7c948b72494aed970be1187a75c7c8573ad500e35c5bc9610b87ffa42bd54f genpatches-2.6.24-1.base.tar.bz2 960
+MD5 225027f6569dd5cb7df915d0e0cff967 genpatches-2.6.24-1.extras.tar.bz2 41902
+RMD160 259b831110120518149bbccdacf9982330af5ef0 genpatches-2.6.24-1.extras.tar.bz2 41902
+SHA256 bc8723863cace59d8bcb6d84d678cc9c370a5e2144133f543396b45e4655b063 genpatches-2.6.24-1.extras.tar.bz2 41902
+MD5 3f23ad4b69d0a552042d1ed0f4399857 linux-2.6.24.tar.bz2 46737783
+RMD160 0e5194c69c3d82c41ece689c4f84e638f8776d34 linux-2.6.24.tar.bz2 46737783
+SHA256 413c64fbbcf81244cb5571be4963644a1e81166a2b0f008a016528363b65c5d3 linux-2.6.24.tar.bz2 46737783
diff --git a/sys-kernel/mactel-linux-sources/mactel-linux-sources-2.6.24.ebuild b/sys-kernel/mactel-linux-sources/mactel-linux-sources-2.6.24.ebuild
new file mode 100644
index 0000000..a8870c3
--- /dev/null
+++ b/sys-kernel/mactel-linux-sources/mactel-linux-sources-2.6.24.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="1"
+K_SECURITY_UNSUPPORTED="1"
+inherit kernel-2
+detect_version
+detect_arch
+
+DESCRIPTION="Sources for the Linux kernel with mactel-linux and gentoo patches."
+HOMEPAGE="http://www.kernel.org
+ http://dev.gentoo.org/~dsd/genpatches
+ http://mactel-linux.org"
+
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
+KEYWORDS="~amd64 ~x86"
+
+PATCHDIR="${FILESDIR}/${PV}-mactel-patches-r145/"
+
+UNIPATCH_LIST="${PATCHDIR}/${PATCHDIR}/applesmc-macbook2.patch \
+${PATCHDIR}/applesmc-retry-when-accessing-keys.patch \
+${PATCHDIR}/applesmc_int.patch \
+${PATCHDIR}/appletouch.patch \
+${PATCHDIR}/sigmatel_audio_display_all_controls_when_subsystem_id_is_wrong.patch \
+${PATCHDIR}/sigmatel_audio_fix_macbook_v2.patch"
+
+UNIPATCH_STRICTORDER="1"
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+ einfo "For more info on this patchset, see:"
+ einfo "${HOMEPAGE}"
+ einfo "Report any problems to je_fro@gentoo.org"
+}
+