Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3926687iog; Tue, 28 Jun 2022 05:46:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9TKaC5XOEJLTNuhN/Q9alWf9Yx8wDBWrQNtVbutyclet5AIciKQUeAudIBqa0bURJtFTb X-Received: by 2002:aa7:c45a:0:b0:435:d7a4:99bc with SMTP id n26-20020aa7c45a000000b00435d7a499bcmr22785938edr.158.1656420418665; Tue, 28 Jun 2022 05:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656420418; cv=none; d=google.com; s=arc-20160816; b=mksjwF+lOc3b0nMWyF6XFMiOpqRV7yySDBYZOGlSfD/6rzqxWk9QO6TyqkK3cBHL6U SZZTG/rzxnmOF4/PGOh1Q6VxCEzv2IJR24D7g5H/r35p6RWhD7GNJ+AJj0sAaNKIapi/ 7rG5S2/grot+sf8Pr2LJgwE34DttQTAZpnCRcxzdSQ3rQtR/7SjnOy5JOllZ1h1cuN97 HVqcaBglwRQzc6VBLmICeWuqRC1N3JScJ62S/JJ/Ub4OF7yeOqDr7tinw1OuhjB+GJiy 8F9bZjofCMkTanR/g9OAKwIfoI5Dx5bpJdvAWPynGVvT4V0HoTisWOMcvh9MmHhAhSPa rFtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y1/f2/rKITy1d+h7OReZAB8qaT+bG+8V7QHnxwKLcGA=; b=BLPm3ddt1m5DWi9VNgS1mh8orr5c2XGU6I5L6K7nzdxt8pp9zdrS6rRLepOMHVbaBN vT+OasRoQFZLOT3klU5NHBoWIqDf6sYSu03MKIAPGQ8WgZ8Nmnik7V9sujNYgOZ8Vv43 jFkT8NLCn2KEJWuc0lEYeug7w1cIhWRYjO2YT80YIdPTUa14EIHodZ0qqdrPjDTnHCA1 t+jfqRXmRZJyDAAOeJFo+/w9vnQQXf2UzhKvueFQBjhQRPg6ll3ZaN6gR323tlSRAdhb 55mKjCZcfk8/r4La1lQmkNe+m4VQjkWOm2G8vw4Omf3lCFnxVIjMRa3QGjzHC294xunr b+MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lU1z+CzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec5-20020a170906b6c500b00711da98d1besi14364344ejb.251.2022.06.28.05.46.31; Tue, 28 Jun 2022 05:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lU1z+CzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345648AbiF1Mfp (ORCPT + 99 others); Tue, 28 Jun 2022 08:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbiF1Mfn (ORCPT ); Tue, 28 Jun 2022 08:35:43 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E1F2F00E for ; Tue, 28 Jun 2022 05:35:42 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id x184so19213504ybg.12 for ; Tue, 28 Jun 2022 05:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y1/f2/rKITy1d+h7OReZAB8qaT+bG+8V7QHnxwKLcGA=; b=lU1z+CzAevBaDc15yFelws3us8JVnpogXhsQcidQDpHx1AjPTZ9H7eF+hr7e0vZx9F 4qX3GxTnk52V1J8q+VVPrESxk1fOG3dWpkoNCHzVVZXq6fAK1UfY6Mzfpm2GxaQeFrnK uofo138vjBf03ffwAans+YN5wJ+3/+cOmz6hbS8Y3LHNbqkfZ2LFzmkPQATM+D+gNGcq GlpWSPbC5agrsSBxdiUtdSDwgGOVfPN1TwIsuJgjCL9Vb2MRXVgmZDxBUwYL5DxJZ+UW BeTjwjtepElXjXlrMjbwwSetDotOfsiCE/bLJMZ1h083FqIxUWUw4z1UHdz8DMxA09+S 3zcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y1/f2/rKITy1d+h7OReZAB8qaT+bG+8V7QHnxwKLcGA=; b=X1ZCdR8Hk9895eEqXKB7AiesZY+01GAOKXXALBfpZGW81rRPaZ17gC+afVs4nJLPwj iyXriwuCb9jQKSiu+YPEr4mKFxWCd3f1HjKqf5UEeqArao93oZTrsCtnmgLtp+TIJten HqjyacPJBHwIBXBtdD0nY+wIIM/uK47qfzV/Lyk1MONzOFvnVrOp/hkOgW9dg+8sppkE U8mZ68amswZsZj5l9gaQGBr9jSrYy6ImIKDI1PdeIccwwpcoj46mdEJks54z8PIKEEjK 2zp2qYBupnNL1LnaqbN+GRJCaVpXPapP7YyPGTAdQo2g+mMSAWgl9xVotgIJCMbHoOl/ FZ4w== X-Gm-Message-State: AJIora/JbfAXHIUfKcl5OOUGQ4D+3AgmsmbULdmT3YaUU8Rndiv2CRIc zINpuIAz+zvgRs2HvIlDBbJmlWYAV3HUdb4jdH4Mi2cM6So= X-Received: by 2002:a05:6902:152:b0:66c:e116:6a7 with SMTP id p18-20020a056902015200b0066ce11606a7mr9331040ybh.533.1656419741944; Tue, 28 Jun 2022 05:35:41 -0700 (PDT) MIME-Version: 1.0 References: <20220307141955.28040-1-alifer.m@variscite.com> In-Reply-To: From: Linus Walleij Date: Tue, 28 Jun 2022 14:35:30 +0200 Message-ID: Subject: Re: [PATCH] driver: pca953x: avoid error message when resuming To: Andy Shevchenko Cc: Pierluigi Passaro , Wolfram Sang , Alifer Willians de Moraes , Linux Kernel Mailing List , Bartosz Golaszewski , Eran Matityahu , "open list:GPIO SUBSYSTEM" , Francesco Ferraro Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 6:03 PM Andy Shevchenko wrote: > On Mon, Jun 20, 2022 at 4:18 PM Pierluigi Passaro > wrote: > > > > Avoids the error messages "pca953x 1-0020: failed reading register" > > > > when resuming from suspend using gpio-key attached to pca9534. > > > Thanks for your report and fix. My comments below. > > > First of all, how many of them do you get and why is it a problem? > > > > The number of occurrences depends on the time required to I2C bus to fully wake-up. > > It's not a real problem, but the message may lead to think about a real I2C problem. > > Wolfram, do we have any mechanisms that guarantees that I2C traffic is > not going on a semi-woken up host controller? > > Writing this, I'm in doubt this patch is a fix we want. Wouldn't it > just hide the real issue with some resume ordering? That sounds like a bug in the pm routines in the I2C driver. Why is it returning from [runtime_]resume() if it is not properly resumed? Yours, Linus Walleij