Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp590095pxb; Tue, 9 Feb 2021 07:52:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZC42cS5cylf5E7VQdT6WE7UWP/C7FkM/fR0AVxk4hq/pyalelEGctDhWPULUOzeEroAZs X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr23231182edt.160.1612885944025; Tue, 09 Feb 2021 07:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612885944; cv=none; d=google.com; s=arc-20160816; b=Fs5YeKvV/pgTnBExTq7slGTPY/ubr8zYBJPkZl7jbaetCoRURMJJ5jy0ffMzLssK4i zivncGCZXG8/y31yjKt9QJOjsSp+sQEPgjcOUbUksFP9d2vmEd1p8c6OP9RqN+wROMsu 3rnH65nbxyBWeUPrOjWQgkjxzu+H7Cx1cLeXL5LrjTWjPjJRnQ5wh/x8PB78WxsBpdtS uRJf0dAArI3H5aIu5GYCW7/QPa7+r/mBbUl88knMI9cvrM7gsS8JBlMDzvQ4kp+J5zkV ajXezb2lXaCZrn2oWxd0feRxCxfhSFPwoj3VvmpimQR5umGJFTTxgOCoF1L2kHOhKOKU FIDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VecoGZ4GzWVFIM0otW3JLzPjrBseKAGL1qDTMuL9rhQ=; b=M2M9PksxMrQ7Gcp9tQ+3UZLrwP6HVti2potnA5GSGTqQrv1MbX5RqlCuevwRQBoqKQ 8qoJ8eBQgBlv8VElr/V+Otxg9pje/yJs/UK2oPWVETSoXGoZZLHFDx+IPjqyXiJBsPR+ KF5U+XM6sDWHgnt6kx85NRO9B06DCEyXSeP/ssufo8GTxqX8zm7sSYSGxZlJcMgC/rR9 Bh79sNkkingctYYUP4I04JUk6/lla6ELrNWvby+UXfqdPG9oxYL/wmPCrudoIj5vX7Gj e1T7lxWUc/Oo+O5Vas1d6QrzxGVaP8a9FHuDH5VBxhCl7dB67hHjMOnYqryT2LvmzvNs tL/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CIlh381k; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si16824162edy.113.2021.02.09.07.51.57; Tue, 09 Feb 2021 07:52:24 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CIlh381k; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbhBIPui (ORCPT + 99 others); Tue, 9 Feb 2021 10:50:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231995AbhBIPua (ORCPT ); Tue, 9 Feb 2021 10:50:30 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA9CC061574 for ; Tue, 9 Feb 2021 07:49:49 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id y18so24331478edw.13 for ; Tue, 09 Feb 2021 07:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VecoGZ4GzWVFIM0otW3JLzPjrBseKAGL1qDTMuL9rhQ=; b=CIlh381kw95e85vYr57RlSuDC8kY8uEDiHm3Z8pePwVEf5EWMktOAJ8fGRfI8LyX79 kO9nexVJp1Drhi5KDy+WElL2nlFVJNS4sVk60qwTKrQjxfmYIaG63VGkNeCsomyiLBGB ympVvtXZztYSxkyGsegiNStxZyW3MiGeRjmRTq8b6fYNiohin0XYQA0pMZPKtkC6ecEl pQqqwB4hWjBMRzfrJKQiuAT+/W9aP9UU3cFW4cBq8WMuMntzUHQ3LOqpc3+qdriViebo S+js95KFw5dV3JIc7xY0dJlwoY/0500CIrFUNNQhH2I2/yOgoOLP3mp7ZpaTltK07skQ cynA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VecoGZ4GzWVFIM0otW3JLzPjrBseKAGL1qDTMuL9rhQ=; b=VjF0iVg7oEmQfdc3FabmC0DdbhRPt3NXmliuCkPSHjmKDUIIKYnFCYdXCnjn3R0K2s VhrK01ryc9XINEVgDryknEeGTtQcEEnLz3AxCiGD3aY9AQVHCHnyD44XBgpsm09W7bZl UNizA4dd1s6+ZA/mifHIH35c/YrKejLXN20FD9OilrwfslT347vHhKv0SIaO7lkotW1k eONuNV/DXOzElfqsEtvRQcRD0W9+tSkY9WgAlfHwvLXhRLny+3xG92P23jmkzL0z6gpD W2C3Bdmpg8COPSD28JL4h1JW5TVkYmhD0qQYrH5XIuhkBNceNs4jcRSGGFkrDRV0WjfW zRaw== X-Gm-Message-State: AOAM533o3IchbW+ykkHX5AryxZCIkojesLcM9y15poIVaA4gthBWeJKb 5OwD9iHMAqvUhyW8BIj2Iem7yYjib5xc7Io98GclHQ== X-Received: by 2002:aa7:c98e:: with SMTP id c14mr20178301edt.213.1612885788168; Tue, 09 Feb 2021 07:49:48 -0800 (PST) MIME-Version: 1.0 References: <20210205132505.20173-1-sakari.ailus@linux.intel.com> <20210205132505.20173-8-sakari.ailus@linux.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 9 Feb 2021 16:49:37 +0100 Message-ID: Subject: Re: [PATCH v10 7/7] at24: Support probing while off To: "Rafael J. Wysocki" Cc: Sakari Ailus , linux-i2c , Wolfram Sang , ACPI Devel Maling List , LKML , Greg Kroah-Hartman , Rajmohan Mani , Tomasz Figa , Bingbu Cao , Chiranjeevi Rapolu , Hyungwoo Yang , linux-media Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 5:54 PM Rafael J. Wysocki wrote: > > On Mon, Feb 8, 2021 at 5:44 PM Bartosz Golaszewski > wrote: > > > > On Fri, Feb 5, 2021 at 2:25 PM Sakari Ailus > > wrote: > > > > > > In certain use cases (where the chip is part of a camera module, and the > > > camera module is wired together with a camera privacy LED), powering on > > > the device during probe is undesirable. Add support for the at24 to > > > execute probe while being powered off. For this to happen, a hint in form > > > of a device property is required from the firmware. > > > > > > Signed-off-by: Sakari Ailus > > > Reviewed-by: Tomasz Figa > > > --- > > > > I'll ack this but I still claim that the name > > acpi_dev_state_low_power() is super misleading for this use-case and > > I've been saying that for 10 versions now with everyone just ignoring > > my remarks. :/ > > Well, the function in question simply checks if the current ACPI power > state of the device is different from "full power", so its name > appears to be quite adequate to me. > > If the way in which it is used is confusing, though, I guess > explaining what's going on would be welcome. > Yes, I have explained it multiple time already - last time at v9 of this series: https://www.spinics.net/lists/kernel/msg3816807.html Bartosz > > Acked-by: Bartosz Golaszewski