From patchwork Tue Sep 26 08:57:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 14517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1775181vqu; Tue, 26 Sep 2023 02:11:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtKxNn8orhZeIwKVLAt6DKScDgwMSwhdJb8PXFOiyJsHaWToDMhOyrYtiBJVCB9H72QmbP X-Received: by 2002:a05:6a00:982:b0:68f:b769:9182 with SMTP id u2-20020a056a00098200b0068fb7699182mr3558968pfg.9.1695719463255; Tue, 26 Sep 2023 02:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695719463; cv=none; d=google.com; s=arc-20160816; b=R5vulIv0X4h2rijsTpXVGrLpt2ZN7xJ+svOYVHo70bY7ftPgfbAz3n58DfbXR6rQkC JWlhhh0CV0JrL8OxnC7vBqTeiGEppL3aBgUT6hOaOzAmskHQStY5h8BMXvLaHJ8rvtR+ Yb4x4QjsgJ/fsohzA7TLsYtX3M0U8oCe0SS+y9xzhRcvzpNhvJOOTEyfv3kQxx2nF+bQ kuOryYCWNprL1OQ/OMMgGPQzvA2FTPOXjTsRe7a+06qTtdU/c7bl/gZ9b/Dj+a5sctkF xn1odTSLdGZua/QogBsNst3/X18FNvWZjGNUowLwZSB5Q9ikVZlw70ukMCK5PYoVU4Oq XupA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PJmPRP7Pv/QaOOYrLzydaJ0hgZfnTfjzaJhLI08SHwU=; fh=EtaEg08KBBnGU5eH4/30qBB40LXTZiomnyUv8MhN5E4=; b=rgZaLkJWKYRTiOmDsV6hOEc3MUXr4rgBrmjGrYfZCopvJEMby0TY1ZT/QS7NKZDpGH tCPKQEPHMTmPZJ9WNhqQiazHRR3ETW4m9K+GGrH/UJ7lC+x9cm9CDtOO1Rz2TzdR38tE kQyvmCGw0Jo9tkbGtXr7nzlWKtHRecebqKzzTIxvTPrAtyzprT3SA38Oz/q5R5d0rifA dDkxaFbJSfXoUCd+NTQecjMs3xOm1wh9qXLzesSwoSrvuILfvc2SN0C+Fb3D8290EJvp J5Y2j3CeOmiiyhjMAbQhGzLj4Tf/zkGo9mXLRLox++qc9L+R8IUVRZlas2qwoJ6CEaix XjRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b17-20020a656691000000b005648d20203dsi12451435pgw.233.2023.09.26.02.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 02:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 54F5580C0554; Tue, 26 Sep 2023 01:57:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234025AbjIZI5v (ORCPT + 27 others); Tue, 26 Sep 2023 04:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjIZI5t (ORCPT ); Tue, 26 Sep 2023 04:57:49 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF133DD; Tue, 26 Sep 2023 01:57:43 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38Q6uBXe013768; Tue, 26 Sep 2023 04:57:35 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tacvjvs8q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 04:57:35 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 38Q8vXrj038821 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Sep 2023 04:57:33 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 26 Sep 2023 04:57:33 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 26 Sep 2023 04:57:32 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 26 Sep 2023 04:57:32 -0400 Received: from rbolboac.ad.analog.com ([10.48.65.173]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 38Q8vOYW024299; Tue, 26 Sep 2023 04:57:26 -0400 From: Ramona Gradinariu To: , , , CC: Ramona Gradinariu Subject: [PATCH 0/1] iio: imu: adis16475.c: Add buffer padding after temp Date: Tue, 26 Sep 2023 11:57:20 +0300 Message-ID: <20230926085721.645687-1-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: PQTyh47q4AB_NNCQrIa1buc6Sv2prgXB X-Proofpoint-GUID: PQTyh47q4AB_NNCQrIa1buc6Sv2prgXB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_07,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 clxscore=1011 phishscore=0 suspectscore=0 adultscore=0 bulkscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2309180000 definitions=main-2309260078 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 01:57:49 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778090731625219456 X-GMAIL-MSGID: 1778090731625219456 The temperature channel has 16-bit storage size. We need to perform the padding to have the buffer elements naturally aligned in case the temperature channel is enabled and there are any 32-bit storage size channels enabled which have a scan index higher than the temperature channel scan index. This is a fix for the bug which was introduced with 8f6bc87d67c0 ("iio: imu: adis16475.c: Add delta angle and delta velocity channels"). Ramona Gradinariu (1): iio: imu: adis16475.c: Add buffer padding after temp channel drivers/iio/imu/adis16475.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- 2.34.1