Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4529898pxa; Mon, 10 Aug 2020 11:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkWzfS4mItAdtau5Q4x1ejaiTmhKIz6/XCAwa9GWQpNAlX9UkVDyYLzK/PWS7bTlT/RPOy X-Received: by 2002:a17:906:5ad8:: with SMTP id x24mr21912162ejs.329.1597083390415; Mon, 10 Aug 2020 11:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597083390; cv=none; d=google.com; s=arc-20160816; b=EvaOhif6jd/Ni292ihjxNVxOT8IEoUhSRbw0WGBMBXfHG1ednHZin1D4YjOczhDfYK GZJbuIA6/CUdeE4LHiCzmOWNtMgEJKjffqsIKcY/RoEEZWvqHmsWBwOhBODEXS1LzOgh mIMTiRF/BNXgqqaxFifaDbXet+oqq66W2UpgDfP+LQjaKeU8ZBty8ClJTF7Vw4Ua2irt RKN+jFuuPbiE/ML/Vszy1myhNQ8Hotng1byd6qDsPhF0NnTjenxquJKjLXEaQl+7Cknm J4QlgppVmB5+lEMKCgFI8tCNptQwi9W773/nMRIafFjSWBhlkZVIgXoWPa+LeP+9r2P3 bX6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QgYtQ0nvpVp5fhNq6Bvi4E7+pTeN2jB4TjYNqQS0gag=; b=kc0vdc2F3dj1F6WAJZmmib+ngXa571jSTy9ZXSEHQksSS0zM626h4KB7+XpNunCZT1 3zxdI+AfOHU1m0EFFyWCqbodgqjMW3fpkoKc0wagqkHM+wyd3dEEwErtwInqNfjbSkBK 8awi+NUUASOA/oRmvmKQBaTaVfH6xv392+CzdSl/JlPQe3yUQ8e25szZmktfrdnBp4cj vI2S/zFyxosb2lOMJdl9dvChOxmOmNxkaJvmjo59lhWIJZttCyGAxH639HA2MvNuOl7J e22U90pRSTuF7UmlrhJ7zt0ErGMJZ3pWlv9xN4SghrEESXYXcsJkK1OFMtGELxItqdKq ibDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FR2zrXih; 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 z1si1786762eji.189.2020.08.10.11.16.07; Mon, 10 Aug 2020 11:16:30 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FR2zrXih; 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 S1727003AbgHJSMO (ORCPT + 99 others); Mon, 10 Aug 2020 14:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbgHJSMM (ORCPT ); Mon, 10 Aug 2020 14:12:12 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F3EC061787 for ; Mon, 10 Aug 2020 11:12:12 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id b14so9242113qkn.4 for ; Mon, 10 Aug 2020 11:12:12 -0700 (PDT) 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:content-transfer-encoding; bh=QgYtQ0nvpVp5fhNq6Bvi4E7+pTeN2jB4TjYNqQS0gag=; b=FR2zrXihy6D3nhs1ct5EvXKpFFv8/X/8ppPIYYdFMToMH8E5g9vRvtyRITLyi1aYD4 qFve2SrwjFOk4YOBylAQ5gTTGJ3lSvmEkoR32EUPLXrZraiyNOisEwpnQR8GOOU9tjP3 Y2py6RuA213m/Rvnw0IhJPMijSfYqjfZWJcNsFYJ7/lyPd55FWuAYxyXTUF9ESpv6YbM Zw9JeH8tyW/L9vftgbAD1pwA1ZVdSOvVzYsXpTJpascbwTyGsmtLI9t1ltPXrqYi7STX orxLdQUrP2NMJ61eNOIU2FmENuF8hkbuncXq4ZnxD6WOkJFuP333L4i8BzJDg8EEVeg/ 7LMQ== 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:content-transfer-encoding; bh=QgYtQ0nvpVp5fhNq6Bvi4E7+pTeN2jB4TjYNqQS0gag=; b=FQ65hVtzHyxPm7IJR+2ENlhYrld5q+g6ZzE4875Jd583AemUyRHTRN2LrGEM5OkB7D nScKgtUSUgtf/WfJA1SUWapa7SNbzpvfReJ9OmE1W26t/dqAXy+irxhNo59CKh9ncn1N ydP/ckdq1VLdrAax27J4jWP4u1tOFiQe0HFuQuJ5lRmNiuzyZ538IjZQ5xpGwJmaT9E5 ty55VFdijb1WVakyNFCQ2HtreUn+LMDOLlD7Y+8ka1pbKzMgKA311yeS1UTIk05vgJ6H HgkTeYE6Yft5ysTAN2QYp6J/by+FUXVhfwnbI8KwQnMaYykRxxpQDOPaZdgiQ8gx6koD hYWg== X-Gm-Message-State: AOAM533kBAaEuHLGhurIfZxH+dq0ZtgTbZIw1dL/7kkOTl3pfoibDRz3 OLMH+0IlKn/QEA6xQng2UxYTIRkw+w5wa/vvFbsaig== X-Received: by 2002:a37:9d97:: with SMTP id g145mr23363392qke.263.1597083131390; Mon, 10 Aug 2020 11:12:11 -0700 (PDT) MIME-Version: 1.0 References: <20200121134157.20396-1-sakari.ailus@linux.intel.com> <20200121134157.20396-6-sakari.ailus@linux.intel.com> <20200311085555.GH5379@paasikivi.fi.intel.com> <20200323213101.GB21174@kekkonen.localdomain> <20200810082549.GD840@valkosipuli.retiisi.org.uk> In-Reply-To: <20200810082549.GD840@valkosipuli.retiisi.org.uk> From: Bartosz Golaszewski Date: Mon, 10 Aug 2020 20:12:00 +0200 Message-ID: Subject: Re: [PATCH v4 5/6] at24: Support probing while off To: Sakari Ailus Cc: Sakari Ailus , "Rafael J. Wysocki" , linux-i2c , Wolfram Sang , linux-acpi@vger.kernel.org, Bingbu Cao , linux-media , Chiranjeevi Rapolu , Hyungwoo Yang , Arnd Bergmann , LKML , Greg Kroah-Hartman , Rajmohan Mani , Tomasz Figa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 10, 2020 at 10:26 AM Sakari Ailus wrote: > [snip] > > > > Rafael: I think that there are two issues with patch 1/5: > > 1. It adds a very specific boolean flag to a structure that's meant to > > be very general. As I pointed out in the i2c patch: at the very least > > this could be made into an int storing flag values, instead of a > > boolean field. But rather than that - it looks to me more like a > > device (or bus) feature than a driver feature. Is there any ACPI flag > > we could use to pass this information to the driver model without > > changing the driver structure? > > To my knowledge there isn't. The fact that I=C2=B2C devices are powered o= n for > probe in ACPI based systems is specific to Linux kernel and not ACPI as > such. > > The reason this needs to be in a generic struct is that the device's powe= r > state will be changed before any interaction with the driver takes place = as > it's the I=C2=B2C framework that powers on the device. > I'm not sure I'm following. Looking at patch 1/6 struct device already exists so why can't this information be conveyed "per device" as opposed to "per driver"? [snip] Bartosz