Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp982565rdb; Tue, 19 Sep 2023 17:01:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5xuGHIDmkmEXK1hlD/pJKjO7aZDbGnWghl+a3cyumCbUSSB15gfmT6w5TqMcH4FXoCC+5 X-Received: by 2002:a05:6358:9920:b0:13a:a094:737d with SMTP id w32-20020a056358992000b0013aa094737dmr1161979rwa.18.1695168107009; Tue, 19 Sep 2023 17:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695168106; cv=none; d=google.com; s=arc-20160816; b=xTwMSMVLsIhrpNb76Uo3PNAsRCACzX3V/xPA32jpJUKdJR2t1MnooNxdbTysQtVqa5 9m5X9sntOfUh9b0wyryl36ZXE3mxEYqCWUybu5vHh4X0Eeujyd5i2d+0YFXJOPbM7e8M 43V3qaZ6yaT6ObOr0/AVNP/WTbGzbYs+AAdfUFwdIRp6ym2Dz+pu6yoOxo1pVJR/NvoX 8xsgC3AKVvPd5MTRqNnr90C+sE64j9E2keITLZoHM2oZzIIBQuJg4Ce/q9T4IzQCtHch aj6EQe2KNeL0GtLImnR2CczSMZJ+Gtf03gqijATP+NEWmja9hH6qc7wXUkp16mntWOLW Gjfw== 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:dkim-signature; bh=bY+VHjJhrEQCGUNkw7wSUOnPowwxJy7csKa5cND0RmU=; fh=sPdDAUEKjwli8EMJAahJlbgKt6j2HOXw7jDu6H3pr0o=; b=f5ZinaLAiQehW2XsQneD2FkGz5kkSzpnCem15bDcJyCwc3H78R8pI+LJ3pAopnDjIF Haedwk0JgjV1u8qjhSEH2DSrErevZemlGf2fhRcQLVZJy1FqKjRiTcnvan7mPTNu2NuR w9TuB9dPdggWeIRKkTnC7w7TMRwUjL9/AmFEskhipc7lc4jqaU/KcWgt5kxOr3cfm7lF 5EGPr9ZcrEa2w4UaEwDlHCtfYu3U7vhaC4/vp5uHRTSlngPv19gQupYKVF7lhIXcHqve Mhd6SrT8ihn/XbJ+YYnocI03uQh95Ft4GdbNjxvanybvP1Z9AzlFnG9v7/KGqRKa2phi KxTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k5FzJThk; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b25-20020a630c19000000b0055c7eb53d7fsi10568041pgl.584.2023.09.19.17.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 17:01:46 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=k5FzJThk; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8E13B8030B56; Tue, 19 Sep 2023 05:42:45 -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 S232107AbjISMml (ORCPT + 99 others); Tue, 19 Sep 2023 08:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231913AbjISMmh (ORCPT ); Tue, 19 Sep 2023 08:42:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E4A799; Tue, 19 Sep 2023 05:42:31 -0700 (PDT) Received: from mercury (dyndsl-091-248-212-118.ewe-ip-backbone.de [91.248.212.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1585F66030BF; Tue, 19 Sep 2023 13:42:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695127350; bh=w2VcAcMkxLks9jiD73Z3mgV3/9YOXxzVvLTa256WXS0=; h=From:To:Cc:Subject:Date:From; b=k5FzJThkM+6CtrIb0jRFjbILwmasCZsobdDhD/p4pP7MsSUtEOIDpxGELPapUvq12 iVtaJ3BYgdUCiRacVbAQLK/u+yRjHvnMp3Uv95/Y3PTWf58pOgFFw6myN8mKuLqXxm ioIQo9m7T1X3GU1Iw3VqtMv5rugI53fXAosVZAgrvGU3TrIzbpD3ITbULZlRNSjVyL skFUsgd2mJB0UDb4kJz//l5FSAeYep3sCDOdukAz4fEuYTMQDJ4g43Q9lXbj56KaIu lXEjFPw1wDX5aZS3OPU187de0L4Z+/tP4Xbey5zfpxrUoE3Pw7GZsXsVgWr9eFCSYy bDIO8Tii/V9nQ== Received: by mercury (Postfix, from userid 1000) id 7AF8E10604FC; Tue, 19 Sep 2023 14:42:27 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel test robot Subject: [PATCH] power: supply: qcom_battmgr: fix battery_id type Date: Tue, 19 Sep 2023 14:42:22 +0200 Message-Id: <20230919124222.1155894-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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, 19 Sep 2023 05:42:45 -0700 (PDT) qcom_battmgr_update_request.battery_id is written to using cpu_to_le32() and should be of type __le32, just like all other 32bit integer requests for qcom_battmgr. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309162149.4owm9iXc-lkp@intel.com/ Fixes: 29e8142b5623 ("power: supply: Introduce Qualcomm PMIC GLINK power supply") Signed-off-by: Sebastian Reichel --- drivers/power/supply/qcom_battmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qcom_battmgr.c index de77df97b3a4..a05fd00711f6 100644 --- a/drivers/power/supply/qcom_battmgr.c +++ b/drivers/power/supply/qcom_battmgr.c @@ -105,7 +105,7 @@ struct qcom_battmgr_property_request { struct qcom_battmgr_update_request { struct pmic_glink_hdr hdr; - u32 battery_id; + __le32 battery_id; }; struct qcom_battmgr_charge_time_request { -- 2.40.1