Message ID | 20241114131656.1707358-1-cibil.pankiras@aerq.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mx-relay67-hz1.antispameurope.com (mx-relay67-hz1.antispameurope.com [94.100.132.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D77221F9EC0 for <linux-iio@vger.kernel.org>; Thu, 14 Nov 2024 13:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=94.100.132.234 ARC-Seal: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731590348; cv=fail; b=YghmqqFHzOKlYbSzhjzkm313U8PstwJeyI29HyLMeNrhB7sZf2Rb6pKW7ZzxbCmkvpxByNcUEcd5vxJHhOV7I2rLLjhm0Ofuez4M3bJWgkgreVre6qS0d/5ch6Now9QFnJPhkTZOJSEtdk/u+UIJayo93Mn/iIh/5tAqzmP1Mj8= ARC-Message-Signature: i=3; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731590348; c=relaxed/simple; bh=7p/L9E2BxFmbDaPJn3Om6p82K/LjTIqN0YNq0StaQHE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=lryDjW4KNQeSto3H/6VK5FEoyOUyixIb5QDSUB/EjugBsT7/cvBxhusNpTvb/F7O3El2sbvgq+wKi/5jlvTqAL5szWlZvedGfC1QkiiQmNzQNTyPHsKmU229Mjg4o1Rz3eZAlI5wU6Zmh4CubqHRqcwRYIEavM90TdjMG5aMGsg= ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aerq.com; spf=pass smtp.mailfrom=aerq.com; dkim=fail (1024-bit key) header.d=l2task.onmicrosoft.com header.i=@l2task.onmicrosoft.com header.b=TJrGAveB reason="signature verification failed"; dkim=fail (1024-bit key) header.d=l2task.onmicrosoft.com header.i=@l2task.onmicrosoft.com header.b=OUrKydIR reason="signature verification failed"; dkim=pass (2048-bit key) header.d=aerq.com header.i=@aerq.com header.b=MfV/MGg1; arc=fail smtp.client-ip=94.100.132.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aerq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aerq.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=l2task.onmicrosoft.com header.i=@l2task.onmicrosoft.com header.b="TJrGAveB"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=l2task.onmicrosoft.com header.i=@l2task.onmicrosoft.com header.b="OUrKydIR"; dkim=pass (2048-bit key) header.d=aerq.com header.i=@aerq.com header.b="MfV/MGg1" Received: from mail-db8eur05lp2104.outbound.protection.outlook.com ([104.47.17.104]) by mx-relay67-hz1.antispameurope.com; Thu, 14 Nov 2024 14:18:02 +0100 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=fail; b=NDXNLXfLOfcvAFwAVQQw5qoTcKYDu3mD1TtjoNuBQ3YKaF+sq1UfQsW+HSZwxinwgq7OmO5cw1QKZMQMr2oHf0S9k2Cn6Ub+HoUkUsA2NhijXXdLqDEsirt9ZojYHiUAdrSBqXp9olkEgSFFsVVotP0puuWq/f+E14q2YQ5e6W5TQ0eAfNN33mA4XfkKsjdAXhCIY0hqHseiYOceyQoLF1RIZbhSrVV3rwT3prlcL3yBbwj2smP4Bg5pVs1vXUvb47krmzM3jKFLiuBTE5gPzpdiFtumksFqr6zh25c2GVzok15QTpQnoPzD6O+KOZJgkNqrpQ2rHt+h25HlFvFzBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O6XOIQqsbUM00Ny1tqxDL+n0jVOIrfKOr3xBsKlp2O4=; b=WNN8oZdZrh8id7HaPQDLNjBwbOUSjiKIlvITHXO3u4vufB3XXbitnVYVoY9dYhVbryLgkIjYPmzaWSBqY2zis3DDuVZlTnJSzqH4/r+PsHi4TEQ/wNEcmkxf4+ueh2EQWWv5msfe1XoddN1HPKSOgmsAiiXrpxdT9mflXi7rqXQjcIMrkbW0j0p+XZph3cBaKmu6oSyWriCZcFL86xTz8f6ElbwMNSWxvrUdJU9KdvoXPFDYfEosEmbeMC6miaIGhQzAezNt7mmr+TKycVvwlpH6cLgE/UT7npRDCXRkKhW6NXUsTjr4lRKCaiWUaJN44guT1V8JmwhsxzMTNc6c1g== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=softfail (sender ip is 52.169.0.179) smtp.rcpttodomain=kernel.org smtp.mailfrom=aerq.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=aerq.com; dkim=fail (body hash did not verify) header.d=l2task.onmicrosoft.com; arc=fail (47) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=l2task.onmicrosoft.com; s=selector1-l2task-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O6XOIQqsbUM00Ny1tqxDL+n0jVOIrfKOr3xBsKlp2O4=; b=TJrGAveBbTNVruMnz5Ki7R1bWqS8RY01BWbENz7IUGkcksHvSmbMZFLlvRzlgm77YycgYbrWJcpN4NDCujDdS4j5O6WFckBkf+r1KNffEE8q7nEkmt4ueCzV/ehQbhErNjd3xSjhClT9HP5xWp5PTP50CWnDXXmRE8Ir+PDUHIo= Received: from PR1P264CA0104.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:2cf::15) by DU4PR10MB8322.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:566::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Thu, 14 Nov 2024 13:17:45 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:102:2cf:cafe::47) by PR1P264CA0104.outlook.office365.com (2603:10a6:102:2cf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.18 via Frontend Transport; Thu, 14 Nov 2024 13:17:45 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 52.169.0.179) smtp.mailfrom=aerq.com; dkim=fail (body hash did not verify) header.d=l2task.onmicrosoft.com;dmarc=fail action=quarantine header.from=aerq.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning aerq.com discourages use of 52.169.0.179 as permitted sender) Received: from eu2.smtp.exclaimer.net (52.169.0.179) by AM4PEPF00025F95.mail.protection.outlook.com (10.167.16.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Thu, 14 Nov 2024 13:17:45 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (::ffff:104.47.17.104) by eu2.smtp.exclaimer.net (52.169.0.179) with Exclaimer Signature Manager ESMTP Proxy eu2.smtp.exclaimer.net (tlsversion=TLS12, tlscipher=TLS_DIFFIEHELLMAN_WITH_AES256_NONE); Thu, 14 Nov 2024 13:17:45 +0000 X-ExclaimerHostedSignatures-MessageProcessed: true X-ExclaimerProxyLatency: 4412768 X-ExclaimerImprintLatency: 1036775 X-ExclaimerImprintAction: ce8892d06b264c34b52c05ba7ef2924f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l44GfKMjje0LOdSVH6t8UzKXslvyAesaahIwsSQ/ntgkkUvH1cujCKxpyIomQFt9bKnnaG2O6TTcRarH7OqzJPcaNXHW3MwaiNBA05CVdBH37chXIkK2aHGxAf9CLC6+tLSpq7qfySFXGUgmthYc8GRA2rbZU9NBrWNSC+hzklRV+5e58Suyj75tQ03BZ/iH5vQvQyfOvSef3RfvYE57vO9uduDH8EZfB3m6nBFkT0Dbb8bKPZyGSajYuBREwKFaUpr/ngVrQkPEdWyDIgunB1xPkITMZo1iR8mNdyo+7MbXo2zDkM/15x6rRyn6024+Y70Yc1TQh8HnwR2ZtGS6Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O/v12EbgC27xgEy0kTzTgePH2uZ3vBbeSUHBdd0MBA4=; b=rZ+ZmA5B+0n5fg30/wyDYLvpVjqBl173Gc0c0vysT7GhaBMJPPfgr01lFTLIGHqRJ5bTvuiakGXJ/EShMov7OIBnppQhM2RH0mLSioY+iluw55cZYFwfWDP5vJZDcaJFwrq4/iJL6Ry1vzMJR/9AdviEu98ACyFTv+KQYgZgotViKNyp5oE9AwxityW5tZ9kJyH7QirrL6s+pt8DWTPJIGQUFyXuCo3KKlVre9gskAY3SUPvwyIClqwtaosDeBgktRfw2uX1sMfxaMkhED6S49+hZPtHi+SP81hfc00sr3rNp98N/slhFEPUHVXLbJp3hcvSSpOz7y071VjtGbC/ow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aerq.com; dmarc=pass action=none header.from=aerq.com; dkim=pass header.d=aerq.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=l2task.onmicrosoft.com; s=selector1-l2task-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O/v12EbgC27xgEy0kTzTgePH2uZ3vBbeSUHBdd0MBA4=; b=OUrKydIRmAmvrfxECYy2iWlylbbKeom4zmiKstevlCSwtrZE3nDDh5J2y59ftZyFKOyiVJBWj0Yp5oSnK6ZoNzHPTJ1dikb1KUwMOFrMgNOkAHo7YTf7Z7Ij1ieKKNZk4EpXFm0lbgQSYx5XBlxGQF7D+bSx0AUgCdV1IxknSuA= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aerq.com; Received: from DB9PR10MB7291.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45d::9) by DU0PR10MB5218.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:346::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.18; Thu, 14 Nov 2024 13:17:40 +0000 Received: from DB9PR10MB7291.EURPRD10.PROD.OUTLOOK.COM ([fe80::8c9c:7279:978a:f67d]) by DB9PR10MB7291.EURPRD10.PROD.OUTLOOK.COM ([fe80::8c9c:7279:978a:f67d%5]) with mapi id 15.20.8158.013; Thu, 14 Nov 2024 13:17:39 +0000 From: Cibil <cibil.pankiras@aerq.com> To: jic23@kernel.org, ktsai@capellamicro.com, lars@metafoo.de CC: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Cibil Pankiras <cibil.pankiras@aerq.com> Subject: [PATCH] iio: light: cm3232: Reset before reading HW ID Date: Thu, 14 Nov 2024 14:16:56 +0100 Message-ID: <20241114131656.1707358-1-cibil.pankiras@aerq.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR3P281CA0094.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a1::9) To DB9PR10MB7291.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45d::9) X-MS-TrafficTypeDiagnostic: DB9PR10MB7291:EE_|DU0PR10MB5218:EE_|AM4PEPF00025F95:EE_|DU4PR10MB8322:EE_ X-MS-Office365-Filtering-Correlation-Id: 94db491d-d04f-4109-c5fb-08dd04aeba51 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info-Original: AxUJv4F8KOAhmI3HgD51fbsANpo58YJTGHfzqKfyoAL1Fgo9L7fYSRXvlum1F9SdutU6BJwlovsTakAjpiqvcExyVJtmi4fukU/aLY3+Mo7SilIdOysOO5AR5K3bMCks3NImJjJaup6Uyk+FJhjxjymnBGw7Msj+2v2KLDFu5/hZ1ybjh2pTWgJCui2Bvqvyg68sTyeGRqo90dn1YY8YJnvpFgpUDKHEAZnAauV9EHiVUQRDIx5i/nhgx5KrFMsCtKA6CjHSFjdep11tnUZsGf6L0fyDaO+fdLOzGI+AlYoi6MKBrU6xhua3aYkHqg2MR9KJDAhBDWTCh05RUmHgHxGIyJLuDNvCBcpP5YMPju20mMp2RYgl6aHnKI9dMFPgZbidFaimOl12j4Byc3g3pgSe9NeWbkdOImuBRPE48k0BiHjudX9sRF2HYjv1PF6PR2Q8Ioy4z/HgRATyxFg8vqkoUXftcMS+PPJZXAf0zEJtlhD0dkS9rXRspt5hnQ/B+tPA1MVQxPQMaO6+ssjH0q/3PnDOhuukESCmS/hU0dHNR+hqagBK1A1ZI91VjomutfYakqhktl0Wj+ThmVhEr7ENb4RWEkF3gHgU92mrvqv7QHhnmSbBF0vXgRot6w1yOGXaIdsuaxS4OJEC72KrnclL3xavC8hBCbwmw/A990fqVwBayxvaMk7OhYzm3Jgjkf/8iT4JYVqGS4w7ZtfzfdBIF+prZALUO+CHRTUaEwo8ihVihtWLbJvdtwUonq54QG1gOjt6aVQGSQvWHHYH3lokkFV1CcDDSO+y6jM8Ee04C4yfkf70xckv9nSSkDjzoWt+J6FTZcHMcgQBWpK554Nvhb8DmtuWpcBo5Y+tNrjqm+Q0YheO9oZkH8E5R31Xo12ioEkwzJut6Od+FDtPUYB+Cc/IptputpRMCb1I86PEY5d+R6xgA47rdCCOPqvX0AylOkK6FwRcHrqdxd30xItAcTDHt/4tVC6mwZkOiz6FIWeY8xcOnoSjoOjD5JtZCe0Seay/ZSM6/j/z+YQ7aEXcGAzKUgq83lFvYkO2fXpRsElVNMfTL8W9fF8q81gH+wTatBu3EwHB2kD6fZKW/7MKo0ZPMIMlEKmYan5awGFoViSZtbNwzNaVuZI/ESFp9R9at4OptAsOpjvtEUzF21vFFt3nhDh7vDmHnBo7ZG+kB0vd/cOk2xwSGF6kqLCBXTvwEqzsWLoXdzsvhc9/81HpjqRqcBxWvOddPqbzYlSXK4Mms1RzzCB7RJc94h1fRmzCMkfrrlhaIalzZyX+t4uHkxFpLhWvgaLpiyZbmDgXNUN/vndKIwbuyzMEmRAT6imXeA5NcDojiQakS8xmeKTT8UCh6zxT4WYAQpR3jmY= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB7291.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR10MB5218 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00025F95.EURPRD83.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9abd7498-1623-4af5-966d-08dd04aeb6e2 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|82310400026|14060799003|35042699022|1800799024; X-Microsoft-Antispam-Message-Info: Fx2n9llE6R7vzeXreyrMoOcEoCFDZ5j1NUoYTLZNjOk060axagKJYNKG6sw9qfmpQVtQcOFCZbVhNShEMhqKiNmFneJy0D6g1gjfLDligfTPv4zHDSsB8fev3GTO/wVX8MzMP6U5eGJk1lbWzytf5FUN8RV7CWrpOyQ2LUaCBM8IBIfUdiQEoqIES4UyDi5i43gjNSQYXQnAkNAcZb3cGlM+SoSnaYSpSZttLwMZPcIdCn7rYSFG44GKVL6KBCBRU2ZPTC7pFhkBa87QdNkodcnraCE2xqQvFO79itzsTOTm2g0KNqDCNv6Lp22qmZvp5si0+WhFH+CoWCnzB7cJDyXJZe8TaYR/Dqfzt9ZNtsVLUM79hEmwVuntHP8mDZMLFiOnCWCEHYhx6p+JuwfMAAuV3EHV9bcYVVbDZ2hT9qbWXktjYTRBUy/GZBNaeJTRow8wuK9YTiJ4+vmbHZEfx6OatQl52oU1wa2br93UUYhQOFgGRA5b+uQlUFwUowmJf7bqzuuVRJHpp2hYt5VKSWsnnBQ0J+ZeWomPPoU0Gt/extmLhrzgQPcKFTyPk4y7ltsdyX4ZnQIqoJBmzZlu3UMe2mmoRHufP69SFu2zBQo4HEItEw1QwrrRYFpbqV5Qro7qTCUvJgPo+GWw0+FMG7WRjqUbnLJn21pjEyEYTUo/c743IRvIxR54/11nYnJ9r8MTaVBa+ZWNPUPG9eCcL8eOj3CCijEDOXFwLlc9GqaNrGfiQPuvBQQJq4aMOK8hrG0fIrPODDjkIx2OcOJqdq7h9BbgUJ8A66lAsS+5hiMawO8BzwAh1zezNEKLA/5nJlq9znDU7kxUUei80J95MgRHE7UaKkAPlDRUct/HT08MImCwVqPWVejm9sqnMjK5kx2oLN3xVSsk6fIluc3j/GS0+nILyqikyhYcCaq6+h+9rBz7+YJkNda1l2gwdAobgUIeyemhGl0XWpj5Wz0vrpAFpsiBfqTSw08GJfF25UBquKOSbmGWpcaZscUOrwM4121aKpz0P37dgiMNI1b3YSz9EScVjKLfYGVSYSezTmBAqfbJ1b3zewoTk4n3yVARToQr0ZxbmMz1q1D0KA02M9C7Aux7IKJyCdHXxzgb/EIqLd0BqcgUXZP/z0q/7r/YzzA1OZG5rL1cymi9QXFFZJAqc7YQOPZa9sUtjqXE8UIN1sbDdRkreWFP3khq0bUaC8khClO/v7d3UUMrXlxsT23XVH2PrQ8hmpgZ5NfsHgUEprF14t9BIIeUWOtZad82giJw9ZBMsRq9zzckqSTZsMtiI6IbSVqmNoto91Aa+WZ62IzI6fATsr0ZaAu0pzn+vfiq1EmO8ew3B9M8M5M7W/cufZoy+JjoHrGs6NxZs0D4f/5R7262mcwF0/V1+/Vv9nFajiUl7yK84IMATbVXZA== X-Forefront-Antispam-Report: CIP:52.169.0.179;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:eu2.smtp.exclaimer.net;PTR:eu2.smtp.exclaimer.net;CAT:NONE;SFS:(13230040)(36860700013)(376014)(82310400026)(14060799003)(35042699022)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: aerq.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2024 13:17:45.0876 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94db491d-d04f-4109-c5fb-08dd04aeba51 X-MS-Exchange-CrossTenant-Id: bf24ff3e-ad0a-4c79-a44a-df7092489e22 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bf24ff3e-ad0a-4c79-a44a-df7092489e22;Ip=[52.169.0.179];Helo=[eu2.smtp.exclaimer.net] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F95.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR10MB8322 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: <linux-iio.vger.kernel.org> List-Subscribe: <mailto:linux-iio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-iio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="----1852AE4FDE1479EB8EF3900BEB95A59E" X-cloud-security-sender: cibil.pankiras@aerq.com X-cloud-security-recipient: linux-iio@vger.kernel.org X-cloud-security-crypt: load encryption module X-cloud-security-crypt-policy: TRYSMIME X-cloud-security-Mailarchiv: E-Mail archived for: cibil.pankiras@aerq.com X-cloud-security-Mailarchivtype: outbound X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-relay67-hz1.antispameurope.com with 4Xq10r4S9WzKvfd X-cloud-security-connect: mail-db8eur05lp2104.outbound.protection.outlook.com[104.47.17.104], TLS=1, IP=104.47.17.104 X-cloud-security-Digest: e04e1126f59e9eb9a808d9913bd75888 X-cloud-security-crypt: smime sign status=06 sign_complete X-cloud-security: scantime:2.359 DKIM-Signature: a=rsa-sha256; bh=+BZQkN1N/AaHDw9gCv7d5tSCnymoz7/B8Qp+eYbPgOY=; c=relaxed/relaxed; d=aerq.com; h=content-type:mime-version:subject:from:to:message-id:date; s=hse1; t=1731590281; v=1; b=MfV/MGg1ycKNAyLvfV3t2/IXEv3l3rYOeAdUd5MlEYpfZeKa4xZ2AB+bRGE3lTcU4MSj9rvY LfUMrY5hecxajIuuTGnnU+6RaKot/MA+i9S2Dsc4caV5izHWmlpiQvN1wt66rAf+OaoWa3DpSdJ 5kGnb6F4H59sfcGaDskB7OZKWziWJy+SA7H/MC4Hmt4/oluH8wboU7KTd0BeeKov9BeAQ/qdg7I 8pPhlpeDDoRdOx9Oa/0hlA8uC0U7xFDy6xgiHt7tZoM5kARn9eI/PjPM6NJcPryzuVOxyMxWO1/ TMVcujrM8F9t0wQY4b8QohS3w4kzmG/v1V1fPxo36yaMg== |
Series |
iio: light: cm3232: Reset before reading HW ID
|
expand
|
diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c index 2c80a0535d2c..db33671c448c 100644 --- a/drivers/iio/light/cm3232.c +++ b/drivers/iio/light/cm3232.c @@ -89,6 +89,15 @@ static int cm3232_reg_init(struct cm3232_chip *chip) chip->als_info = &cm3232_als_info_default; + /* Disable and reset device */ + chip->regs_cmd = CM3232_CMD_ALS_DISABLE | CM3232_CMD_ALS_RESET; + ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, + chip->regs_cmd); + if (ret < 0) { + dev_err(&chip->client->dev, "Error writing reg_cmd\n"); + return ret; + } + /* Identify device */ ret = i2c_smbus_read_word_data(client, CM3232_REG_ADDR_ID); if (ret < 0) { @@ -99,15 +108,6 @@ static int cm3232_reg_init(struct cm3232_chip *chip) if ((ret & 0xFF) != chip->als_info->hw_id) return -ENODEV; - /* Disable and reset device */ - chip->regs_cmd = CM3232_CMD_ALS_DISABLE | CM3232_CMD_ALS_RESET; - ret = i2c_smbus_write_byte_data(client, CM3232_REG_ADDR_CMD, - chip->regs_cmd); - if (ret < 0) { - dev_err(&chip->client->dev, "Error writing reg_cmd\n"); - return ret; - } - /* Register default value */ chip->regs_cmd = chip->als_info->regs_cmd_default;