[HTC One S] pirlano:
For rear camera we need to update regulators (most of "msm_csid" entries to "msm_csiphy", look at untouched One kernel):

-arch/arm/mach-msm/clock-8960.c

-arch/arm/mach-msm/devices-8960.c

-arch/arm/mach-msm/board-ville-regulator.c

and use a sense based ville-camera (for example https://raw.github.com/anoane/ville...ra_zoe/arch/arm/mach-msm/board-ville-camera.c)

-arch/arm/mach-msm/board-ville-camera.c

Than started working (but not saving photo because of an sd card permission problem, but this is an other problem) :)

I've broken few things maybe, because i switched to sense board-ville files

This is the patch: http://xdaforums.com/attachment.php?attachmentid=2620689&stc=1&d=1394314359

EDIT: ops! screen is off with camera led on, maybe because of this commit (for Desire 601 libs support), we need to revert it: https://github.com/anoane/ville-4.2...mmit/0523aab450c2aa6075331234d81d5b95ff7e7395

Front camera is still crashing

[ 189.081306] [CAM] vfe32_proc_general: cmdID = RESET
[ 189.081367] [CAM] vfe32_set_default_reg_values vfe_camera_mode=2
[ 189.082160] [CAM] msm_mctl_set_vfe_output_mode: mctl=0xc0f5ea10, vfe output mode =0x1
[ 189.082160] [CAM] msm_sensor_interface_config: intftype 0 cur_csid 0 new_csid 1
[ 189.082191] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 189.082191] pgd = d750c000
[ 189.082191] [00000000] *pgd=00000000
[ 189.082221] DFSR=00000005, TTBCR=00000000, TTBR0=9f10c06a, TTBR1=8040406a
[ 189.082221] MAIR0=ff0881a8, MAIR1=40e040e0, SCTLR=10c5787d
[ 189.082221] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 189.082252] Modules linked in: kineto_gan
[ 189.082252] CPU: 0 Tainted: G WC (3.4.10 #1)
[ 189.082282] PC is at msm_csid_subdev_ioctl+0x58/0x37c
[ 189.082282] LR is at msm_csid_subdev_ioctl+0x20/0x37c
[ 189.082282] pc : [<c04fd210>] lr : [<c04fd1d8>] psr: a0000013
[ 189.082282] sp : c58fbb30 ip : 83e783e8 fp : 40100de0
[ 189.082313] r10: 00000000 r9 : c6df5e40 r8 : 00000000
[ 189.082313] r7 : c00856c4 r6 : d7c11278 r5 : 00000000 r4 : d9d5e400
[ 189.082313] r3 : d7c11000 r2 : c58fbb28 r1 : c00856c4 r0 : d7c11278
[ 189.082343] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 189.082343] Control: 10c5787d Table: 9f10c06a DAC: 00000015
[ 189.082343]
[ 189.082343] PC: 0xc04fd190:
[ 189.082343] d190 e2840fa5 ebeeae61 e5941274 e1a00005 e281105c eb002286 e3a00001 e8bd8038
[ 189.082404] d1b0 c085b338 c0aa70c7 e92d4ff7 e1a04000 e5906044 e1a07001 e1a05002 e2866f9e
[ 189.082435] d1d0 e1a00006 eb0ab237 e59f3314 e1570003 0a00009c e59f330c e1570003 0a000003
[ 189.082466] d1f0 e59f3304 e1570003 1a0000b5 ea00004d e5943044 e5934274 e3540000 0a00008f
[ 189.082496] d210 e5d50000 e2841004 e5d53001 e3a07000 e2400001 e285a004 e1a08007 e3a0b0ff
[ 189.082527] d230 e1800103 e3800201 e3800b0f eb002260 ea00002a e59a2004 e2879003 e0823007
[ 189.082588] d250 e5d33001 e2431012 e6ef1071 e3510025 9a000007 e59f0294 e1d021b2 e3120004
[ 189.082618] d270 0a000022 e59f1288 e59f2288 ebf6da9d ea00001e e7d20007 e2888001 e20000fc
[ 189.082649]
[ 189.082649] LR: 0xc04fd158:
[ 189.082649] d158 e92d4038 e1a04001 e5910274 e2800064 eb0022d6 e5943000 e59f1038 e5932004
[ 189.082679] d178 e1a05000 e59f0030 e1a03005 eb0a80a3 e3150b02 0a000001 e2840fa5 ebeeae61
[ 189.082710] d198 e5941274 e1a00005 e281105c eb002286 e3a00001 e8bd8038 c085b338 c0aa70c7
[ 189.082771] d1b8 e92d4ff7 e1a04000 e5906044 e1a07001 e1a05002 e2866f9e e1a00006 eb0ab237
[ 189.082801] d1d8 e59f3314 e1570003 0a00009c e59f330c e1570003 0a000003 e59f3304 e1570003
[ 189.082862] d1f8 1a0000b5 ea00004d e5943044 e5934274 e3540000 0a00008f e5d50000 e2841004
[ 189.082893] d218 e5d53001 e3a07000 e2400001 e285a004 e1a08007 e3a0b0ff e1800103 e3800201
[ 189.082923] d238 e3800b0f eb002260 ea00002a e59a2004 e2879003 e0823007 e5d33001 e2431012
[ 189.082984]
[ 189.082984] SP: 0xc58fbab0:
[ 189.082984] bab0 0016c9ff c00a574c 00000000 c0d788b0 c0d788b0 c0084290 00000000 00000059
[ 189.083015] bad0 c04fd210 a0000013 ffffffff c58fbb1c 00000000 c07ac318 d7c11278 c00856c4
[ 189.083076] baf0 c58fbb28 d7c11000 d9d5e400 00000000 d7c11278 c00856c4 00000000 c6df5e40
[ 189.083106] bb10 00000000 40100de0 83e783e8 c58fbb30 c04fd1d8 c04fd210 a0000013 ffffffff
[ 189.083167] bb30 d7c11008 c00856c4 00000000 c0dded18 0000000b 00000000 0000000b 00000000
[ 189.083198] bb50 c6df5e40 00000000 40100de0 c04d7674 0000000b 00000000 c6df5e40 00000000
[ 189.083229] bb70 40100de0 c079d444 c0aa459b c58fbb8c 00000000 c04f486c c0ddecc0 c0dded18
[ 189.083259] bb90 00000001 c04f48bc 00000001 5d303631 00df0020 0000004b 00000000 00000000
[ 189.083290]
[ 189.083290] R0: 0xd7c111f8:
[ 189.083320] 11f8 c0f5e5d8 5f6d736d 64697363 00000000 00000000 00000000 00000000 00000000
[ 189.083351] 1218 00000000 00000003 00000008 00000003 00000001 00000004 00000000 d7c11234
[ 189.083412] 1238 d7c11234 00000000 00000000 00000000 00000000 00000000 c04c487c 00000000
[ 189.083442] 1258 00000000 00000000 00000000 00000000 c0d62588 c0d625a4 d83f7a00 d9d5e400
[ 189.083473] 1278 00000000 00000000 d7c11280 d7c11280 cb474000 02000011 00000000 00000000
[ 189.083534] 1298 00030003 d7c1129c d7c1129c 00000000 00000000 00000000 00000000 00000000
[ 189.083564] 12b8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.083595] 12d8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.083656]
[ 189.083656] R1: 0xc0085644:
[ 189.083656] 5644 e3500001 9a000000 e7f001f2 e59f3020 e3a02001 e5832010 ea000001 e59f0024
[ 189.083717] 5664 eb1c5f6b ebffffc2 e1a00004 e8bd80f8 c0d29c00 c0edf1dc c0d2a464 c0a06e4e
[ 189.083747] 5684 c0edf1f0 c0a06e6b c0a06e8b e12fff1e e12fff1e e92d4008 ebffffb2 e3a02001
[ 189.083778] 56a4 e59f3008 e5832010 e8bd4008 eaffffb0 c0edf1dc e92d4008 ebffffaa e3a02000
[ 189.083808] 56c4 e59f3008 e5832010 e8bd4008 eaffffa8 c0edf1dc e2411001 e92d4008 e3510003
[ 189.083869] 56e4 979ff101 ea000008 c00856fc c0085704 c00856fc c0085704 ebffffe5 ea000000
[ 189.083900] 5704 ebffffeb e3a00001 e8bd8008 e3a00000 e8bd8008 e3510000 e59f1008 0a000000
[ 189.083931] 5724 ea0851b5 ea08480c c0d29c08 e3510000 e59f1008 0a000000 ea0851af ea084806
[ 189.083961]
[ 189.083961] R2: 0xc58fbaa8:
[ 189.083961] baa8 0016c9ac c0d788ec 0016c9ff c00a574c 00000000 c0d788b0 c0d788b0 c0084290
[ 189.084022] bac8 00000000 00000059 c04fd210 a0000013 ffffffff c58fbb1c 00000000 c07ac318
[ 189.084053] bae8 d7c11278 c00856c4 c58fbb28 d7c11000 d9d5e400 00000000 d7c11278 c00856c4
[ 189.084083] bb08 00000000 c6df5e40 00000000 40100de0 83e783e8 c58fbb30 c04fd1d8 c04fd210
[ 189.084114] bb28 a0000013 ffffffff d7c11008 c00856c4 00000000 c0dded18 0000000b 00000000
[ 189.084144] bb48 0000000b 00000000 c6df5e40 00000000 40100de0 c04d7674 0000000b 00000000
[ 189.084175] bb68 c6df5e40 00000000 40100de0 c079d444 c0aa459b c58fbb8c 00000000 c04f486c
[ 189.084236] bb88 c0ddecc0 c0dded18 00000001 c04f48bc 00000001 5d303631 00df0020 0000004b
[ 189.084266]
[ 189.084266] R3: 0xd7c10f80:
[ 189.084266] 0f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084297] 0fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084358] 0fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084388] 0fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084419] 1000 c0d5c590 00000000 d7c11408 d7c10c08 00000000 00000004 c0f5e59c c085b388
[ 189.084449] 1020 c0f5f524 00000000 5f6d736d 64697363 00000000 00000000 00000000 00000000
[ 189.084480] 1040 00000000 00000000 00000000 d7c11000 00000000 00000000 c08588f0 00000000
[ 189.084541] 1060 c0d6e348 d83f1d00 d83f7ac0 d7c1146c d7c10c6c d83c9c80 d8c25a00 c0da0810
[ 189.084571]
[ 189.084571] R4: 0xd9d5e380:
[ 189.084571] e380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084632] e3a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084663] e3c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084694] e3e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084724] e400 02000011 00002793 00000001 00000000 00000000 00000000 00000000 00000000
[ 189.084785] e420 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084816] e440 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000800
[ 189.084846] e460 00000800 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.084877]
[ 189.084877] R6: 0xd7c111f8:
[ 189.084907] 11f8 c0f5e5d8 5f6d736d 64697363 00000000 00000000 00000000 00000000 00000000
[ 189.084938] 1218 00000000 00000003 00000008 00000003 00000001 00000004 00000000 d7c11234
[ 189.084968] 1238 d7c11234 00000000 00000000 00000000 00000000 00000000 c04c487c 00000000
[ 189.084999] 1258 00000000 00000000 00000000 00000000 c0d62588 c0d625a4 d83f7a00 d9d5e400
[ 189.085029] 1278 00000000 00000000 d7c11280 d7c11280 cb474000 02000011 00000000 00000000
[ 189.085090] 1298 00030003 d7c1129c d7c1129c 00000000 00000000 00000000 00000000 00000000
[ 189.085121] 12b8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085151] 12d8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085182]
[ 189.085182] R7: 0xc0085644:
[ 189.085212] 5644 e3500001 9a000000 e7f001f2 e59f3020 e3a02001 e5832010 ea000001 e59f0024
[ 189.085243] 5664 eb1c5f6b ebffffc2 e1a00004 e8bd80f8 c0d29c00 c0edf1dc c0d2a464 c0a06e4e
[ 189.085273] 5684 c0edf1f0 c0a06e6b c0a06e8b e12fff1e e12fff1e e92d4008 ebffffb2 e3a02001
[ 189.085304] 56a4 e59f3008 e5832010 e8bd4008 eaffffb0 c0edf1dc e92d4008 ebffffaa e3a02000
[ 189.085365] 56c4 e59f3008 e5832010 e8bd4008 eaffffa8 c0edf1dc e2411001 e92d4008 e3510003
[ 189.085395] 56e4 979ff101 ea000008 c00856fc c0085704 c00856fc c0085704 ebffffe5 ea000000
[ 189.085426] 5704 ebffffeb e3a00001 e8bd8008 e3a00000 e8bd8008 e3510000 e59f1008 0a000000
[ 189.085457] 5724 ea0851b5 ea08480c c0d29c08 e3510000 e59f1008 0a000000 ea0851af ea084806
[ 189.085518]
[ 189.085518] R9: 0xc6df5dc0:
[ 189.085518] 5dc0 00000000 00000000 d74b8c00 00000000 00000000 00000000 00000000 00000000
[ 189.085548] 5de0 00000000 00000000 00000000 00000000 00000000 00000000 d695a100 d8a01c80
[ 189.085579] 5e00 c6df5e00 c6df5e00 c6df5e08 c6df5e08 d8a01d70 00000103 6964656d 72657361
[ 189.085640] 5e20 00726576 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085670] 5e40 d6e52000 c6df50c0 d7dea490 d782be00 c085951c 00000000 00000000 00000002
[ 189.085701] 5e60 00020002 00000003 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085731] 5e80 00000000 00000000 d751a680 00000000 00000000 00000000 00000000 00000000
[ 189.085792] 5ea0 00000000 00000000 ffffffff ffffffff 00000000 00000000 cb561ac0 d83d0780
[ 189.085823] Process mm-qcamera-daem (pid: 5391, stack limit = 0xc58fa2f0)
[ 189.085823] Stack: (0xc58fbb30 to 0xc58fc000)
[ 189.085823] bb20: d7c11008 c00856c4 00000000 c0dded18
[ 189.085853] bb40: 0000000b 00000000 0000000b 00000000 c6df5e40 00000000 40100de0 c04d7674
[ 189.085853] bb60: 0000000b 00000000 c6df5e40 00000000 40100de0 c079d444 c0aa459b c58fbb8c
[ 189.085884] bb80: 00000000 c04f486c c0ddecc0 c0dded18 00000001 c04f48bc 00000001 5d303631
[ 189.085884] bba0: 00df0020 0000004b 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085884] bbc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 189.085914] bbe0: 00000000 00000000 00000000 00000000 00000000 419487e0 c04f4a78 40708604
[ 189.085914] bc00: c0f5ea10 40046d36 0000000b c04dfa9c 00020002 00000008 00000003 ffffffff
[ 189.085945] bc20: 00000001 ffffffff 00000001 ffffffff 00000001 ffffffff 00000001 c228e980
[ 189.085945] bc40: c228e9c8 8040001e c228e9c8 00000000 00000001 c228e9c8 c228e980 00000000
[ 189.085975] bc60: d68324c0 00000040 00000001 d68324c0 d8c02180 000000d0 0008bf0f c013bb48
[ 189.085975] bc80: c2285980 200f0013 d83ca8c0 c58fbe0c c00a0b54 c58fbe0c d83d07c0 c04cb13c
[ 189.085975] bca0: c58fbcb8 d83d07c0 c58fa000 d83ca8c0 c58fbcc8 c04cb228 c6f9b800 c013b140
[ 189.086006] bcc0: c6f9b800 c04d70dc 00000000 c6f9b800 40731954 271ae916 40708604 d83d0780
[ 189.086006] bce0: 40046d36 0000000b 00000000 c04d71e0 00000000 c010bc20 00000041 00000e32
[ 189.086036] bd00: 00000107 c010d374 00000041 00000000 cb474000 00000000 000200da 00000001
[ 189.086036] bd20: c22890ac c0dfdf44 00000000 c22890b0 531b886e 00000000 00000001 00000000
[ 189.086067] bd40: 00000000 ffffffff 00000000 c0dfd8c0 00000000 000200da 00000000 c6fad210
[ 189.086067] bd60: c58fbd98 00000000 00000001 c16817c0 00000000 60000113 0000000e c2283f48
[ 189.086067] bd80: c58fbd98 0000000e 00000001 c0111eec 00000000 00000000 c58fbd98 c58fbd98
[ 189.086097] bda0: c0dfd8c0 c2283f08 c0dfd8c0 60000113 0000000e c2283f40 c16817c0 c0dfd8c0
[ 189.086097] bdc0: 00000001 c0111fac c2283f08 c0111760 00000001 c16817c0 00000001 c2283ec8
[ 189.086128] bde0: c2283f08 d75621f4 d76d1000 d76d1420 c16817c0 c011220c 00000000 d75621c0
[ 189.086128] be00: 00000000 d75621c0 b0d3ec7f c01282fc c6f9b800 c0084290 00000000 0000004a
[ 189.086128] be20: 00000001 00000108 00000003 c0ebedfd c58fa000 00000000 60000113 40708000
[ 189.086158] be40: d750c000 00000203 d750d018 d75621c0 c6fad210 00000029 40100de0 c0128434
[ 189.086158] be60: d750d018 00000029 c58fbfb0 d75621f8 d75621fc c02a0da8 c58fbfb0 00000000
[ 189.086189] be80: c58fbfb0 c07adc24 d8b2db50 00000002 fff00000 000000f0 d75621f8 00000000
[ 189.086189] bea0: c58fbf88 fffffdee c58fbf88 000000f0 c58fa000 00000000 40100de0 d751a680
[ 189.086220] bec0: 00000003 00000001 0000000a c58fbeec 00000001 c02563fc 00000000 00000001
[ 189.086220] bee0: ffffffff d54136c0 00000000 ffffffff 00000000 ffffffff 00000000 271ae916
[ 189.086250] bf00: d7fd88f0 40708604 c6df5e40 0000000b 00000000 c58fa000 00000000 c0151d64
[ 189.086250] bf20: c58fbf44 00000000 00000001 c025c0e0 00000000 043d4f59 c58fbf60 00000000
[ 189.086250] bf40: 00000000 00000001 00000000 d7dea490 d782be00 c58fbf3c 00000000 c6df5e40
[ 189.086281] bf60: 40708604 c6df5e40 40708604 40046d36 0000000b 00000000 c58fa000 00000000
[ 189.086281] bf80: 40100de0 c0151e24 0000000b 00000001 419895d8 40708924 00000012 00000036
[ 189.086311] bfa0: c000e064 c000dee0 419895d8 40708924 0000000b 40046d36 40708604 407085f0
[ 189.086311] bfc0: 419895d8 40708924 00000012 00000036 00000000 00000000 00000000 40100de0
[ 189.086311] bfe0: 41988fe0 407085e0 401fa507 401e9db8 200f0010 0000000b 00000000 00000000
[ 189.086342] [<c04fd210>] (msm_csid_subdev_ioctl+0x58/0x37c) from [<c04d7674>] (msm_cam_server_subdev_notify+0x208/0x450)
[ 189.086372] [<c04d7674>] (msm_cam_server_subdev_notify+0x208/0x450) from [<c04f48bc>] (msm_sensor_interface_config+0x12c/0x2e8)
[ 189.086403] [<c04f48bc>] (msm_sensor_interface_config+0x12c/0x2e8) from [<c04dfa9c>] (msm_mctl_cmd+0x3d8/0xcf0)
[ 189.086403] [<c04dfa9c>] (msm_mctl_cmd+0x3d8/0xcf0) from [<c04d71e0>] (msm_ioctl_config+0x490/0x534)
[ 189.086433] [<c04d71e0>] (msm_ioctl_config+0x490/0x534) from [<c0151d64>] (do_vfs_ioctl+0x4d8/0x54c)
[ 189.086464] [<c0151d64>] (do_vfs_ioctl+0x4d8/0x54c) from [<c0151e24>] (sys_ioctl+0x4c/0x6c)
[ 189.086464] [<c0151e24>] (sys_ioctl+0x4c/0x6c) from [<c000dee0>] (ret_fast_syscall+0x0/0x30)
[ 189.086494] Code: e5943044 e5934274 e3540000 0a00008f (e5d50000)
[ 189.086494] ---[ end trace f87f0f7439e06ace ]---
[ 189.086525] Kernel panic - not syncing: mm-qcamera-daem PC:msm_csid_subdev_ioctl+0x58/0x37c LR:msm_csid_subdev_ioctl+0x20/0x37c
[ 189.086525] CPU1: stopping
[ 189.086555] [<c0013720>] (unwind_backtrace+0x0/0x11c) from [<c0012a90>] (handle_IPI+0x100/0x1d8)
[ 189.086555] [<c0012a90>] (handle_IPI+0x100/0x1d8) from [<c0008668>] (gic_handle_irq+0xec/0xf4)
[ 189.086586] [<c0008668>] (gic_handle_irq+0xec/0xf4) from [<c07ac380>] (__irq_svc+0x40/0x70)
[ 189.086586] Exception stack(0xd74e7cf8 to 0xd74e7d40)
[ 189.086616] 7ce0: c0d2a938 d74d9a00
[ 189.086616] 7d00: d74e7d28 00000000 c228e980 d74d9a00 d74e6000 d7562380 d6b11380 00000001
[ 189.086647] 7d20: d7540540 d74e7dcc 00000025 d74e7d40 c00aa464 c07aa790 60000013 ffffffff
[ 189.086647] [<c07ac380>] (__irq_svc+0x40/0x70) from [<c07aa790>] (__schedule+0x5b8/0x5f4)
[ 189.086677] [<c07aa790>] (__schedule+0x5b8/0x5f4) from [<c07aa8a4>] (preempt_schedule+0x3c/0x58)
[ 189.086677] [<c07aa8a4>] (preempt_schedule+0x3c/0x58) from [<c057c8f8>] (logger_aio_write+0x35c/0x370)
[ 189.086708] [<c057c8f8>] (logger_aio_write+0x35c/0x370) from [<c0142afc>] (do_sync_readv_writev+0x98/0xd4)
[ 189.086708] [<c0142afc>] (do_sync_readv_writev+0x98/0xd4) from [<c0142d6c>] (do_readv_writev+0xb8/0x228)
[ 189.086738] [<c0142d6c>] (do_readv_writev+0xb8/0x228) from [<c0142f38>] (vfs_writev+0x5c/0x68)
[ 189.086738] [<c0142f38>] (vfs_writev+0x5c/0x68) from [<c0143048>] (sys_writev+0x38/0x64)
[ 189.086769] [<c0143048>] (sys_writev+0x38/0x64) from [<c000dee0>] (ret_fast_syscall+0x0/0x30)
[ 189.086769] wcnss_8960: crash shutdown : 0
[ 189.187089] set_restart_reason: set restart reason = 776655aa

[ 189.187120] set_restart_msg: set restart msg = `KP: mm-qcamera-daem PC:msm_csid_subdev_ioctl+0x58/0x37c LR:msm_csid_subdev_ioctl+0x20/0x37c'

[ 189.187120] Rebooting in 5 seconds..
[ 194.194048] [K] Going down for restart now