Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1768673imc; Fri, 22 Feb 2019 10:48:20 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib2tocNOI/4yvUC4ERgsFRlJ0RjH1gPCoPmuEQnq8lWLaQB4maRZoiUaO8jkXC9aw2ApSyN X-Received: by 2002:a63:f5f:: with SMTP id 31mr5289376pgp.186.1550861300817; Fri, 22 Feb 2019 10:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550861300; cv=none; d=google.com; s=arc-20160816; b=cu0aQpbG69dOuuynsT1CrAKjXhujCJR8d6858GcfRVHWW2FSZPCJje2SA1Eurg2zFh hP/VqE+3vDhudNGU/Nzqb/Mp49K+Y0WCp3hUjFiPGFvjrcm3/59tVr+LcvLvsCQyEFN3 adcL7bcfA2ngzYm4R1pN1vJJPOh0ZvGY4S06XGsfn/nuE9witIST+YhJy4CN7WNimgg5 UUxcZNXqIV1nvUpG3aJeMhR0fQ0iX+XpWII1W7/7YYV2FBAZpVkrva36zc1Vn26qNWaf DOqAoat0NQRh9jOEzp71pLd8CuIkUhYXcua+13Pox0Bmjdq+uRfL4ty7XYTiZW+EySCB jVEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vaT+im/exFXiuwgGdAqRUQFYEcuWfEumIF7pOvOGNuQ=; b=BYaW4S0uCJQGMDjQrq2Fxh5GdrxuvFHEvKnbyD0hAbwq6fwNOXBYc5TscXrt3l8xhx rsaamguI1O5K4G94RpKr5ml++ZKu3Eu6qQ/UVPyW4aFKF+70yzbIm7tKwOh3TCDxngJ4 AO9cr7w2YE5q07HTgAAiEIT8WToRrmMqzuZ4Xygkn5YAtrm7O/PQ0Cfhowb9qpz4KrDY BxRmdjWOxybtuDQyQGzuhXR8W2n24bBVGWVjqNZbmT5Cy/c5Y2mmwDM+fJBXOTipKDlS KeyPwjFeIMMXPU7D1KSHSezbrwUcuXBGTs4JZ2hIWEGMtK+weCkqQO9Nip4D62jM2Il9 tvtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G2aImyng; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si1881761pgv.523.2019.02.22.10.48.05; Fri, 22 Feb 2019 10:48:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G2aImyng; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbfBVSrp (ORCPT + 99 others); Fri, 22 Feb 2019 13:47:45 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:43032 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfBVSro (ORCPT ); Fri, 22 Feb 2019 13:47:44 -0500 Received: by mail-qk1-f196.google.com with SMTP id f196so1732287qke.10; Fri, 22 Feb 2019 10:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vaT+im/exFXiuwgGdAqRUQFYEcuWfEumIF7pOvOGNuQ=; b=G2aImyngdqoEn4nPid+PW+3gWZZRSs52AQMsz/kgQraCbgA1FFu9e6OBV8ASFFLWYY RlZc1APWE3oiNWwXIPwumapvcqGYaSLUpuj7vWhAaTD4AKXaS4B9LchMYDUCqiZmwW8/ D6cIgAjHhUvWsdq+TB1c2Ekv7LN0x6wvdKnCYurfhJuBjWqxYwinpW4Q3B+6DpvHOnAT scxy6vlj7FJiYRlsiH/M/A/LQ3ZnjKYTEAqTrTINTxVPfMqAf8muCcCPbkXzQ8YdTpkm MnkP/DL5nOtOjCYpAeFDZXjoCiH7QJuvA9JCYz8r/folWKOSnalUzrHVSzYh6i5ePh56 sTzg== 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; bh=vaT+im/exFXiuwgGdAqRUQFYEcuWfEumIF7pOvOGNuQ=; b=XyRmR6ZUOHHz7iNesUlOfDPRtj0McZL/ASFDm7Sh8cufCKW8jppR9wXrscUJR+SmlG mq+C/hW+I3+ljUJcan9PMytzZW/lM0EmtIAT2jZKyQKyJgUdJHDVKGMyfOfZhqTnKRvr 5PUWJSzNE8qHGhf4Q1eYQZuh9LsQ4feL4lkgCkF3stMNO22Wgf45FrzPzcfNwHoGNdi/ 4349eHqMN4cP564ZMPCQzd3CSoj37PQ9QT95NY0QQaa9CpIXGL6DrRvTn2zQx+fkNmcV RQnrqmYP37ENnPFtBlrodh5bnQPAtmDAexr5Jm+vQ2HeMTs3k35IImusRWuROxP/iWap UfRA== X-Gm-Message-State: AHQUAub+Wi0ZylS5VMV5oLSP4I9r1oGEa61ep4Yd4kvuJvxT7CqNH1Nv 97Q1MfYaD/tfojVxJlgM8tZNkQazEVa1BqGVKTw= X-Received: by 2002:a05:620a:13ad:: with SMTP id m13mr4105843qki.59.1550861263361; Fri, 22 Feb 2019 10:47:43 -0800 (PST) MIME-Version: 1.0 References: <20190219193027.13882-1-jbroadus@gmail.com> <20190221232609.d4vxl3osj6mwooey@katana> <20190222102335.GA1771@kunai> <20190222103019.GD130153@ediswmail.ad.cirrus.com> <20190222113159.GB1771@kunai> In-Reply-To: <20190222113159.GB1771@kunai> From: Jim Broadus Date: Fri, 22 Feb 2019 10:47:32 -0800 Message-ID: Subject: Re: [PATCH] i2c: Allow recovery of the initial IRQ by an I2C client device. To: Wolfram Sang Cc: Charles Keepax , Benjamin Tissoires , Linux I2C , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 22, 2019 at 3:32 AM Wolfram Sang wrote: > > > > > > 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. > > > > > > > > But this is just my guts telling me something is not right. I would > > > > perfectly understand if we want to get this merged ASAP. > > > > > > > > So given that the code is correct, this is my: > > > > Reviewed-by: Benjamin Tissoires > > > > > > > > But at least I have expressed my feelings :) > > > > > > 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. > > > > > > Is somebody willing to research this further? > > > > > > Thanks for your input. > > > > > > > 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. > I'm also more familiar with device-tree (just came across this on my personal laptop) but happy to review and test at the risk of learning something.