Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1246278imu; Tue, 11 Dec 2018 15:43:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/UtEgL926UiK5HxXscQCwl0z9IETXg/xWtQz+wuLXumdGSPdEe2B7nGWgw58DY0Qr6cVoLl X-Received: by 2002:a17:902:8306:: with SMTP id bd6mr18097182plb.217.1544571827135; Tue, 11 Dec 2018 15:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544571827; cv=none; d=google.com; s=arc-20160816; b=A3kwP2lFSoU1v9ZMB1JpdrP1s5ECT3OrHZssBtyx6KOsLEechH9YrUhuHacAsSi0Un lswF3iQ3SpyKG2ccaQD4oAUyuXUqrQ0neb8UsMLo+9WzdNCbftsY3q4dNibeI16iN883 NDBNkyK7c0SKrze/japSjXva8ygknp5LD0i8pHLR/T0rxoxaug0LYCm+XLHN+ywvY8x6 oXuEZcKq+hY/RfqmsgA6IzMFHeh1t3hwPLsSf8HNoX/mrjpXTrCzS8DhpEe0WDoMSHK1 lNRKgk99v1MX0xkp7Fjmw7eRQrdxkQhcZKIAXHPpFOicP2QRV6g6ULKRTSjwKBvrYwHD 2jnw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HFcG+zpshek/QHtYRsQrkkGsCnwuDDDHfGOuksPhBmE=; b=xTG+O2JkfgRwNd2ePNBuTlbCpYY4TBv3O66VcB0gBRx3JXyCMwMZ2aC7o6eC8G1uKN LeEdgqGM9V2M3aJtrpmanFokuVgGMl0qQ/KIp/knoEepJ4t1NkAAcXDYJRWtkiwmAObw B5innBzKqeiskHKoDJCHZrPh7Q68N12B594rpANXG39uiQzrfBRQVcOpj52DRT0no2hb +B1WJBZMoiFCO9GVoPXIDG/e/26cmB5eiBf2IX9jOj049lfEXjSphqfeJbjhejp6IvPp sfIXPV3kcmzEgVB3RWbXiIL43cdnwFMREbfyJiDt5dZ3WxXuiXzK3y+tW95ZrpDew3ek ESEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si13279038pgg.1.2018.12.11.15.43.32; Tue, 11 Dec 2018 15:43:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbeLKXlG (ORCPT + 99 others); Tue, 11 Dec 2018 18:41:06 -0500 Received: from sauhun.de ([88.99.104.3]:46928 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbeLKXlG (ORCPT ); Tue, 11 Dec 2018 18:41:06 -0500 Received: from localhost (p54B334A7.dip0.t-ipconnect.de [84.179.52.167]) by pokefinder.org (Postfix) with ESMTPSA id A950F4C0E8F; Wed, 12 Dec 2018 00:41:03 +0100 (CET) Date: Wed, 12 Dec 2018 00:41:03 +0100 From: Wolfram Sang To: Hans de Goede Cc: Wolfram Sang , linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: Re: [RFC/RFT 00/10] i2c: move handling of suspended adapters to the core Message-ID: <20181211234102.GA6701@kunai> References: <20181210210310.12677-1-wsa+renesas@sang-engineering.com> <2094a0d4-733f-7f74-abd2-bdb28edd0f80@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <2094a0d4-733f-7f74-abd2-bdb28edd0f80@redhat.com> 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 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Hans, thanks for testing this series! > Note that the i2c-sprd driver changes in your patchset also get close > to triggering this problem, but they dodge the bullet because there > are separate system-wide and runtime suspend handlers and only the > system-wide handlers call the new i2c_mark_adapter_suspended() function. Yes, this what I assumed to be all around - seperate handlers for RPM and PM. And I also assumed that they could be seperated if they aren't already. Until I read... > As I explain in the commit message of the first attached patch > simply always using split handlers is not really an option because > of adapter drivers using DPM_FLAG_SMART_PREPARE or > DPM_FLAG_SMART_SUSPEND. ... this. I don't know what these flags do (and reading SMART in there gives me more a 'uh-oh' feeling) but if the handlers can't be split, the issues you were seeing are a consequence, yes. For me, this sadly spoils the whole concept. The patches you add make things even more complicated. Not happy about that. Looking at the open coded version you did for the designware driver, I wonder now if it is better to just leave it at driver level? Need to sleep over it, though. Thanks again, Wolfram --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlwQSwoACgkQFA3kzBSg KbZaWhAAqL4UJf4q20FrE3tk+nfMGtcTU2zNWCwJpJFXNnbUYjRE77mFF6PuBym/ CUMjKU6iKIF30DpsJFPgf1/fPnNQJy2+qM4X7oSjZfLE31sp7WMtx4juxX3GV0+E +hVGNP4qkwytLwEz+bo4kAkBoRIszttFRKcE5Zur706OwlSh/DzVWYAgiKsA65aW jueC7gS9FB3/4X9LfZAiKWi88NVa2DeL5l19N/uWxkfW3zNxO8u5J6x+ihqGuGXx Sjf6gpMq9gV9WaBQtZnRSbuNNaGB3D0gmcEhShBAYmYwQBBIUVFzBlJoZnO6rhRr lrYxym0dqgH2szh23QFwta/4qGKAbc3yyAsxh4brsAtkv7P4MgCYrNtRJhdq3LIV qEZG7V4QFzYmdi+1dJdvc5nDxsRH3ijBMZf45884GXUxIhSpnh9qqEeOzGs94nc+ GoU+TSbNrznuTy77P3KuQfnaiY+KQVLTZi10zN2UuZbIUFLOxOSD/dRQo7zDju+1 PaKKXYh0q8Z5JmYTXqlFgBUo2zd3W0gvOWo+SNVSuFchVzg8XQSC1xTv/0UO45us H96p+HZNmbuFIBsz04VpkLy49+YEb7F7bRFQuqkrQlnMVnUDfvcbAHseCIohonN4 RZv0M6iFGj5kObRiCJOqlacQbuT4XOdikuJDgaCBinPXCNGUoWE= =L8ZM -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--