主题 : [内核补丁]解决2.6.13内核Camera I/F 中断异常 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
楼主  发表于: 2008-12-11 21:22

 [内核补丁]解决2.6.13内核Camera I/F 中断异常

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
这是解决友善之臂提供的2.6.13内核 S3C2440A Camera I/F 中断异常的补丁. 原本的内核中处理Camera I/F中断时将中断号赋错了. 感谢wuji228发现并解决了这个问题

Index: kernel-2.6.13/arch/arm/mach-s3c2410/s3c2440-irq.c
===================================================================
--- kernel-2.6.13.orig/arch/arm/mach-s3c2410/s3c2440-irq.c    2008-12-11 17:31:25.000000000 +0800
+++ kernel-2.6.13/arch/arm/mach-s3c2410/s3c2440-irq.c    2008-12-11 17:31:52.000000000 +0800
@@ -122,11 +122,11 @@
     if (subsrc != 0) {
         if (subsrc & 1) {
             mydesc = irq_desc + IRQ_S3C2440_CAM_C;
-            mydesc->handle( IRQ_S3C2440_WDT, mydesc, regs);
+            mydesc->handle( IRQ_S3C2440_CAM_C, mydesc, regs);
         }
         if (subsrc & 2) {
             mydesc = irq_desc + IRQ_S3C2440_CAM_P;
-            mydesc->handle(IRQ_S3C2440_AC97, mydesc, regs);
+            mydesc->handle( IRQ_S3C2440_CAM_P, mydesc, regs);
         }
     }
}
附件: s3c244x_camera_irq_fix.patch.txt (1 K) 下载次数:33
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."