From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13249305688 for ; Thu, 6 Aug 2026 13:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786021470; cv=none; b=CkKJUxcUgctxqnCJV/8l6FZN8/b0wkJRZvKvNf1CPwTR6IS5Ol/nVvrwlnl9UNjD33MOReL+Im4//BA5X1zPOsrL0mWU7y1RPOij0exkLJRxL2uJRtMtv+bopPTp9dRxKuX9gEwc9N1dGMc59GsY3u0XlNkCnN62skpvPhwAO6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786021470; c=relaxed/simple; bh=OjDgsS55oXtqSWWckaLD9e2pMOeMLM3Tr8Ojgm/mMx8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PYOlAmouYoOEiweO4q5/x1Kr60/WRcjloXdMR58z5ZwX7Z7sG0eLsb45ev+owMKJCHhDViHHJz3PU3A5cM2s27qw9zlEc6+2I6yq260vCGFdHOE39vgRFD4O/8LxTKolcwbdk1t97RUC4yXYQbaeKSSpFp/4YWf4Nv9Q4NdUvkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BQ4XNp8z; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BQ4XNp8z" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4953e04ef16so21903525e9.2 for ; Thu, 06 Aug 2026 06:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786021463; x=1786626263; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=1usZWQnPiAMx/O6CPfT8QtUEsv8ETw/++b7xp8yc0RE=; b=BQ4XNp8zzWZOeeyprY2L5/p/6xv7FppYJjkeYZubyUsyRq+JtM1Dxw6HetT4gRog7g 2yBoHkrzbY26B84kb5myXWCONi1NFotlCEqSVk6qyp6se5DVIUtGTGgfbin4IoY4Oq6r gr9QCf/TDH20U5PmWa7Ag/Qn4U/XbxMmPCjjn1fH0XgVLoqDRwca4m6WQ/kY1EpvgH83 0dp8dTVtAtLvASJ/lOnVSNeoOe2uXyslkyk/6fEyQ9VJUR3zSMJa9Gl0yvF5P01ceUtr 7auCgS2IcE66h+TA90Y4sFlFGQO2TMwvStrVwOQFmfVKJwXd5dqeVPY53UNvUxiBLzAN gYHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786021463; x=1786626263; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1usZWQnPiAMx/O6CPfT8QtUEsv8ETw/++b7xp8yc0RE=; b=FUdjhGcMwOSr7E/Gkr6eBIqhYwvwL4o2H0IxT1AxPfUKm8+Zq+VvHV56643Sr1j611 bcAMTF5MjSHKA/KxLT+x1a8ey0pwuV9mDhinh7CocFvjedwok6nYP2vi+dXqUO/wk5XQ JJsGDhiqvWBXMnDb0sLyEQ359zD718W5cDJ4X175XeSt5DfBoui3NH/K/6UA3oGYWa0Q QEiDM4vPn6C3X5vyM5ioUx2lwdZ7o5zsZAOS5M8WOWG7GJrXFF5qqLxG28VDLSU0OE9C Tc6Cm87qoh7dI/ACOwcr70MfT9h53K+FN69DlaGxo9EgEXZPRt8V8bxq8O1Etw82Y/Gh JnBQ== X-Forwarded-Encrypted: i=1; AHgh+Rpx5zSuKiH/ENiu8IffFBFx+bXeWq4AXHqxIzFQeg4QPTkP7dgV4RCX6zXa0K8QEQwPdZ65mWLplc1oBMg=@vger.kernel.org X-Gm-Message-State: AOJu0YwUcmy8AhGsedA7md2SJQeu0pSHdxvWf/gi6qx1dTftld64d+4r 49V0Z89O+l0uhO7gONZZJUtDL4esYxNKNJhBdtksqJVn0Y1p7AwiR5+Y X-Gm-Gg: AR+sD12ChxID8LrcjOYGd2UYVAfZvecv1WW7ngUZBLFyzlsLd8+C/ymbhUcFI1BYRIy 5NxVYxj05uXQYDHFOoQxFEyolxXjhwLFIVNPLcKyGKRMQ/YmrWJDx4CALE9XQXhOzdMY4cpmTu7 sgd6Nxd6KUc8sfC+jfChn5GDd1E7wWHtaIUCOjgzueK+MNW3CVHgtse9NQSIiG1kbG/yaV+09RV DZKm6wOiPHaAWtRgg4qqN6X897cFWMeMN6z/dym1Uk5nt/myV6pfftP7t248fkEdOr9ukXOErT2 7l5FD5P9GbrxfQYkVSTc3R49U0GQ3oUOoKeMrGpP5HNZmuLN/TJ2unmy58eZdIX3/NyUjR8KTOZ pZb71TIVm3LaVTByrOJ6APJ4HA3XSh5mF+fkp6ZnD5EZGb2yzUwE0jXODjNaX2fGqgXTK6/gnhy pA0MEALcuA+Yi6MDb5YPgS/3lZB1bEKquBvOWQCHGNTy63pSMyMC2M X-Received: by 2002:a05:600c:a47:b0:499:484a:7644 with SMTP id 5b1f17b1804b1-49959e2eb00mr14758895e9.9.1786021462475; Thu, 06 Aug 2026 06:04:22 -0700 (PDT) Received: from nsa ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4995421b1e2sm78185215e9.8.2026.08.06.06.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2026 06:04:22 -0700 (PDT) Date: Thu, 6 Aug 2026 14:05:33 +0100 From: Nuno =?utf-8?B?U8Oh?= To: Wadim Mueller Cc: Linmao Li , Jonathan Cameron , Maxwell Doose , David Lechner , Nuno =?utf-8?B?U8Oh?= , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: flow: slf3s: restart measurement if VDD disable fails Message-ID: References: <20260805110255.504576-1-lilinmao@kylinos.cn> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Aug 06, 2026 at 02:55:25PM +0200, Wadim Mueller wrote: > On Thu Aug 6, 2026 at 11:39 AM CEST, Nuno Sá wrote: > > On Wed, Aug 05, 2026 at 07:02:55PM +0800, Linmao Li wrote: > > > > I'm also not sure about the above. If the regulator fails to disable I > > would say things are already in a bad state anyways. Is there any strong > > reason to do `slf3s_send_cmd(sf->client, slf3s_cmd_stop_meas)` before > > disabling vdd? I would assume that without vdd things will terminate > > anyways. Asking because if we just disable it then the above stops > > being a question. Though I do understand it's better to gracefully > > terminate things. Just not sure if there's any added value for that in > > this path. > > on quite a few boards vdd is tied directly to the always-on rail, so there's > no real supply node in the DT and the regulator core falls back to a dummy regulator there > regulator_disable() becomes a pure no-op that always returns success without actually removing power. > so we can't rely on cutting vdd to stop the sensor Oh yeah! That make total sense so dummy me :) - Nuno Sá > > Wadim > > > > > Just my 2 cents. No strong feelings so if the driver author is fine with > > this, also looks like a sensible change. > > > > - Nuno Sá > > > > > } > > > > > > static int slf3s_resume(struct device *dev) > > > > > > base-commit: 0efaefce4e95a3331550329c0078b2fb38b3ff1f > > > -- > > > 2.25.1 > > > >