Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4851250imm; Wed, 30 May 2018 13:19:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI92w5Y4YYy+hloD6Tr/i3wIJGHiTCKujRNcgmln2uEAyOiebx1M0DKofY7/0SnoqjPcwV/ X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr4188466pls.271.1527711559119; Wed, 30 May 2018 13:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527711559; cv=none; d=google.com; s=arc-20160816; b=ucuRO2Qah7eufVPYX+Shed9+6nVQSkplwumNY9ztETJrRuiYs/iJzl0HDTlzZHgXhP F1THNVzNVgb0QQFH7cLMK5IjnajDKdaPiDbiyhnYZ6VNIlovkvo8+2+AhewFVLmPVQ6A dOdz/d33RBQ87Al0q9ISWX2SdbhjJZ/r6qROx/ys3FCCwbysd1+7n/t58fz2aYBXSzBP Of+3MgtTyZqEhfoVsgYZlUU6y1gRzIhmzig5nMQikO+asXUQsrFawgcwodnsPVb5KzJl iisy6fSdy2W8FEAVr31FaLMQXkfFn801d1zG94zM2L84IskYZ0BACjcacCM/3PHYLxVl AylQ== 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=0CFNWdc/tDH9OlBIKLK1V6Q2SNj+YQsuVn28NwmHyQU=; b=fhKkrSggZcVCZeqd91FHwwoUHdaRS2uh89dAv8FWOZVlj70VZGKt97pVXa7oHxfxDv cRK4Aupct8kQCWjYVp15JJUMK83rFkhvpiCaW4y+E85iCO0oz/gbWIl5ltF3ppeVeD+d +CQEALZ8W/3dmYStT5eIxCjWzh8rKFoifOoPnoYNPxDfROtaDPfR0ZewPrxeG3tIlOkp s2Drn5Y4b0WyYJjWG4tYVg2O+x8u3+y1XXx24AYkjkzmHloPIwL9NKSPe8JFxervoiIX QzycRCmuhjzsDR4wQaX/jdhwlAd1YOmKTk43kz+b0Ptw51fJvDlWolSCJO1I4mCQ2O95 m3Iw== 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 a3-v6si34076889pff.43.2018.05.30.13.19.04; Wed, 30 May 2018 13:19:19 -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 S932251AbeE3USg (ORCPT + 99 others); Wed, 30 May 2018 16:18:36 -0400 Received: from sauhun.de ([88.99.104.3]:37188 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753718AbeE3USd (ORCPT ); Wed, 30 May 2018 16:18:33 -0400 Received: from localhost (p54B33665.dip0.t-ipconnect.de [84.179.54.101]) by pokefinder.org (Postfix) with ESMTPSA id B9A585228D7; Wed, 30 May 2018 22:18:31 +0200 (CEST) Date: Wed, 30 May 2018 22:18:31 +0200 From: Wolfram Sang To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-tegra@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i2c: tegra: Remove suspend-resume Message-ID: <20180530201831.6327alcmr2stgr3a@ninjato> References: <20180513211347.7187-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e5vf2g2grh6d4q2g" Content-Disposition: inline In-Reply-To: <20180513211347.7187-1-digetx@gmail.com> 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 --e5vf2g2grh6d4q2g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 14, 2018 at 12:13:47AM +0300, Dmitry Osipenko wrote: > Nothing prevents I2C clients to access I2C while Tegra's driver is being > suspended, this results in -EBUSY error returned to the clients and that > may have unfortunate consequences. In particular this causes problems > for the TPS6586x MFD driver which emits hundreds of "failed to read > interrupt status" error messages on resume from suspend. This happens if > TPS6586X is used to wake system from suspend by the expired RTC alarm > timer because TPS6586X is an I2C device driver and its IRQ handler reads > the status register while Tegra's I2C driver is suspended, i.e. just after > kernel enabled IRQ's during of resume-from-suspend process. >=20 > Note that the removed tegra_i2c_resume() invoked tegra_i2c_init() which > performs HW reset. That seems was also not entirely correct because moving > tegra_i2c_resume to an earlier stage of resume-from-suspend process causes > I2C transfer to fail in the case of TPS6586X. It is fine to remove the > HW-reinitialization for now because it should be only needed in a case of > using lowest power-mode during suspend, which upstream kernel doesn't > support. >=20 > Signed-off-by: Dmitry Osipenko > Cc: Applied to for-next, thanks! --e5vf2g2grh6d4q2g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlsPBxcACgkQFA3kzBSg KbbFZw//SMNfWMlDFbsbF6Gb+7UXJQ9Yj8lterDd+32HwO2oAnM8VxIDdP9qkTTL ZsLy1/tddjX+6yX1H7MQw/fcOPk1FArnWXtAhCaE48SsaovY5Sgl1+X7RDDkzypt pUkneCDeVHmkVpaYq6X/4BLAodThAlES2QwMS/WWUBKpSdUHugYB0nHiD4Zb2tb0 x52sK1VU1r5C3sc3HMJK5HZ6n+k+qe0mw5bFpsmGXuxC1jf79sqdtfSRi/DMwl3t Do3rhhgDRrqYg/FTDR//w6cq7JNUTCnfS29LjtdWDA+opO2OLsjteOnhW53MFynw otvkVcf+RFeV7Jsgz4H7uCj0YAq7mGeqVqIfgDHfvtiFmDGqNdMsbSxN5xws5BNK Xjh+xHr64G5cZxtpJTUVVQItARUmETlhVU3jQtCbp7ioc1ehNw3GSWVyXiIqjG+g VSSaj32slpWhCckna7jH6cWLUosQRoKBe496Owdj1ugDAoH0714wmMcM6LZ8eZN8 3n1tzxsk6P4w4QLnJixcAfQVYqlj+kVghWX0sKZrVopshVYR6LpoTgcXJhutGD40 nTUuzuqabi/4SjmWndXlYKhRUTlGiORGsQO6yN2u7ae6HB5+sfLmHIbz/TgQqdrO CCbNtCDRv2eOaPfkd+uHL2TERcFuwMOz/IVvPEdeaPGjgr9KTxU= =Rq5I -----END PGP SIGNATURE----- --e5vf2g2grh6d4q2g--