From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B647FC433F5 for ; Wed, 29 Sep 2021 05:50:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E7C4861361 for ; Wed, 29 Sep 2021 05:50:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E7C4861361 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=hcl.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HK57l2k7gz2ypV for ; Wed, 29 Sep 2021 15:50:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=HCL.COM header.i=@HCL.COM header.a=rsa-sha256 header.s=selector1 header.b=k8rCs6gk; dkim=pass (2048-bit key) header.d=HCL.COM header.i=@HCL.COM header.a=rsa-sha256 header.s=selector1 header.b=k8rCs6gk; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=hcl.com (client-ip=40.107.131.135; helo=apc01-sg2-obe.outbound.protection.outlook.com; envelope-from=thangavel.k@hcl.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=HCL.COM header.i=@HCL.COM header.a=rsa-sha256 header.s=selector1 header.b=k8rCs6gk; dkim=pass (2048-bit key) header.d=HCL.COM header.i=@HCL.COM header.a=rsa-sha256 header.s=selector1 header.b=k8rCs6gk; dkim-atps=neutral Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-eopbgr1310135.outbound.protection.outlook.com [40.107.131.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HK56t04XXz2xtV for ; Wed, 29 Sep 2021 15:49:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HCL.COM; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ruJCb21kMc6O1qK4Jx4rfaAAkfz6aTuK7ilDBuwFERI=; b=k8rCs6gkQdGp1ZJVACcDJ2LBxNjUscOsKvLpayI7enUxnHc3seXT63X9zhYquDw5oBQRqnRoGt6fQzPGld3shhPC9iLIVjpsxbHEK6QnaDKFKZHGcSd9SHtEweXwj6R1E/7nXYBz99ylJuLVplogNMzu0T8aJIkxOsWhrNEpMtdTqO3wxtDtPjIy1RzdXl4NDwL044YG4QXgTSsArQk5aTZp2lZM82Ge7bBC7l7/9ToP2vj0E7DyOZZikv0sTI4mC0Yx48DG5u7xz+Cj3PNOAfoN00vZojGs/8Sv8/zpmwB2o/Pz6hGMA0twhfyaTQr6oZhcuSw+MmZzmcu5w0GzwA== Received: from HK2PR03CA0043.apcprd03.prod.outlook.com (2603:1096:202:17::13) by TY2PR04MB3950.apcprd04.prod.outlook.com (2603:1096:404:8012::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15; Wed, 29 Sep 2021 05:49:20 +0000 Received: from HK2APC01FT015.eop-APC01.prod.protection.outlook.com (2603:1096:202:17:cafe::33) by HK2PR03CA0043.outlook.office365.com (2603:1096:202:17::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.7 via Frontend Transport; Wed, 29 Sep 2021 05:49:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.8.195.57) smtp.mailfrom=hcl.com; lists.ozlabs.org; dkim=pass (signature was verified) header.d=HCL.COM;lists.ozlabs.org; dmarc=pass action=none header.from=hcl.com; Received-SPF: Pass (protection.outlook.com: domain of hcl.com designates 192.8.195.57 as permitted sender) receiver=protection.outlook.com; client-ip=192.8.195.57; helo=APC01-PU1-obe.outbound.protection.outlook.com; Received: from APC01-PU1-obe.outbound.protection.outlook.com (192.8.195.57) by HK2APC01FT015.mail.protection.outlook.com (10.152.248.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Wed, 29 Sep 2021 05:49:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rf130pnhAVxgBXy0z9IOo+y4N3+w+3NdjF6+KsCFSPFPk+og79mULBv28irD0WTIq0tM1Qin1B7uHJMOKZSVRCwj7IIRQPwVEz/DZzhu+JcbEbQUOLmKWIFlv92fZt4Vnmn9OC0ZeEy7O1topNovnwlxba9CzuMNiG4adHoYExPC7SqyieRa06Snv4SSf/6s5LLNOw3y6dzUSw33DlII3OewdSwrlvH+lmrZVM3Eh3+HoedaXXQ+WeR2SFysqFMzk4zy2lf0iAELiPc3JtTsTIshS++JaGUou+vGYyhsYsXli5StOBBGp6EFm4lC2zQ1D24c6VRg7p2zBfYlHHuvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ruJCb21kMc6O1qK4Jx4rfaAAkfz6aTuK7ilDBuwFERI=; b=ajHL3v5GE2NX3qqcki4JHg+up6c56fkSil1iCYD552Ad0koBvhfJGVrwmelT4DBmmwCAcZrG9jLqLv84KRcQ3PMigR9J7bsxsAIEp0kJzUGt43l8Eifj+2gbb8Tq7/XOi88Ez/aAvFz+iIkMcjoBiVhN9x5FpXF2I37bte8Z6rYWJP3biEPiDptYRCnhg1X6E9i1GQm2y/pCgZeqmsDbIj21kY5SZFJhlJcqjZ2iMsqriRMEdCmDKylMspwiwUxt12ntVnpFaKB1zqCkmk02bvfKmsFpPbTMH6mwg8HiKg4GqqtNsCLniweio9xv1L+OlCKzkv9IRIDMAS6Wiai8qw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hcl.com; dmarc=pass action=none header.from=hcl.com; dkim=pass header.d=hcl.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HCL.COM; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ruJCb21kMc6O1qK4Jx4rfaAAkfz6aTuK7ilDBuwFERI=; b=k8rCs6gkQdGp1ZJVACcDJ2LBxNjUscOsKvLpayI7enUxnHc3seXT63X9zhYquDw5oBQRqnRoGt6fQzPGld3shhPC9iLIVjpsxbHEK6QnaDKFKZHGcSd9SHtEweXwj6R1E/7nXYBz99ylJuLVplogNMzu0T8aJIkxOsWhrNEpMtdTqO3wxtDtPjIy1RzdXl4NDwL044YG4QXgTSsArQk5aTZp2lZM82Ge7bBC7l7/9ToP2vj0E7DyOZZikv0sTI4mC0Yx48DG5u7xz+Cj3PNOAfoN00vZojGs/8Sv8/zpmwB2o/Pz6hGMA0twhfyaTQr6oZhcuSw+MmZzmcu5w0GzwA== Received: from PS2PR04MB3589.apcprd04.prod.outlook.com (2603:1096:300:5e::22) by PS1PR0401MB2123.apcprd04.prod.outlook.com (2603:1096:803:d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Wed, 29 Sep 2021 05:49:16 +0000 Received: from PS2PR04MB3589.apcprd04.prod.outlook.com ([fe80::208f:4cab:28d3:b0cf]) by PS2PR04MB3589.apcprd04.prod.outlook.com ([fe80::208f:4cab:28d3:b0cf%3]) with mapi id 15.20.4566.014; Wed, 29 Sep 2021 05:49:16 +0000 From: Kumar Thangavel To: "openbmc@lists.ozlabs.org" Subject: EEPROM Validation issue in Fru Device. Thread-Topic: EEPROM Validation issue in Fru Device. Thread-Index: Ade0hYZQ1eWZ+jg9QxKHfDi/VhnCMw== Date: Wed, 29 Sep 2021 05:49:15 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-hclclassification: HCL_Cla5s_C0nf1dent1al x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL2hjbCIsImlkIjoiYTlhM2RjYWYtODQ2Ny00NjQ2LWJjNDEtMDc0MjhjMzY1YjMxIiwicHJvcHMiOlt7Im4iOiJIQ0xDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiSENMX0NsYTVzX0MwbmYxZGVudDFhbCJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxOC40LjE4NDMuMTIzIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlhTdUt6dTJYc1YzY2MxYzgwNzRiUm9wTVdrRlV1Y1RXVGVJYXUxNytrRWZQYzdOUVVCS3FzSllpNWhaK3p2cUoifQ== Authentication-Results-Original: lists.ozlabs.org; dkim=none (message not signed) header.d=none;lists.ozlabs.org; dmarc=none action=none header.from=hcl.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: c97561e3-26cb-4d95-d1f5-08d9830ce19e x-ms-traffictypediagnostic: PS1PR0401MB2123:|TY2PR04MB3950: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-ms-oob-tlc-oobclassifiers: OLM:7219;OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ImIQuptBKttuLilhLj9KcC0neB6v8BYEVhLahJGA7t8akIgaQrITw81KogTfYqUXC598JFaianH55pYA0Bju+cViGXuxjG2aH8FicuOwHWj7InLJmVvF5dNrIIY9X1A85PIvadkyzTZU6DZPYA+zTtD6l4L9w96CaYiBwCg+OGfTI799yTLU/KreZZo91jkqNYxPSjCQ82ny9UIdtzOa+WAeRgxmumf2BubOpPV7OVStVUOTH4ecZ4wCVEzp6J6pNgll9Fhea1Um8qA0avN5YTV+feShg6j8AkNEAMPnaYESuhGo27+MOEYlYzfaQS0LVJSKGM/QtgMMeuzXx28cIsWOKiicNUGs4czsLELzGYr7bzMBjLMzI2qIsglcBQa5/B8OPjVrEm4YR7+evp6Zen4+6rB4HewBmVuMN4E1gafOzHaLjBAvxqTq22fxxVbB6zFfLPbBkFk+hMK+Tzz+Vp9xZSllfw5Kc5sHQA4m4SFu4GdgHo5751u+Tyjn8Jg4q5yF8IawEJFybb7RMSeBsoRHo1nI6taN2L4A1sjDBwwbcQY0ApLAtBnZUvT8f5OYQBnDSJw1jMHwF4vRckZQpWLmuiP80NDGyg3+w8GdsPqM6uzCICblXZy/eLduOJmSPkmriF6qRAw1U43mECdj19JI8OeQTY2UH5IvyNMv+Y/V/61OZxm76rIjVC+7ObyDg69MdD0Z9Kaw5HD7LrfacQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PS2PR04MB3589.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66556008)(64756008)(38070700005)(9686003)(66476007)(66946007)(66446008)(83380400001)(86362001)(52536014)(5660300002)(316002)(33656002)(55236004)(6506007)(508600001)(55016002)(71200400001)(6916009)(7696005)(54906003)(76116006)(26005)(122000001)(8936002)(38100700002)(8676002)(186003)(4326008)(2906002); DIR:OUT; SFP:1102; Content-Type: multipart/alternative; boundary="_000_PS2PR04MB3589B9346947C693802AE1F7FDA99PS2PR04MB3589apcp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0401MB2123 X-DLP: MSGProcess X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: HK2APC01FT015.eop-APC01.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 84b6e334-11a1-4d91-426d-08d9830cdf79 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YojLkZK4x1pHb7WmnZmOwcPs9Qnpr29/5dMEhgJtkWTlW5ZW0pCa43Z9e45c6ND9YTvhnstFTNZtxi9mAQA4rasjOfEos+2ZQJBcxAIwxqeIy0eN9/Om1wzpWDhsQzwJfp3LmApONbh9ziUMQFjluFNt0diQH1MeIjRRFLejZ3FmXcwViyQrsEWDCmqHMsa8sSJOHu2Md3CJzzb1mS00xIkBL48G+pDYImsy675MnqPsxjlkHuyusI64eGF0CxT2z8Gp+rlOP/et/7bs1VY1XeI29ndr7t4AsD4NIu/cwUjN9IcQuQaqiBmoawL+fy1YUZMgApuhGba6Ny/y4x+oW6+bXPyEqZDtkzXY9miBa5KLCDK5j+T6QLeSBhKZ0mp59xJwitAPjAx1A91FikQmovUOY9speCow5MiIEvKXSgjtw+3C2Q7l/Bsj3RUJ9SFhaDwdtFmrC7CNV4qdLpA4D0VIbziWS3tll+EJ5hMZ/oFvRb87y+4sXFP6GxyjVcWpuay6HbIcfwrk6J912RKOaCaA/YdtqS/TBxHgVRh5Jao9AHI3aXBSEcbTXMSvwAf+9bVqnQjrU6EU8rzglWnD8c2AnVIAAzTyDtPZejW5BSYqz7UKyNwLYi492jtzF0pCe/s/bFYwe1GX8WiSq7FMQ2FM4E8/RsQhBycNFHP+/PNsv9C+IZnRTYShm1Hnh+TIM5yLNgVSD2TKpn9OntZAwoFpIjtyVt3YkcdiPubS5dQ= X-Forefront-Antispam-Report: CIP:192.8.195.57; CTRY:IN; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:APC01-PU1-obe.outbound.protection.outlook.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(70586007)(47076005)(81166007)(55016002)(6916009)(356005)(508600001)(26005)(186003)(7696005)(6506007)(33656002)(70206006)(2906002)(8936002)(83380400001)(316002)(4326008)(86362001)(8676002)(82310400003)(36906005)(36860700001)(5660300002)(9686003)(54906003)(52536014)(336012)(36900700001); DIR:OUT; SFP:1102; X-OriginatorOrg: HCL.COM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2021 05:49:19.3756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c97561e3-26cb-4d95-d1f5-08d9830ce19e X-MS-Exchange-CrossTenant-Id: 189de737-c93a-4f5a-8b68-6f4ca9941912 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=189de737-c93a-4f5a-8b68-6f4ca9941912; Ip=[192.8.195.57]; Helo=[APC01-PU1-obe.outbound.protection.outlook.com] X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT015.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR04MB3950 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jae Hyun Yoo , Vernon Mauery , Ed Tanous , Amithash Prasad , "Velumani T-ERS, HCLTech" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --_000_PS2PR04MB3589B9346947C693802AE1F7FDA99PS2PR04MB3589apcp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Classification: Confidential Hi All, We are working in FRU module that has 16 bit EEPROM and Wanted t= o read eeprom data Via i2c. The below function in FruDevice.cpp in entity-manager validates = 8bit or 16 bit device. This function returns "0" for 8 bit device. This function returns "0" for 16 bit device also. But it's suppo= sed to return "1" for 16 bit device. We have tested with our 16bit device. It returns "0" only. If we read via i2c utility commands, getting all 255 data in th= e first bytes. If we make code changes to return "1" for 16 bit device and call= ed the function "i2cSmbusWriteThenRead", then we could able to read all the data perfectly for 16 bit dev= ice. Code snippet : static int isDevice16Bit(int file) { /* Get first byte */ int byte1 =3D i2c_smbus_read_byte_data(file, 0); if (byte1 < 0) { return byte1; } /* Read 7 more bytes, it will read same first byte in c= ase of * 8 bit but it will read next byte in case of 16 bit */ for (int i =3D 0; i < 7; i++) { int byte2 =3D i2c_smbus_read_byte_data(file, 0); if (byte2 < 0) { return byte2; } if (byte2 !=3D byte1) { return 1; } } return 0; } I2c utility command log : i2ctransfer 12 w2@0x51 0x00 0x00 r8 WARNING! This program can confuse your I2C bus, cause data loss and wors= e! I will send the following messages to device file /dev/i2c-12: msg 0: addr 0x51, write, len 2, buf 0x00 0x00 msg 1: addr 0x51, read, len 8 Continue? [y/N] y 0x01 0x00 0x00 0x01 0x0e 0x1c 0x00 0xd4 Questions : 1. How the function isDevice16Bit Validated for 16 bit device ? 2. Is my validation and analysis is correct ? Could you please provide your suggestions on this. Thanks, Kumar. ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and inte= nded for the named recipient(s) only. E-mail transmission is not guaranteed= to be secure or error-free as information could be intercepted, corrupted,= lost, destroyed, arrive late or incomplete, or may contain viruses in tran= smission. The e mail and its contents (with or without referred errors) sha= ll therefore not attach any liability on the originator or HCL or its affil= iates. Views or opinions, if any, presented in this email are solely those = of the author and may not necessarily reflect the views or opinions of HCL = or its affiliates. Any form of reproduction, dissemination, copying, disclo= sure, modification, distribution and / or publication of this message witho= ut the prior written consent of authorized representative of HCL is strictl= y prohibited. If you have received this email in error please delete it and= notify the sender immediately. Before opening any email and/or attachments= , please check them for viruses and other defects. ________________________________ --_000_PS2PR04MB3589B9346947C693802AE1F7FDA99PS2PR04MB3589apcp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Classification: Confidential

Hi All,

 

        &nbs= p;  We are working in FRU module that has 16 bit EEPROM and Wanted to = read eeprom data Via i2c.

        &nbs= p;  The below function in FruDevice.cpp in entity-manager validates 8b= it or 16 bit device.

        &nbs= p; 

        &nbs= p;  This function returns “0” for 8 bit device.<= /o:p>

 

        &nbs= p;  This function returns “0” for 16 bit device also. But = it’s supposed to return “1” for 16 bit device.=

 

        &nbs= p;  We have tested with our 16bit device. It returns “0” o= nly.

        &nbs= p; 

        &nbs= p;  If we read via i2c utility commands,  getting all 255 da= ta in the first bytes.

        &nbs= p;

        &nbs= p;  If we make code changes to return “1” for 16 bit = device and called the function “i2cSmbusWriteThenRead”,

        &nbs= p;  then we could able to read all the data perfectly for 16 bit = device.

 

        &nbs= p;  Code snippet :       <= /b>

 

        &nbs= p;   static int isDevice16Bit(int file)

        &nbs= p;       {

        &nbs= p;           /* Get first byte= */

        &nbs= p;           int byte1 =3D i2c= _smbus_read_byte_data(file, 0);

        &nbs= p;           if (byte1 < 0)=

        &nbs= p;           {

        &nbs= p;             =   return byte1;

        &nbs= p;           }

        &nbs= p;           /* Read 7 more by= tes, it will read same first byte in case of

        &nbs= p;            * 8 bit but= it will read next byte in case of 16 bit

        &nbs= p;            */

        &nbs= p;           for (int i =3D 0;= i < 7; i++)

        &nbs= p;           {

        &nbs= p;             =   int byte2 =3D i2c_smbus_read_byte_data(file, 0);

        &nbs= p;             =   if (byte2 < 0)

        &nbs= p;             =   {

        &nbs= p;             =       return byte2;

        &nbs= p;             =   }

        &nbs= p;             =   if (byte2 !=3D byte1)

        &nbs= p;             =   {

        &nbs= p;             =       return 1;

        &nbs= p;             =   }

        &nbs= p;           }

        &nbs= p;           return 0;

        &nbs= p;       }

 

    I2c utility command log :=

 

    i2ctransfer 12 w2@0x51 0x00 0x00 = r8 

   WARNING! This program can confuse = your I2C bus, cause data loss and worse!

   I will send the following messages to d= evice file /dev/i2c-12:

   msg 0: addr 0x51, write, len 2, buf 0x0= 0 0x00

   msg 1: addr 0x51, read, len 8

   Continue? [y/N] y

   0x01 0x00 0x00 0x01 0x0e 0x1c 0x00 0xd4=

 

    Questions :

1.       How the function isDevice16Bit Validated for 16 bit= device ?

2.       Is my validation and analysis is correct ?

 

     Could you please provide yo= ur suggestions on this.

 

Thanks,

Kumar.

 

 

 

 

::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and inte= nded for the named recipient(s) only. E-mail transmission is not guaranteed= to be secure or error-free as information could be intercepted, corrupted,= lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its con= tents (with or without referred errors) shall therefore not attach any liab= ility on the originator or HCL or its affiliates. Views or opinions, if any= , presented in this email are solely those of the author and may not necessarily reflect the views or opinions = of HCL or its affiliates. Any form of reproduction, dissemination, copying,= disclosure, modification, distribution and / or publication of this messag= e without the prior written consent of authorized representative of HCL is strictly prohibited. If you have re= ceived this email in error please delete it and notify the sender immediate= ly. Before opening any email and/or attachments, please check them for viru= ses and other defects.

--_000_PS2PR04MB3589B9346947C693802AE1F7FDA99PS2PR04MB3589apcp_--