Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp163246ybi; Fri, 14 Jun 2019 21:36:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFkqJIIo9UrWyOa3lnHE9v6ODwUwuIm4pmB3pskOsKbq/VHDAhml+BxTR7SlfP9Er99Ea4 X-Received: by 2002:a63:db4e:: with SMTP id x14mr40358241pgi.119.1560573399936; Fri, 14 Jun 2019 21:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560573399; cv=none; d=google.com; s=arc-20160816; b=rnICzX9Ody6csndTpPlICn+rTa5vj3lMLCvS3NNEXQzbR2IjEjvZGSVCaxY4LGq/in dKlDmveSWKWQ9szOGa7MIQ8XHZKJWhhh9nHzpec1tKAdBpc4VmekyZ6UhPEJDu6jKIJU VBhayq8tVzWeLHmsWrINXV71YctmBclDdD87BlvCNCJQe/zk8Bynuwjx2BowooFqP87S m7e1xZK8LO4vFVtKxiTff89u0UTKj2awp66WoeBD5CHPHHp82j/tZ4tyAyEWzjAHZQJJ ln9lk+N4Z2ANnCf0D6zyMJj4yxcPkYg+tndZLyu4EkxzbJ2z/nd5exhnyB+P4AM7TliT f5/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zKvceDuv/JF8j1ssRzcXp5+vH6JuGqO/9rX5bdOKL74=; b=jyxixaqNc5Ntwh+w9uRmWD46ce9kjlHhkpXIrUGw87elflmqbQmhY5xNlBbehJxFme mHBYR3DJwb51QvhNBGdWFBfmT3G+6EWsY9PKZlPjQhSc7F6pb0rQJuG+j9wyTJi3L/s5 z+f9Udb4iZpTgDhMLQX/4z1OkFdD4VnRj7tpnEv8hW08JAVnWK5+PJE/UsijGv43gzs7 bef7+4NqB2hM/ys1Cav27YqMf5BPQhH/JZ+FAtBiPUdi97B/oDNU0U4itN/TJRuMpHkE ddjYrieZG/vKHULVfKx6v4h9+5lomztUSu9iFavylNZsPGZrrvTjVkxi2wvJpcOdBjt9 6CAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=pN5YI6SE; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59si3893805plb.107.2019.06.14.21.36.24; Fri, 14 Jun 2019 21:36:39 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=pN5YI6SE; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbfFOEgW (ORCPT + 99 others); Sat, 15 Jun 2019 00:36:22 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:4963 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbfFOEgV (ORCPT ); Sat, 15 Jun 2019 00:36:21 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 14 Jun 2019 21:36:21 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 14 Jun 2019 21:36:20 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 14 Jun 2019 21:36:20 -0700 Received: from [10.19.65.14] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 15 Jun 2019 04:36:17 +0000 Subject: Re: [PATCH V3] i2c: busses: tegra: Add suspend-resume support To: Wolfram Sang CC: Laxman Dewangan , Thierry Reding , Jonathan Hunter , , , , Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik References: <1559885867-10190-1-git-send-email-bbiswas@nvidia.com> <20190614211129.GG17899@ninjato> From: Bitan Biswas Message-ID: <758d6dc2-f044-6be3-6896-196ef477d393@nvidia.com> Date: Fri, 14 Jun 2019 21:36:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190614211129.GG17899@ninjato> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560573381; bh=zKvceDuv/JF8j1ssRzcXp5+vH6JuGqO/9rX5bdOKL74=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=pN5YI6SEtJioKgnMxQSNksTu8VtUHWDU7CYkOrkSpXTMTz4Njzu6VLhkUUnYvHGdr 1EoJKPpZGa+NG4zUqYzeIZiaaQ99XPSRtQD8d/nDjnh61SZf7Eti0wOMy6SzN2Ku/Y MwFFC6TaOCzZG+vMv0NJhozaZ3Vp5ydRlSX5qriF9u2QOaQaibg2/LPNQcvNkAsVfJ dBIFr5wvUsexDJYADad5O5iLHblplfQimtQsKEhBmeU/49V3BzY5p7DEAWYdg7XvMt MwRnglSdp6XBvgOSNuDxKruqCSci2GqQA8AkuD/nfpoczLRAR5iHXzVgfRxs7+hipV lsPJd+mn3p+Zg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/14/19 2:11 PM, Wolfram Sang wrote: > On Thu, Jun 06, 2019 at 10:37:47PM -0700, Bitan Biswas wrote: >> Post suspend I2C registers have power on reset values. Before any >> transfer initialize I2C registers to prevent I2C transfer timeout >> and implement suspend and resume callbacks needed. Fix below errors >> post suspend: >> >> 1) Tegra I2C transfer timeout during jetson tx2 resume: >> >> [ 27.520613] pca953x 1-0074: calling pca953x_resume+0x0/0x1b0 @ 2939, parent: i2c-1 >> [ 27.633623] tegra-i2c 3160000.i2c: i2c transfer timed out >> [ 27.639162] pca953x 1-0074: Unable to sync registers 0x3-0x5. -110 >> [ 27.645336] pca953x 1-0074: Failed to sync GPIO dir registers: -110 >> [ 27.651596] PM: dpm_run_callback(): pca953x_resume+0x0/0x1b0 returns -110 >> [ 27.658375] pca953x 1-0074: pca953x_resume+0x0/0x1b0 returned -110 after 127152 usecs >> [ 27.666194] PM: Device 1-0074 failed to resume: error -110 >> >> 2) Tegra I2C transfer timeout error on jetson Xavier post resume. >> >> Remove i2c bus lock-unlock calls in resume callback as i2c_mark_adapter_* >> (suspended-resumed) help ensure i2c core calls from client are not >> executed before i2c-tegra resume. >> >> Signed-off-by: Bitan Biswas > > Applied to for-next, thanks! > > Without a maintainer ack, this is an exception this time. Should we add > Dmitry as another maintainer or reviewer at least? > I shall followup with Maintainer for ACK in future I2C tegra patches. Probably maintainers or reviewers should comment here.