Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3465057imc; Sun, 24 Feb 2019 05:52:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IafxJO0Mv+UevDKwhPR/PBITrbFwcdNvS88Ly0majkTeIv7eaDbtM/HH422kVlEL/AelcW8 X-Received: by 2002:aa7:8150:: with SMTP id d16mr14341574pfn.172.1551016352181; Sun, 24 Feb 2019 05:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551016352; cv=none; d=google.com; s=arc-20160816; b=wRLye9w4GoWLQO76jzpqYb3x5Jelx/ohLNhAw8xrw8unknaO43w8YmbmKSRBPz1yml hl+EZMrJoCbXcDw4vIZScm6PWW6nIyaPQSU+dJfs9ZbulTkk1o2x0N8awpzbYiNHkPI0 VDUt4vosNWZ7cH6LBGqyzaADvHI4XppblmhY7Ak7woWkf4bk8H0mPXJ4MzE7KBJFSZT2 7PcvK1KetQgYNScooq+ktHJxTV4RTTnboi+M+/d6USSUf7SZkrKQOPRgpMnZTmZyy4DZ FAyvQnQ0Z5P8phYLXbwOglrOTCdQzcNrrzu47iiH3kTTS5pWpWlVXk4FvPkWiOIbS7aj RRbw== 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=JGflEtaFKxHmpGw/87kNc8FOUH2cGq+si3wg2DePSRI=; b=TmJaKjmsicPNiUhsnxczCR3i358qbRL5k0ZHauuo4sVAcM91ntUWfHYJKlBgYotr4v D0kEl+Obo5DoDuBxavukqzeeEHGycdtdx1m8nS1onb2mox8cMiN9Gyso1SnFCnyZGAYV nDZXYLYOyXT6IqWDFMJ839F473Lhf/bze3HzteNohSeZX/OQTlg0wiaIny9VAT3rSJrh 6zd3yp81uSFv0zohoqSIwdQN1SQHnuOWfUBQSWstkcUQzKrCmQmTIAun47w/lhxcIJ1U VtQPFW1PqN93XrSy9Q8wZX4VH68H7wq0T2JY4YkE5eS4cnHxuiy3Ix9+hqyOIEhtYlFX hieA== 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 h11si4773827pgh.231.2019.02.24.05.52.06; Sun, 24 Feb 2019 05:52:32 -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 S1728284AbfBXNvg (ORCPT + 99 others); Sun, 24 Feb 2019 08:51:36 -0500 Received: from sauhun.de ([88.99.104.3]:35686 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfBXNvf (ORCPT ); Sun, 24 Feb 2019 08:51:35 -0500 Received: from localhost (pD95EF59B.dip0.t-ipconnect.de [217.94.245.155]) by pokefinder.org (Postfix) with ESMTPSA id B36602C28E9; Sun, 24 Feb 2019 14:51:33 +0100 (CET) Date: Sun, 24 Feb 2019 14:51:33 +0100 From: Wolfram Sang To: Jim Broadus Cc: ckeepax@opensource.cirrus.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: Re: [PATCH] i2c: Allow recovery of the initial IRQ by an I2C client device. Message-ID: <20190224135133.GC1245@kunai> References: <20190219193027.13882-1-jbroadus@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dkEUBIird37B8yKS" Content-Disposition: inline In-Reply-To: <20190219193027.13882-1-jbroadus@gmail.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 --dkEUBIird37B8yKS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 19, 2019 at 11:30:27AM -0800, Jim Broadus wrote: > A previous change allowed I2C client devices to discover new IRQs upon > reprobe by clearing the IRQ in i2c_device_remove. However, if an IRQ was > assigned in i2c_new_device, that information is lost. >=20 > For example, the touchscreen and trackpad devices on a Dell Inspiron lapt= op > are I2C devices whose IRQs are defined by ACPI extended IRQ types. The > client device structures are initialized during an ACPI walk. After > removing the i2c_hid device, modprobe fails. >=20 > This change caches the initial IRQ value in i2c_new_device and then resets > the client device IRQ to the initial value in i2c_device_remove. >=20 > Fixes: 6f108dd70d30 ("i2c: Clear client->irq in i2c_device_remove") > Signed-off-by: Jim Broadus Applied to for-next, thanks! I didn't want to apply to for-current because I didn't feel comfortable changing the I2C core in this very last days before the release. It will hit linus tree during next merge window and go back to older releases via stable. That all being said, I'd really love to see the proper fix (move irq assignment from init to probe time) being worked on rather soonish before we forget all the details we know at this moment. I'll be there for it. --dkEUBIird37B8yKS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlxyoWQACgkQFA3kzBSg Kbazgg//bM6XAh0HokHCQRRLpv3rOJLsay9p6F2gRVw6scYR1QbpZG03nPtzOm/S UAgXONZIHCaorIqpn/XLv5fFjzGtQExl0hR9iRd8hwnwflAVdkdAYbdTq1+J4hYx Rs6nMmkUYZOpPbl9XonGz7rfm5kijmUt4A9Y4lY3J/mMQvBgKGsDz5ro4YQQQADv KVJd+FggH7qr9bbRp97WDJGcS94H6po8nU9pvSRc1bMXzYjmusNO8dkAn90RQZb7 XKfCxaKrt077rAvYMJGYp7Q1rCbvuLvB007bOQ6D4R1lby6oDZtWwad0XWAmSp36 bMqFriFWKA0a1SbaAnBaSo6F7d196ASb8c70bPsyqyntf/Z7hvfjqwIBzEJowbzE SNFLwGTmHQH0tAJFomXH1ampmwUZyiA9MRsGbEpOsjYBVhQu07x/YqrWQv+nTnoF NEx9aQ/3d2297EA9eGPZFoFXNzeUuRVUswYhA6HnIwfBLJ8f6h7zus4wjQhFvR0H l7M8ieAn+CrZNbgwErbmG5iFwdJumsJTB+zlwiaDSioxJEWj0pPNfX7Z5z/zIwjV jlr+esoyUtwBX4nDCohWc/qhhRcIw+RVCIzQbNaVPlHTBmSzQ269Kw61nhPAcsIB MJOx6YJP6A/xnko/XQuBYJPbn1mm1vzSout2wJq06SuwmJietKQ= =cEYW -----END PGP SIGNATURE----- --dkEUBIird37B8yKS--