Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1436286imp; Fri, 22 Feb 2019 03:32:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IaFGOgoVX9BR7btuqYgbWS2POKFEya6iwym5PL2tuio5jfg3PhSdP0EdMf1/5FIuNBs0Hnh X-Received: by 2002:a63:2682:: with SMTP id m124mr3470687pgm.35.1550835162193; Fri, 22 Feb 2019 03:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550835162; cv=none; d=google.com; s=arc-20160816; b=ynSQMmmvA9DgymvEkwnE8DROkeSU0AX/DX7KuqpVNN7a8TiL9UPXGKyMYcxJFewKV9 JeUUxaSU8MAddp+FJZxwB42NREF7FZFcarCCEqzQGuu17Uy8NSEICue302+gZ/eK/2mb CoeP54tNHESIt7wYkBwxCnnpmtbgAuU98TtZO2922NbYW78qdX+kX8klYZgEBIWa9fIC qdfYV/AXqZ+TpqA3T/xjuCl3av8/DFufnJLsucbr3Jb3DUcxhL1PxJaPrsFGenS5dasO k+KmcMrcTrXgMolHyLsG6OfNWL711a8uzIG/114sn6h23c9ABzph4cMIWdwnw/9fc/C6 AvqA== 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=JHsySIQ2nr0x3Gx7YJzU5kedOtTKg/1uTVQAWh9ry9Q=; b=cytS0703ME9/Q8CL7OfhGqmDAeosdCOLKM+1hO7Dzg8FrYgOmfQ2J4z5T0BHP+xq/z K6dfgXTCZNQmixag89v7ssO0IeL9ZbVdKCn3yNpcdM2+oyayTpPzoH2RBsi1qkoqGkGr NkbrebdIgfITf0mmT8KVJaBeU9PwZW+1xrUgbkQ4dIRQFGJnDtaNHyEwZs3S61Kr7t6O EchlyLCUfLULOtTH9Hi19fls+OwKBDZr2s3novqPwlF2lNnVw7DyXQk3jBV1TN1Y9ToI ty55B7+zKgThQ4PzNzxK/6elY0E8rASmmx8Er1dsC7NEJEmIAeNkUWoI1xnVsSrQ3tYO FIaA== 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 r7si1182527pgi.20.2019.02.22.03.32.26; Fri, 22 Feb 2019 03:32:42 -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 S1727027AbfBVLcC (ORCPT + 99 others); Fri, 22 Feb 2019 06:32:02 -0500 Received: from sauhun.de ([88.99.104.3]:44864 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbfBVLcB (ORCPT ); Fri, 22 Feb 2019 06:32:01 -0500 Received: from localhost (p54B331E2.dip0.t-ipconnect.de [84.179.49.226]) by pokefinder.org (Postfix) with ESMTPSA id CCE253E4AA3; Fri, 22 Feb 2019 12:31:59 +0100 (CET) Date: Fri, 22 Feb 2019 12:31:59 +0100 From: Wolfram Sang To: Charles Keepax Cc: Benjamin Tissoires , Jim Broadus , Linux I2C , lkml Subject: Re: [PATCH] i2c: Allow recovery of the initial IRQ by an I2C client device. Message-ID: <20190222113159.GB1771@kunai> References: <20190219193027.13882-1-jbroadus@gmail.com> <20190221232609.d4vxl3osj6mwooey@katana> <20190222102335.GA1771@kunai> <20190222103019.GD130153@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LpQ9ahxlCli8rRTG" Content-Disposition: inline In-Reply-To: <20190222103019.GD130153@ediswmail.ad.cirrus.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 --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > But I still have the feeling that the problem is not solved at the > > > right place. In i2c_new_device() we are storing parts of the fields of > > > struct i2c_board_info, and when resetting the irq we are losing > > > information. This patch solves that, but I wonder if the IRQ should > > > not be 'simply' set in i2c_device_probe(). This means we also need to > > > store the .resources of info, but I have a feeling this will be less > > > error prone in the future. > > >=20 > > > But this is just my guts telling me something is not right. I would > > > perfectly understand if we want to get this merged ASAP. > > >=20 > > > So given that the code is correct, this is my: > > > Reviewed-by: Benjamin Tissoires > > >=20 > > > But at least I have expressed my feelings :) > >=20 > > Which I can relate to very much. I see the code solves the issue but my > > feeling is that we are patching around something which should be handled > > differently in general. > >=20 > > Is somebody willing to research this further? > >=20 > > Thanks for your input. > >=20 >=20 > I would be willing to have more of a look at it but am slightly > nervous I am not right person as all the systems I currently work > with are DT based so don't really exemplify the issue at all. Thank you! Well, I'll be there, too. Discussing, reviewing, testing. And if we have Benjamin for that on board as well, then I think we have a good start for that task :) Others are more than welcome to join, too, of course. --LpQ9ahxlCli8rRTG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlxv3asACgkQFA3kzBSg Kbatew/+I8Kal9hvYRAu3wYJbW7Fpxjvnz7kloIiOb9wCli1oKEgOXy2ahg59Fq4 Cht2UljMlNDRzOhvmCiQsrb37ZfVRtXj9opXSJP/IRFFz11x5cUEl9y4nUf8EzIR LaCE9WcHRfq0S/RjwxAekEM4fWlwSiYlrw0n6tEZ63rPZkqHtNZ6b/Q0bZBzd6pC bion7WcG7pKJ3uOwEvfytZ1ouFr0NZbTKLs3ncxPy+kbTW9nqwFG6cmf9fZAErcv d8CT/1Z3z22OHJpJ3/ys99Tv7obvtcmFDspZeNKtH+QFXQ+YqfSc5S5+UlgNZ/iu /v3t5acY+QwnKmc8rc4C83htiVIGc8g91VR+tM4i+2nOiZ4CZPyOE0u7XuQwSd8c TxFB7PRqBLMAYJ+rUzcMqCYndatDEN3JCr12OPgK8hzTo7rh+YS2Nh803CQV2nHO AxjIi47sHIelMkHrQnXt300CPMe3A4AiJGbxKGaD0YNPXgJtvIRl+23JhJJlBiuW 42tjdALn3gG+iLmVSi1fbVn63vkA5jHa6wA/wChL4Nx0elnvle4a6WfcwTarbZJa wCqKWpVUFh5iPiuK1cr7/TbtzzNSn34//cxgmUyisty2JDWvIhT0c9wREAC1UqW4 3NULn8vAgNhncb+VZcQCmQHZF/iKIo8CzMOXrqrof1YEaUsdJYo= =3CRi -----END PGP SIGNATURE----- --LpQ9ahxlCli8rRTG--