Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp346980rbb; Sat, 24 Feb 2024 03:16:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWlUqoawz/gky0rsjm+WC3gjS+oV9VONxwi0FaQOGLnIwE7+ZM3xRW0fKVKUVXQ1LQWjoHAD7jvLUNE4c+O5oJ2m4c75BuwcB+reTvNYg== X-Google-Smtp-Source: AGHT+IHwfOk8b4LhysVSSdzEGMwEuozYpREonrNG3R5IqJxFQLo3ok6QsuTyKmpxrjudXbY4cRvN X-Received: by 2002:a05:620a:2236:b0:787:a2d2:d59b with SMTP id n22-20020a05620a223600b00787a2d2d59bmr3494881qkh.26.1708773416431; Sat, 24 Feb 2024 03:16:56 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s21-20020a05620a29d500b00787c77bc211si157446qkp.223.2024.02.24.03.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:16:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=d+5tO2H0; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-79582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E4931C21590 for ; Sat, 24 Feb 2024 11:16:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45DAF25613; Sat, 24 Feb 2024 11:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d+5tO2H0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 670631AAD0; Sat, 24 Feb 2024 11:16:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708773408; cv=none; b=rm71FMDmfrAY/GttJz+EAoAwHt7FLmwMt+K0al95mI9gmpMyDvtPBfTIXZ8y3QDWyIAMxxPguIZyvgdsZ4wCLRkrcwEgqpQp2RFE7Dm7nJLeW9npJ3cs+bYKs96PrZYvS2yNundXqb7yCcVrliLwIPcrGxlGOmXqS0Ip0ekzdJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708773408; c=relaxed/simple; bh=kZ8hJX47ATmYK50lOCZZLNt9mnM0+5Oqgb74LDAGxXw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Smbsjd3qHgyKDPlKV4Mw35St74wRJps0VbA6J5Qb/8XwHX6uPhzUsx6a+eGfeic0hImIh8Konbjrk5ixfpwKZH2fh+DFA9e6hKEDe6fOnmwvXiKNsn52vdbshfa0nfHaqnB6oA+2fbvyW4wSWsByAUcsWGqTEWctWuq3qj3kzYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d+5tO2H0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BD46C433F1; Sat, 24 Feb 2024 11:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708773407; bh=kZ8hJX47ATmYK50lOCZZLNt9mnM0+5Oqgb74LDAGxXw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d+5tO2H0HmfgJohhBsvVsIaDD91w27TxYbQ2rPH6eriOKcA24DldHo2E7e0NQ1sHd 037LgSkiMM5OyfcpL/bjnof2MmfaqB9WTiryUltReYsCa1kLGtB6nYB8R4TQ7siaXT 8j/tm+VByIs5ltfqDI+S9njl7J7Y0ARJmjab5dkAQ/EkPmY+qLapVs5sJKyP3GL8o4 0qhdfqfsyf56PsXCGnWuJ+FIHlQVEfKjdmDqFv1gG1DmORmEiSTSe7QwiExA7bPC8M znSmkkYBQHUTp/sRiwlcru1BZctdCIbqzphbXeHGZ8mcF2j/38wbIOapPkCBXoKVtm NgQIc2yGGs/0Q== Date: Sat, 24 Feb 2024 11:16:33 +0000 From: Jonathan Cameron To: =?UTF-8?B?T25kxZllag==?= Jirman Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrey Skvortsov , Icenowy Zheng , Dalton Durst , Shoji Keita , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] iio: magnetometer: add a driver for Voltafield AF8133J magnetometer Message-ID: <20240224111633.1485c165@jic23-huawei> In-Reply-To: References: <20240216185008.1370618-1-megi@xff.cz> <20240216185008.1370618-4-megi@xff.cz> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ond=C5=99ej, Quick process comment.=20 Please crop replies to avoid never ending scrolling and more importantly a high chance of what you actually want to say being missed! > > +static int af8133j_probe(struct i2c_client *client) > > +{ .. > > + ret =3D devm_iio_triggered_buffer_setup(dev, indio_dev, NULL, > > + &af8133j_trigger_handler, NULL); > > + if (ret) > > + return dev_err_probe(&client->dev, ret, > > + "Failed to setup iio triggered buffer\n"); > > + > > + ret =3D devm_iio_device_register(dev, indio_dev); > > + if (ret) > > + return dev_err_probe(dev, ret, "Failed to register iio device"); > > + > > + pm_runtime_get_noresume(dev); > > + pm_runtime_use_autosuspend(dev); > > + pm_runtime_set_autosuspend_delay(dev, 500); > > + ret =3D devm_pm_runtime_enable(dev); > > + if (ret) > > + return ret; =20 >=20 > Ah, forgot to move this up. Oh, well. I'll send v4. >=20 > kind regards, > o. >=20 > > + pm_runtime_put_autosuspend(dev); > > + > > + return 0; > > +} > > +