Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2009717rwo; Sun, 23 Jul 2023 05:59:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFy4w377PqlOXOmPHddh3/aH0XjxSB3fw/Hfgy17+nJlCrdIjHSmLKbsmZ/rufCHIdnvmfG X-Received: by 2002:aa7:d1c7:0:b0:522:1dce:ca09 with SMTP id g7-20020aa7d1c7000000b005221dceca09mr3094957edp.29.1690117186290; Sun, 23 Jul 2023 05:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690117186; cv=none; d=google.com; s=arc-20160816; b=K1RjmR0iiJ3eiMzUOzZ5ycOozgI1z6eLhJtkbtFp5m04I3MfSBQUE+RqUs/ZVqXKXK MD5Ssfkw2UbJqQMso30fjnnB5jWsehjmCZFHhUZ7A0ptHLV/YqioE3oRGCQ8oU02+0K9 4PiLPpMCmZbMKGahwA1qKN7p307LaqJt1R1oeFQ9IqHg3YXq9TUHf+s7arJez7DS7T/a yPLVEJ/vrG4Q1crDtjEaXLS5IFwan6D+ip5oKoJjvfehTjcE1PTm4pXgj5VWkJAkEd9m 9lCq8EAq4hys6gJ4tr93pSGulhuRfqC03PTgz9wNOOEMDzdm+TMSMpD27vfnaFqamihW vNIw== 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=U8SXwV8hO7go+IC84yRNYP8/G5v0+8DCZfnZ3PitXIs=; fh=vptwf1p6Ec/pEUxSPBdr3CehdUCSt6GfKpVFlGAcAHs=; b=JIjcJzc2sCBqVxc0dX9SQnFVd5cE1LLtFshQVbZkGw8CZ/Cm+t4+YdqGcQ94X2iVkm VXbpolECOpz20seskINzZomBDzIRUEeIjjF7SKNF/y+Px7V/foSYqcEOPrZfFV4QQ675 7bEDEzS3/9ZzT+RH1krYoeTqbLDZuc6OnQu8rEz/esdPhpxbHQNn3SVkEmxHjKZnsMif oUZg0yYvuT5FMK2sbkzc5APh++uxZ1CfVaQOOIzM8oXEGdgd4Yxpj1y5xwbHniF99XRy DC/Iw/0gl+109jOlWkwdmEDZl079ckkE23qlAC7f7V48DqgbAY71fX72HhV1JJ1HMYkU c5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R9w/e/BO"; 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 n17-20020aa7c691000000b00521d2137bcbsi4958772edq.533.2023.07.23.05.59.22; Sun, 23 Jul 2023 05:59:46 -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="R9w/e/BO"; 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 S229850AbjGWMum (ORCPT + 99 others); Sun, 23 Jul 2023 08:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGWMul (ORCPT ); Sun, 23 Jul 2023 08:50:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09CF812F; Sun, 23 Jul 2023 05:50:41 -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 7A90160CF6; Sun, 23 Jul 2023 12:50:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFA5CC433C7; Sun, 23 Jul 2023 12:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690116639; bh=slbfSmpx3IbDjMXZZqOFmJps+X0tVPlAVxM60XEIe7g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R9w/e/BO54Ffh5gG/eFUqUM8A3DV4pCGl2pfsUzvLBIU5/l2LLdJTyY4OPYA34IWC sMuVo/0FT72fdZgu2j7BMThorJshbtV7C1AWWZVEKF3QFqcH/Pb5fGLVXABu4xiCCv pmcZuIJ7tYC5FM3uXzkk7rtjPvfBDWCRXYieUZWgRa45KAXy1zOd7a8KItWON7ta2S aWHucmuZyoYujZAFROiZOi1omX+zPfFhmEjQrvsJPddR5UO1FDtD4se7C2yIBSwZKq N0qtS15oWYPQereDyogvCiZMFnoE8tJdF+1LnDHn+fR6sWYgEZwh3zlCW1egGv0eG2 20ULQ2roz6pJg== Date: Sun, 23 Jul 2023 13:50:35 +0100 From: Jonathan Cameron To: Lorenzo Bianconi Cc: Alejandro Tafalla , 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: <20230723135035.4a2f0909@jic23-huawei> In-Reply-To: References: <20230714153132.27265-1-atafalla@dnyon.com> <20230715183515.56deaa1d@jic23-huawei> <3017278.mvXUDI8C0e@alexpc> <20230720194037.60d109d7@jic23-huawei> 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Thu, 20 Jul 2023 23:27:53 +0200 Lorenzo Bianconi wrote: > On Jul 20, Jonathan Cameron wrote: > > Alejandro Tafalla wrote: > > =20 > > > On s=C3=A1bado, 15 de julio de 2023 19:35:15 (CEST) Jonathan Cameron = wrote: =20 > > > > 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 i= n the > > > > > probe function. > > > > >=20 > > > > > Fixes: dc3d25f22b88 ("iio: imu: lsm6dsx: Add ACPI mount matrix re= trieval") =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 = tooling > > > > 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. =20 > > Np. > >=20 > > Just waiting for Lorenzo to have time to take a final look. =20 >=20 > I am fine with this patch. >=20 > Acked-by: Lorenzo Bianconi >=20 Ah. My filters broke so I'd lost this. Thankfully b4 picked it up and made me go look for where the missing emails had gone. All recovered now and the ack picked up. Thanks, Jonathan > >=20 > > Jonathan > > =20 > > > > =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(st= ruct > > > > > device *dev,>=20 > > > > > static int lsm6dsx_get_acpi_mount_matrix(struct device *dev, > > > > > =20 > > > > > struct =20 > > > iio_mount_matrix *orientation) =20 > > > > > =20 > > > > > { > > > > >=20 > > > > > - return false; > > > > > + return -EOPNOTSUPP; > > > > >=20 > > > > > } > > > > > =20 > > > > > #endif =20 > > >=20 > > >=20 > > >=20 > > > =20 > > =20