Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9953915rwp; Thu, 20 Jul 2023 12:12:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgzlel3gD4Z9lIFsU+4MJUzHq27E2KKptTTazZXrMok3zG+I6CBngAIdaCqkCdPvP4jb9Y X-Received: by 2002:a17:906:8a6e:b0:98e:419b:4cbc with SMTP id hy14-20020a1709068a6e00b0098e419b4cbcmr4927095ejc.12.1689880364241; Thu, 20 Jul 2023 12:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689880364; cv=none; d=google.com; s=arc-20160816; b=HJSE57XRLrXzcleMLQ9QjCzeU9VWMKGKX+YhxbaquY/7xMos/+KO8puYxzreuq6iUR F1en3h+DJGUizMhPDCWSRsnQC7ayyyCE3rOkakgofDiCHyDZaDSF8l+d3lSSmgNFUziv RzQAoakf8++MDAdBiokUdviATCwPBq8prXkpiJaDuuyHBOIX0exbMA1aNpXALXjgszzr hVeBv0w2YnPyDFToHmRmYPo4wUSwedSsrIF7vAthv3HAXIbwR0s8ty0jEnurYwR9hgQW dl5arkYqS5LYdJjqXsNhwFZIIvhuzsooG/pjzZmD79e2ye+YQXggBl/1dW5N2w22Q8uP INkQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vy1TPZf5dUgyInsziUQisyJ+9ypXo6wla4y1qAUFQyg=; fh=ptNXV4H/yUKM0EiDRGrvR6c4Zkfbw8Yj2CtsZpUbvTw=; b=dDD3aY1C3fhVT+QJtwvnSxyRgfferecc/uAdRHwPWe1UxsQV7BOMNtjdsaadxNV8Y9 8AY24HhLcijyZtddL70ftBtfDf8coiHtmBJlU3yTac6she3kMP8GZ5q5zfXBV1G40U2X LuArg+eMdgTTpguNBwe/OW4sq1z7tl+zsEjPJfxBu1qqBntCwb/O+UCvOyokfThIwdpL tWW5Sqn6AVHP0yPLOlJMDrHlYYFYFigJbW+zglcALKIgd/l6uTwy6gVDsQRZ3X1kH6FB M7wMMk6u5HZKZalLM78ZwYNZvYTLFKdt/xjEeQeW/Ac7oWFnU1clsjoE5vVv7hO8Fsp3 78ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M8YYd1c7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a17090614d300b009924806cd02si982336ejc.392.2023.07.20.12.12.18; Thu, 20 Jul 2023 12:12:44 -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=@kernel.org header.s=k20201202 header.b=M8YYd1c7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjGTSkr (ORCPT + 99 others); Thu, 20 Jul 2023 14:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGTSkp (ORCPT ); Thu, 20 Jul 2023 14:40:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40F6E47; Thu, 20 Jul 2023 11:40:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8262761BF4; Thu, 20 Jul 2023 18:40:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC743C433C8; Thu, 20 Jul 2023 18:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689878443; bh=/6QVSsokpaGbIcdE+fnOF8ooj6sFvlYDvCCv/ARgiaI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=M8YYd1c7o/smKB+jB6xBAaGqznaTmS9Rk5tLTQ1CAl7bugQjl4uRS68piCN4Ky7U5 8m++dC5hgyXy9BptO1MomkB4pYdxabKs2NejU6HKE90Rtf8N8YCgsqfU3RFirA9AWD uvqgKz////cjm9Yho6FegesxoI88+65C/tMFDaoUwgPLvQbmX7z3CeNPcgunZQzXm2 g/cUmPJHod5yYUpBgegjyS0T+F7Ai6R+DcWy9NBvQ1q5NokB6rOL/hek9/VJqYn+cA eaMyLCbLod2YCLgKzlsbCeMrGxcIJlla2Arudxg9V7QUzozd+/7gLGMri67Zpy++FG a1RcwC1m4BLog== Date: Thu, 20 Jul 2023 19:40:37 +0100 From: Jonathan Cameron To: Alejandro Tafalla Cc: Lorenzo Bianconi , Lars-Peter Clausen , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] iio: imu: lsm6dsx: Fix mount matrix retrieval Message-ID: <20230720194037.60d109d7@jic23-huawei> In-Reply-To: <3017278.mvXUDI8C0e@alexpc> References: <20230714153132.27265-1-atafalla@dnyon.com> <20230715183515.56deaa1d@jic23-huawei> <3017278.mvXUDI8C0e@alexpc> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 Mon, 17 Jul 2023 23:17:10 +0200 Alejandro Tafalla wrote: > On s=C3=A1bado, 15 de julio de 2023 19:35:15 (CEST) Jonathan Cameron wrot= e: > > On Fri, 14 Jul 2023 17:31:26 +0200 > >=20 > > Alejandro Tafalla wrote: =20 > > > The function lsm6dsx_get_acpi_mount_matrix should return an error when > > > ACPI > > > support is not enabled to allow executing iio_read_mount_matrix in the > > > probe function. > > >=20 > > > Fixes: dc3d25f22b88 ("iio: imu: lsm6dsx: Add ACPI mount matrix retrie= val") =20 > >=20 > > I can fix it up whilst applying if no other issues, but there must not = be > > a blank line here. All tags need to be in a single block for some tool= ing > > that is used with the kernel tree (and some of the checking scripts warn > > about this so it won't get applied with the blank line here). =20 >=20 > Okay, i'll keep it in mind for new patches. Thank you. Np. Just waiting for Lorenzo to have time to take a final look. Jonathan > > =20 > > > Signed-off-by: Alejandro Tafalla > > > --- > > > Changes in v3: > > > - Removed unneeded check for err =3D=3D -EOPNOTSUPP. > > >=20 > > > Changes in v2: > > > - Use of error codes instead of true/false > > >=20 > > > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > > > b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c index > > > 6a18b363cf73..b6e6b1df8a61 100644 > > > --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > > > +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > > > @@ -2687,7 +2687,7 @@ static int lsm6dsx_get_acpi_mount_matrix(struct > > > device *dev,>=20 > > > static int lsm6dsx_get_acpi_mount_matrix(struct device *dev, > > > =20 > > > struct =20 > iio_mount_matrix *orientation) > > > =20 > > > { > > >=20 > > > - return false; > > > + return -EOPNOTSUPP; > > >=20 > > > } > > > =20 > > > #endif =20 >=20 >=20 >=20 >=20