Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4225319pxb; Mon, 8 Feb 2021 10:48:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsK9z1ZMEgbE7Th6AyrdSsYuZnDug5TSxA0TTI8Vc96jee7YfVcEDb2qZTMxx/KzK4sPEW X-Received: by 2002:a17:906:564f:: with SMTP id v15mr18233036ejr.274.1612810137416; Mon, 08 Feb 2021 10:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612810137; cv=none; d=google.com; s=arc-20160816; b=E5nijVa3ATR/+hN3qw/NP0sgfJr4ixP3CFeRD8MiKRMKq/lz5vDjdasyCYWJwmGlA/ seOciuTR/WfdIPxdEMeiGvKrGgGEQXmFdO9ywI9dJYVmW3hYYEqMwX3BL6wEYfYJ/HiU 7ekSZ7iStEzJWQsOlARsQ/4SmKiZo3/mIZ1B3g0c70usunG0iv9wM5POINIkUqxlinJ3 IA4UAOeglSoR66/kvITuuIJWdgFLNQz6xA3CVibenWPjOm5VyrHl7SpTsKhEv52b8sv9 vqaIm3J4otRLQDj2+MOmOjv1xNyKdnuHwJIW9X12rxYUKa23wHTrFdYZ/OWPkwuYBSTm c1/w== 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; bh=KKJBvlRsPdZRwkChztnkpUkvrus3GI2EDM+AmFK5Q8g=; b=cioBNhcnjTmoISzLtXBFBA/+hzdzNej5EKcYqAKm/ChxYdSxHh4CZXybm1sbHZdFzv Ax7GSYoe7uD+W4p197mjHRh0XgRfHeiTclHBhISD7LJ6g9uc/o1eU4KUdkMYNPkF/PUQ U/E+01DvJdqFdfCTGjTJtXt820BIzgLPk0Yi0G2mBkTkn3H/bePQKisCpWVfvJ8wkDIW RE2t1lddZEIeiVNlg3VA+9PoFGwIudMXyemLe8yC/o4bGJ957ZpEavkFPkZURk3zVucR F7sUhiXGFgqXQ+ol1O4gc1uRrbRR1YoDsPuGC/9qWuzBLmI1sCGLKxtu4USk3hzgCkyi ovPw== 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 rv26si10548719ejb.330.2021.02.08.10.48.33; Mon, 08 Feb 2021 10:48:57 -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 S235781AbhBHSro (ORCPT + 99 others); Mon, 8 Feb 2021 13:47:44 -0500 Received: from mail-oi1-f173.google.com ([209.85.167.173]:33330 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234489AbhBHQz0 (ORCPT ); Mon, 8 Feb 2021 11:55:26 -0500 Received: by mail-oi1-f173.google.com with SMTP id g84so2492855oib.0; Mon, 08 Feb 2021 08:55:09 -0800 (PST) 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=KKJBvlRsPdZRwkChztnkpUkvrus3GI2EDM+AmFK5Q8g=; b=lTOwI0jzdTpwxiyzIE8CWqHiPNILjcCUfNfaQS373u5NEiRxKc1UEc5V8NEGXHSitk niym/B5jecvRmB1IWFUq60oiXxAX90mt+OLYSVMmBRa6MvquDMSzMkCA0gVOjWNv5daJ ott0bD7s2bm3EkbPsmEx1EQdiugzEufmTP2DT3A0O4waw/CFG9pPXZ6uuYGs3v9k4vnT b1Nb2ZH7VG1Z/kBHaW5cip2G4P4GKgQj4IvVU71Tg2ZO2twCsib9x9Xba/OutDNRMf6P uGlCWcjb3X1+SRyI9sE9llPdGCeol9n/F6Q7dc8PoGqgLIb1PzB3Vn/Mn9ojmi/cdAcw AFYQ== X-Gm-Message-State: AOAM531ANnE4ivBibVW5s+NjNW+yw+rak/N67F4dMWoCiRgWz1nbtu+4 Y+3V/Vvwx5I5o0hqbRXxJ5UoImPNwZrKIvJHCbI= X-Received: by 2002:aca:d14:: with SMTP id 20mr12305483oin.157.1612803284493; Mon, 08 Feb 2021 08:54:44 -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: "Rafael J. Wysocki" Date: Mon, 8 Feb 2021 17:54:33 +0100 Message-ID: Subject: Re: [PATCH v10 7/7] at24: Support probing while off To: Bartosz Golaszewski Cc: Sakari Ailus , "Rafael J. Wysocki" , 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: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. > Acked-by: Bartosz Golaszewski