Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2711734rwd; Mon, 22 May 2023 03:13:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RasSs3iLEIes4Bqob88/0J8Sthd14B5Gdwa1dezBrnnJAUbr6g9bqcGpCQBTvcnWTyUGK X-Received: by 2002:a05:6a21:3387:b0:10b:9db0:b03f with SMTP id yy7-20020a056a21338700b0010b9db0b03fmr2463652pzb.18.1684750387651; Mon, 22 May 2023 03:13:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684750387; cv=pass; d=google.com; s=arc-20160816; b=eur/0ggjzUnWBshgVCaGAtrPmS+IS8mWeqWt4QhP9hKCFl4gzx1M6eB4u3gZxoKhQt LXt6kpipA2luKfaxWe39FtszRkz/cVEOxcqRgkGFAty8wddx7iY6N892qx6h81xBH89K klqvxBZdtb9y1qINajngumNeumVtWF1PoxmfBtmYdiwoegmckUYEoM7/aeaoF/vNqah9 V+IgkY6tZM5V0QhVhDJdMm5cuvzVO/7J6s0QzZ2gniAd3xjv35sXtj068h5mFw3e8W6d Dy/C0Fr8V7CmsdfvAuDqgNQlFkbL8JYl23Y9Us5Xe3UGGYzhkw4j64z9X7jkZ8bWsCaB IcOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=Hm8v6igCyemc1JX6DqN4n91hySYry3hW1N1IMTZVrRY=; b=0oM1CdhXu9TMXo5bbQ9JN5nEIKcE4hjpbCgeGGldYlL/qcSBN3UzME5rO8Es2CHrDy O2sTod1+IeOgxLihrrcF38M5lYeUemF4D6llL58choxEeoxO7TXiy7qm5myiQlFc98Jo 0pMOv2HqghvYze2JyL8A+4SITGy0tsPnlCWj17TlhtkbSj85IbORdDilBdzKKzLP9mW9 onmGQWs1W+8jjQuASfEU/FzmS0qoGkq5jh7OgCi/cTBYE8FLyEf+3OQ4jLaYG2dxndXm wluXJb3pr4ga7j+WZ8lfeRYz+kbm+lprdrABExmOcSa73jz0qdzMolMfLxAC75hpuOpv sMGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=l6Xj3ZVS; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a636b02000000b005303b739292si991354pgc.702.2023.05.22.03.12.52; Mon, 22 May 2023 03:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=l6Xj3ZVS; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230319AbjEVJuY (ORCPT + 99 others); Mon, 22 May 2023 05:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbjEVJuL (ORCPT ); Mon, 22 May 2023 05:50:11 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2056.outbound.protection.outlook.com [40.107.6.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9701B4; Mon, 22 May 2023 02:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FskJaK6fZyJ62XqRYKUUJUtkWVhdZABTsGJo+WBdMD6hPc7Q/nytc7RZUREpL7lk6ftgQ+pycUV4YB9cBgXnH2Az+rTY+j0iSpos+DQDyHf3T0uupQY3CmEqxrEHRXoWE6cXM733oFsZwaCjMRePQiBMn9myGMXlXNCF5LFN5eTgdseWyq4am1qtBnLpq5d4BwE0CqGa7QE6VrWZVuAsk/6NTVEVkvEZBX6I/gcBFi0F2hyBifgTgQJesupt5SSNNC9xsGmn/EJd3/HyxdsTf7e0PROBnT0LFVYNgoGBnbn8eEVM/RmO6XgsUoaZkoRlvs9zJdsah1Ux4PdgcGhfkg== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Hm8v6igCyemc1JX6DqN4n91hySYry3hW1N1IMTZVrRY=; b=UEungqVV89su8oKtQPOcEk1wqQVMbkCacnv+HUu/vYux5I/EPL4XgA/0/GfIslQXY7HWTrXfcxs1C7k5E4N8SaV2xwqDLei1U3q4DyiVlSg/urlcdy/qOwTObx7T+zw2omrGc8muXkjQpU2SrdiX8AIPZu9C/LjNe7PU4dNFPqlj8eM9akJGt85QODLVW1sgkj1R0VGTiI0mP02C0dZKZVUoiCbNLgLlh9D+U0exRKmE5/XtM6XlZWY4UizsYAUIhnzeYjxNwR/mW24YbRXA2+6qEQof9el/7PcBADm7pG176AY2r2BfIjlRlXbU+YesipNIYBxO2wxUc/nTwJD+ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hm8v6igCyemc1JX6DqN4n91hySYry3hW1N1IMTZVrRY=; b=l6Xj3ZVSJHBRtprRTOg6Mjw4SKy31AiILErQmn4v82PbnD0mRQTU1RJjTrCkxyTMp+er3O2V71+m3pSfofNueM2txytFIvB1N6aXqEJrXdAgE2tAZ7ttTdom5fQWFORgULcfFbCZEJFMvP3zTgKsKchFDLxvq+Q6DYjcSpf+gQV9/N9lVFq7lx8DXmQWmbSHr8iDmosUpT3GmlsJ0OPyfMwyAFkny9WUD6gJSkOiXwLQAA0fpr7cfezawcoRiMkNrUK6ZJN8JYp5nuwtp9qNcYVVsR+yObxW1+X2EYa2c3pb73OzyOaat4hmQk7h3k015/LiJW6xu8oOwDdiwT2oYw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) by AS8PR04MB8596.eurprd04.prod.outlook.com (2603:10a6:20b:427::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Mon, 22 May 2023 09:50:07 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::6c14:307b:6fd3:3bfc]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::6c14:307b:6fd3:3bfc%7]) with mapi id 15.20.6411.028; Mon, 22 May 2023 09:50:07 +0000 Message-ID: Date: Mon, 22 May 2023 11:50:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v8 5/6] i2c: Add support for Intel LJCA USB I2C driver Content-Language: en-US To: Ye Xiang , Greg Kroah-Hartman , Arnd Bergmann , Matthias Kaehlcke , Lee Jones , Wolfram Sang , Tyrone Ting , Mark Brown , Linus Walleij , Marc Zyngier , Bartosz Golaszewski , linux-usb@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org Cc: srinivas.pandruvada@intel.com, heikki.krogerus@linux.intel.com, andriy.shevchenko@linux.intel.com, sakari.ailus@linux.intel.com, zhifeng.wang@intel.com, wentong.wu@intel.com, lixu.zhang@intel.com References: <20230511175844.185070-1-xiang.ye@intel.com> <20230511175844.185070-6-xiang.ye@intel.com> From: Oliver Neukum In-Reply-To: <20230511175844.185070-6-xiang.ye@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0104.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::11) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|AS8PR04MB8596:EE_ X-MS-Office365-Filtering-Correlation-Id: fdac58fd-3cda-4c07-bb6e-08db5aa9ec9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qg1HgY24uA6FjtKtR5waa0oonCvUS8Bru0IoNCx+TI+9UFqfsLf7ddXlf23hvTx24uzALVDzVDR0Srx8AOy3MQFuzRHgkMapnK4iSTgzQIl3/eN9nBj2mFRh4rxEugDq1UMqWUbIwIT462T0JLHP8uHDgQr7RcBcLBZBRmZsnWkFoMUUdEibEUS09lxPdUfEGQbp+6+Sh5X2WWInslXjYmbHRym+vNhdSWHFUelUusH5UUAMZ5p2rBXa8R93l8S/IKlRh/DGUdDzzwZgOvNe4FltNEXFqm2Y7bk0NuYGDuGUEnivaIw6CokM2WXqzHOWTbOIDipiwCRdQrnucX/FC9i2VXeqXfaxMy0jEHxTSQc7catX/L2XsoufDoiDwV1GtF78n/Mdhfq6fiat9xi2g+6NO17zHZRLi/6I+1UM/YRQg4xxgm5zv471CAbdvBt3XSayUO8wS6xaWG7RYUxYJQFOuHTz8z6+EDkw/Qvyf9spOwv/L/rOqd8K0CJ4aFhFKC7VxSt7otPsOTn4NdDslx34NGiD1n2muGJdaEPfpqFK/xK9a2iB0OkijIGD1/q//mSJklhJM3uEo7z8mh19xzqS3e3MsWF/I9zk0XMWo0jnjLOnQ8tACvPtbtUx346hrIr6zNLmRTGbX6rK1QECuJEdBG4fu46vTVR5EdnT84s= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7104.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(366004)(346002)(39860400002)(376002)(396003)(451199021)(478600001)(186003)(31686004)(110136005)(41300700001)(5660300002)(6486002)(6666004)(66476007)(316002)(4326008)(6506007)(6512007)(7416002)(8676002)(8936002)(53546011)(4744005)(2906002)(2616005)(66946007)(66556008)(921005)(38100700002)(36756003)(31696002)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RnI5S0pFNE9XNUFHT09NNG1FTEZPTndOYUF1Q3NUVk91NjlQczVEUmo2S3cy?= =?utf-8?B?OG5oNUc4YWFNN3AvRlJvQ1JPREd2OVBqUGZlNUUzSEp3T2ZtcEVFZnU2eWhR?= =?utf-8?B?bEZrTERHdHJkeHM0RXp1TUE1bkFrUWF4T05MOXA1eGQzQnRBUml0dTRSVFFp?= =?utf-8?B?Y1NVQzB4SUxUTkk2SGVpcjBKSXRyc0VNZ3lIM3ZkUk1OZmZYOU1FMGZoYjFW?= =?utf-8?B?QS9sUTFzYWlGeGlsRXRudjUyOUZ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akNBSmtwTTBreC9udWNN?= =?utf-8?B?TGRFRXdOMk9ZdlFSSWhBbktOdDlvRzNaRzZLUC81R3ZUZHpMTlc5ZllXUWkw?= =?utf-8?B?ZGpjTm5JZUxaV0Q3V0l2emJ2ZDQ5amNxNHlpbzc4cGIxMlJEYzg1WUU5VzJh?= =?utf-8?Q?ZpsDJC9CCV2qcvtHGJXB/Po=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: fdac58fd-3cda-4c07-bb6e-08db5aa9ec9e X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2023 09:50:07.2066 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: e1eVfl3h16v6WUaoPq6a9nP2ZEEosAuHBE0fUmPJ8wP80Ag6rIqfQiHl7XO26skWvK8zXwXEhDhGV/JO7yZszA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8596 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.05.23 19:58, Ye Xiang wrote: > Implements the I2C function of Intel USB-I2C/GPIO/SPI adapter device > named "La Jolla Cove Adapter" (LJCA). It communicate with LJCA I2c > module with specific protocol through interfaces exported by LJCA > USB driver. > +/* I2C Transfer */ > +struct i2c_xfer { > + u8 id; > + u8 slave; > + u16 flag; /* speed, 8/16bit addr, addr increase, etc */ > + u16 addr; > + u16 len; > + u8 data[]; > +} __packed; Where is this needed? Why is it defined __packed, yet the internal endianness is not declared? Regards Oliver