Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2389441pxb; Sun, 24 Jan 2021 05:26:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4Fo5qyu1WbfuFoLgDwMIwNCw38R7U1Z9FeO/i63VUwID2ACLWjo11bIPb4B0UzhUX0Qj2 X-Received: by 2002:a05:6402:b6f:: with SMTP id cb15mr163974edb.277.1611494780323; Sun, 24 Jan 2021 05:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611494780; cv=none; d=google.com; s=arc-20160816; b=Jxyav6Rn/PivrLAoa8s8E4RXSX9oPGJ8vijTg5u17qUZ9eUUry37IDhi426EYQ3pq7 Bbx3knvK7KHNWE/RjG9yIIYl4eth4VtwmynhH7+T2grVhmsTS3b7rtY4cWRGk0DisI2q mvG/0oxCOT0tOT8ngzucOt8vE+MhUz9tQ3NCHfuvQ/IFoO6kPdAfJRNk+k6TMMsq0llL S1I4gQ5auPeSpCbUyC5Lbllr7oKMm4QIHItWREICm5nnud9sW5aD5VZjB3G83XOCg+PT uCGcQ9cKn9E1UGfZ1kmh8bBSM7UpHR1usoLMJeaxd2Q5E9178rG/cn/JFkayYSf4UMM4 SwgQ== 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; bh=RmUKVPXWeuveryLGFujH+HhX/ZC+ilAmzeCLDqa7GPU=; b=DUYte2BIC7M6477epc+MuzoATA48u4pBfsoUh3akofLOp3tx4Lx/nccSfGQZp8y+DC V4EwrS1Mylvt+/usaCjOH63nPutWDVbBRynMcdG+wsi/FpBf3FhvGNwa95OAcs64Vu4t pz9h6ufR27JPiIayh8cJxcyC+999kyZUo/8yXaUCOpFgX/8W73+db+kNaG4/LEsXDkG7 0wYIe4nc5+NaF1Eoif7NqD9GyDDblnzdm1miO3nxWePRhHnbiFOUipKAQDw0rKhwbXOv KxqkxtTcW4RAp/h+jnDpmq+mWgtjZxc7zQUuZBjfewa7zfQb/eR9FpksyO/khQo3OXMc VUaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si6183510edr.594.2021.01.24.05.25.57; Sun, 24 Jan 2021 05:26:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726873AbhAXNYb (ORCPT + 99 others); Sun, 24 Jan 2021 08:24:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:43622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbhAXNYa (ORCPT ); Sun, 24 Jan 2021 08:24:30 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0CEE722511; Sun, 24 Jan 2021 13:23:47 +0000 (UTC) Date: Sun, 24 Jan 2021 13:23:44 +0000 From: Jonathan Cameron To: Linus Walleij Cc: Mike Looijmans , linux-iio , Dan Robertson , =?UTF-8?B?R2HDq3RhbiBBbmRyw6k=?= , Jonathan Bakker , Lars-Peter Clausen , Peter Meerwald-Stadler , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v6 2/2] iio: accel: Add support for the Bosch-Sensortec BMI088 Message-ID: <20210124132344.7181bd06@archlinux> In-Reply-To: References: <20210119124622.9490-1-mike.looijmans@topic.nl> <20210119124622.9490-2-mike.looijmans@topic.nl> <20210123153511.1802a15a@archlinux> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 24 Jan 2021 00:21:13 +0100 Linus Walleij wrote: > On Sat, Jan 23, 2021 at 4:35 PM Jonathan Cameron wrote: > > [Me] > > > Next, I think it is better to let suspend/resume, i.e. system PM > > > reuse runtime PM since you're implementing that. This is why > > > we invented PM runtime force resume and force suspend. > > > > Here the driver is turning more off for full suspend than in the > > runtime path. If that results in significant extra delay then > > it's not appropriate to have that in the runtime suspend path. > > I see the point. > > The resume path calls bmi088_accel_enable() which incurs > a 5ms delay. > > The runtime resume path incurs a 1 ms delay. > > The runtime autosuspend kicks in after 2 ms. > > > Maybe the simplification of not doing the deeper power saving > > mode is worth the extra power cost or extra delay, but > > I'm not yet convinced. > > I would personally set the autosuspend to ~20ms and just use > one path and take a hit of 5 ms whenever we go down between > measures if it is a system that is for human interaction, but for > control systems this more complex set-up may be better for > response latencies. > > The current approach may be better tuned to perfection and > we are all perfectionists :D > > I'm just worrying a little about bugs and maintainability. Fully understood. Though for things like this I like to leave it at the discretion of the driver author as fairly safe they are a user of the device. May well make sense to go with the longer times as you suggest though! Over to you Mike :) Jonathan > > Yours, > Linus Walleij