Received: by 10.192.165.148 with SMTP id m20csp949996imm; Sat, 5 May 2018 01:35:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr89CAYTNY0qhpy+LHX7yGD4p/tUbsSPabGbZedlQMJrfGKLSMTLhNil6m+ngdAxVsavfnQ X-Received: by 2002:a63:90c4:: with SMTP id a187-v6mr24497193pge.189.1525509318185; Sat, 05 May 2018 01:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525509318; cv=none; d=google.com; s=arc-20160816; b=LD+EAeeGBn3YdqxRxefSh/YeDTw9SEeHmyMn/CDuNWN9AAkTBHj6gUK4u+jwe2bReO w68ky60V/xQoBT5n3FzMFn6qD+KLV1zZH2Vaz1dU8w8hY9aj1VgykW7FLBGk6a2UaUn7 5zzFIDiFTzZQzju+50zEbhTGrLP0y0MioZ1nFUTCwx+kM4JXlRMmVn7akWGSIM9dVnll tOxX0/cw/yI1M++q10XOUA8y3hLw3n36QY6jHtZBSMiq3SuRGUvLWF012aN1+X68JQty miRy6Qmf/X4szEa+iUqprs6yaNWq27wmsPuXuwzulS/o0IlL6Om6OxhnVAZKuksyIzYP IZKw== 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:arc-authentication-results; bh=Kra/GlEX0OJFNCnMr9va5zYcJodGvKFEOz42x2H+v2A=; b=bpFSG42zgQqOhWlI7uacBuA+enhZxu5Pb/C86juhj9ZPS8a7tte6atLZGWnw5RQ+CI Io2k6qWisfHhYYAQm7gs28pHSG1FfsT4amHqNj5JMOoHG4J/gPRI1COUt4zoblK0Gj7D D5Sd7nnZop/89unrS5RRwmy/vWXJTwKpL9eoeqXmMiay06otZ4KN+x8qtGVByFUUsODd xLXyhCN5Mjw7hcF5tUVbrDa4sZeOUD4/VMki0xqWxhLXRGTRHFPmAL69+etwPskwBY7W g1YbASYh734oCjBzBVf5XRIIpOrb+WAUS24CovuovYqh3feWwrTExswp9or7saQh+tje e0Eg== 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 74-v6si4359026pga.50.2018.05.05.01.35.04; Sat, 05 May 2018 01:35:18 -0700 (PDT) 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 S1751218AbeEEIc7 (ORCPT + 99 others); Sat, 5 May 2018 04:32:59 -0400 Received: from sauhun.de ([88.99.104.3]:57192 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764AbeEEIc5 (ORCPT ); Sat, 5 May 2018 04:32:57 -0400 Received: from localhost (p54B339DA.dip0.t-ipconnect.de [84.179.57.218]) by pokefinder.org (Postfix) with ESMTPSA id E926132475C; Sat, 5 May 2018 10:32:55 +0200 (CEST) Date: Sat, 5 May 2018 10:32:55 +0200 From: Wolfram Sang To: Mark Brown Cc: Grygorii Strashko , Baolin Wang , linux-i2c@vger.kernel.org, LKML Subject: Re: I2C PM overhaul needed? (Re: [PATCH 1/2] i2c: sprd: Prevent i2c accesses after suspend is called) Message-ID: <20180505083255.7gv3bcjxx3b6nzeb@ninjato> References: <99031524fa147e72451d26f54b24f36093c0d3fa.1523255712.git.baolin.wang@linaro.org> <20180427121417.auv4ppryegkprv32@ninjato> <20180502052336.i5f4yv2ho3za7qa7@tetsubishi> <3485f73f-e356-6db0-89fc-d51bf8bdab71@ti.com> <20180504122447.u3xgrkperxz5dpcz@ninjato> <20180505015458.GM13402@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xsupeutnjmsk6poi" Content-Disposition: inline In-Reply-To: <20180505015458.GM13402@sirena.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xsupeutnjmsk6poi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Mark, > > And maybe this could be used here, too? Introduce this flag for very > > late/early messages. If they have it, messages are even sent in > > suspend_noirq() phase with the master_xfer_irqless() callback, otherwise > > we will have the WARNing printed out. >=20 > It feels like it'd be more elegant to have the core select the irqless > function automatically if called after interrupts have been disabled - > otherwise we end up with the need to special case through other layers > of the stack like regmap as well which seems like it'd be error prone. Yes, I was concerned about thae (i.e. regmap accessors), too. > OTOH it does mean we might not notice things happening later than they > should so it's not 100% clear... What do you mean here? Thanks, Wolfram --xsupeutnjmsk6poi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlrtbDMACgkQFA3kzBSg KbbBzhAAseHOlxKKx9KMx3QscpyweK9YWECeEkcSlnJ0t94dmCi49zQoth7jq7MO 66b/WvV4sLAqbqE4ksYrABXOFZY9Lp4+IeNe1THshZRFzEMNIs5oWtiUhuaBL6QV 662jH76Mu84AuGguE6oMCvj9wvCPTW2fXHFZ2jC48X/ZercdA1ORpUwOYRF0c4XB Ww2nD3YSKnMHipRoYJhhUrN/e1ILy8mqIoT0O0hsOvN7zfm0AZ4PYQ5KsEYmZ4uR 4WfQjqBPXjqPmWdydseC3CoR2nllyF/SSwAHLQlnslg7FtMeomyzaFFKBDuTggRi TjVDBOwsgGbyd6MHZY/E4IqwYsB36P1iup9OKksu6OoJBAmDCooY4o+fXjqMI3v7 y/Ew6xRD6tSxH0phCLlvaLh6L6jKSUKRzYwT1cRUkTNy3Nj39ePgtD2CR1UEsn/I XCOhKje/Yr54droiAs9NVEB/E0fu4rgdVB+sSBW54vyDfhDhmeSXlcCITyztTA6E rMVxUG4KbiRoViVdpnqPjxl0plkOs+PS5qK7zoMJmnjcd0Vm9qg8RGyxg3C/nM7v mvU6MhW9FimoM2V5VqDEwDtLgvE8ok4bNi3x6TbhGMOvuKG9OA7YWWoUdLjgfYYz ysn1ErJaaWZABYKZQHc3TiLpWg76tNpt0SShRMuUUMvqPVdFB0Q= =cqOr -----END PGP SIGNATURE----- --xsupeutnjmsk6poi--