Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp850739pxk; Mon, 31 Aug 2020 02:57:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0tlk9HUQx87WeG+NgZVCMad3Rgy1tRo4EFQCaksSW2tVJm+P9riL2/P7QY0bKtk7SfViY X-Received: by 2002:a17:906:7715:: with SMTP id q21mr346704ejm.251.1598867860461; Mon, 31 Aug 2020 02:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598867860; cv=none; d=google.com; s=arc-20160816; b=h6R6STaG6W6DC2EcjDf97WnVX+KyCmlF+/5dTQ3eCGBBcJ9xZAby8DInbqUYSOsRcq os8ozGU68wDO43jrEBeU00Wv6W9LwP1i/Kc3t9dDXqeXBloVdfxyowU4AYjbRkFa7zcg hQ1bPAsOaLG17+oqm5Ul9Ek4bu8ytStjKGwFtIRpJSUWo7a4scMbznFfKiCXSk5SVbL9 M9MPTEVeHflQApM2a1LNvpGK/skvHtgxfpxp3Ft7Mb3G7cu+ODi49EwL1Tp8gFaC1/GP FYw4ieoceQUche30YSrit9yRrStYE22FwXveSp8wXSUYYeYTZqtNC8aKQMdFNsJswXCX X/sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:ironport-sdr :ironport-sdr; bh=oMhx/cZ9PYaW7vPz/pJXxraUJ/PgueU3YUdLeWMYeYU=; b=X+ZZAJavBIrdlSKV3jZpSETZL+Oh/X3sBpixZVdWE0hAkd2cZp6oEGHZtovrVURInw 7mYVRRjKjXGI3zMLiFVeMie2MaNtM5JC/LfLb/lXYAy2ycTOPRDtfgMx1PMW0MHZ04I0 ISNaQ1rg6jwynrUG5KvePNi+ARBzrOKDL9TNybYnQ7gSkK//SpKpRowFfBvMbFPInQby 1S+YduM0T0YvBYwP7YZaj4lV5Qw+mULKmQs7L4gDuUExBCWl59Zu97NVOrfFxmmd4Kzb 253shjwUDLXhwaSLJ7DfPIO/kLOOfVgdgTb7zxD0mjDdeObOCdw8OLbt2BvDMQQaZcCQ J1RA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si5199546edv.344.2020.08.31.02.57.17; Mon, 31 Aug 2020 02:57:40 -0700 (PDT) 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726503AbgHaJya (ORCPT + 99 others); Mon, 31 Aug 2020 05:54:30 -0400 Received: from mga18.intel.com ([134.134.136.126]:8673 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgHaJyX (ORCPT ); Mon, 31 Aug 2020 05:54:23 -0400 IronPort-SDR: YlDNsN4uMJlydttRXC4rH0cd0bCi3szeHTQgUt9xBwMigpYvDrIgiQshQPgfnYVHxTm7DZ9aoH U23Kor91b3lw== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="144618033" X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="144618033" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 02:54:21 -0700 IronPort-SDR: d5gLELt2lTQRUIXEBSdc6fdcZ5b13vzz31me6iNf44HTYjNYlHivhJ5Z9cNkWZ8I1LumS8y7q8 I+qRufJk6oXA== X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="314297172" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 02:54:18 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id DFC1B204F9; Mon, 31 Aug 2020 12:54:15 +0300 (EEST) Date: Mon, 31 Aug 2020 12:54:15 +0300 From: Sakari Ailus To: Wolfram Sang , linux-i2c@vger.kernel.org, "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, Bingbu Cao , linux-media@vger.kernel.org, Chiranjeevi Rapolu , Hyungwoo Yang , Bartosz Golaszewski , Arnd Bergmann , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , rajmohan.mani@intel.com, Tomasz Figa , "Qiu, Tian Shu" Subject: Re: [PATCH v6 1/6] i2c: Allow an ACPI driver to manage the device's power state during probe Message-ID: <20200831095415.GG31019@paasikivi.fi.intel.com> References: <20200826115432.6103-1-sakari.ailus@linux.intel.com> <20200826115432.6103-2-sakari.ailus@linux.intel.com> <20200828083832.GE1343@ninjato> <20200831082305.GD31019@paasikivi.fi.intel.com> <20200831093109.GA4632@kunai> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200831093109.GA4632@kunai> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 11:31:09AM +0200, Wolfram Sang wrote: > > > This patchset is really about changing the default of ACPI powering up I?C > > devices. On OF the drivers are indeed responsible for that. > > So, maybe it makes sense then to move from 'device_property_present()' > to 'acpi_dev_get_property()' or something alike? To clearly tell this I'll do that for v7 soon. > binding is expected to be used with ACPI only. Then, we can skip this > discussion now and postpone it to when someone wants to use it with DT. > Which is hopefully never. Or does this approach have drawbacks? The same issue in principle could be there on DT, too, as the cameras are the same. There are a few sensor drivers supporting DT that currently don't access the device in probe to avoid having to power it on. For cameras I suppose that's just fine but I'd be hesitant changing the behaviour of e.g. the at24 driver to support that use case without making it somehow configurable. > > > My original series had a field in struct device_driver for this purpose but > > Greg K-H suggested moving it to I?C instead: > > > > > > Ok, we can still factor it out in the unlikely case it needs to be done > again. > > I still have the question via which tree this should go upstream? > It is probably more I2C than ACPI? I think so. Rafael, would you be fine with this set being merged through the I?C tree? There's a single patch adding an ACPI function there. -- Sakari Ailus