Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4017370pxb; Sat, 5 Feb 2022 01:22:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy741aUmM/iwB6cbvSxtmSA8lDUsyPitgSBwLN9csXJYZm/YSfIXau+j1B2a4fZ0OcYqqhU X-Received: by 2002:aa7:df16:: with SMTP id c22mr3333015edy.177.1644052968167; Sat, 05 Feb 2022 01:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644052968; cv=none; d=google.com; s=arc-20160816; b=z2e4r1W0VmaLoaHDERyUDhLctGHrcGq7wu7pbndrfxwcAXkuIDX2DZ9p+ljyUcqM4H QRcN8I3ZwTIOi3Rrbe7xfscv0WQm9E4Hy3dXXUk9bEIkhFaUU1/Ia9VUcBciqFgOMzER Twxv7ciHt6aNRLpzF5lwPFVytfHWZN5opQSEXLnTuuZZIfM1rkKfIHyJb5SBoPLLWo3D WwmPeaJOG2cmL5HZvsIAkV3XAaxsPtHy+WuoMa5S6sF+jtTl5hf2Ejvkea7QFRNMAytM p253KX+nBHL3HZoL76Wr0Qx3WbMIg/2uVnAibzypaplZ9VirgPXCKeoK2qPFngUfXF+F 6yKQ== 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=B0ahm0hdwmzp8LcfxQ8+kQ7YphowIvmbdFdhXbcRawU=; b=yeJNAurV/8v2k499MkKGxLvJopSoFnGKxOaIxL9Vc6Uca2u3v+sLFQl2FflV6B4+AB tnb8V4+vO1BJMBiJoFkrSdB6BfOvohEBjYN52UQQyiFywBLEY5FtSLv7fJeRFafeLX4Y DGEp9qdxcMCjTd14X8WUy8G9Pa3RIrPhorPBkKKSLteqsr/G9DaBgfNKGWxNTA/a/W0p qVadIOOGZJqpzCZn9GW1V4ta+0WNBuqMLcoHNTqe1uQQN3hpAhNnKhV3dmbVrGnyFPO/ xWlS37j3M7kLb6pED3e7nwxTi5OUHGerFB/SvzWIeUKK6+OfZuBiN6d/kf5caPh81Mmi /YmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YuuKVwxW; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o29si899119edi.286.2022.02.05.01.22.21; Sat, 05 Feb 2022 01:22:48 -0800 (PST) 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=@chromium.org header.s=google header.b=YuuKVwxW; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377476AbiBDSSq (ORCPT + 99 others); Fri, 4 Feb 2022 13:18:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243150AbiBDSSp (ORCPT ); Fri, 4 Feb 2022 13:18:45 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40817C06173D for ; Fri, 4 Feb 2022 10:18:45 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id d188so8396541iof.7 for ; Fri, 04 Feb 2022 10:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B0ahm0hdwmzp8LcfxQ8+kQ7YphowIvmbdFdhXbcRawU=; b=YuuKVwxWhqjqDGM91SbOGfO5jk1lvcH2xOKu9SdTS/0AtcSSu6Z74v9BI75XsPuQNQ 6voOghPWwZ0DFtuWnIayytbcUYvQLdpxYUw/+iekyW/DRrXWz5L3T9qUdSP4JAL0wOB2 AAuLy72nClt9QPT6wEIYZ/WM76WScoUHkqOnE= 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=B0ahm0hdwmzp8LcfxQ8+kQ7YphowIvmbdFdhXbcRawU=; b=7HPifqNIXH0j6mVmuH33VDOU2y80/JELZJj4aknuV1nh+UGaNcj1L3f23PW4Se9LJ+ fks8HDzxl+cQlJO3mD4mhHEdUuvGI+2g0bqgrfrIWKcCEs+KCleBJmSvzF9WQ1MEGL2x xNwWjbURw1/+wMPVBat1qbt3sWHF0dUfIOpQbVbkd5Odw/pxymJIxS9WFmtUMPzaoKl0 Jaa/osvGvJB8CeqzoyZlDz3JImG2jjZ56f5KzgwV7EvWDVbBjdCLRL7gOIYkTcSKbHSw NwhbSAKM3thP1GEJrAw1FPGlwPOyn/+jGx0avuBZiZP7e9S3j2iM54VwtnCE9vYBZ2Ov nOMQ== X-Gm-Message-State: AOAM533uwwMoLWVhnIZP7tonS61BSvO7xyseEMnwwPNh3fLgcfdjmttr PGYwXmb4Hg5VNLPqualPSdayc8keSfpieVCyvhJ0QQ== X-Received: by 2002:a6b:f218:: with SMTP id q24mr174468ioh.55.1643998724641; Fri, 04 Feb 2022 10:18:44 -0800 (PST) MIME-Version: 1.0 References: <20220106122452.18719-1-wsa@kernel.org> <98ed8d6d16a3d472d9432eb169aa2da44b66b5cc.camel@yandex.ru> <4dfbee97-14c2-718b-9cbd-fdeeace96f59@yahoo.com> <6121a782-6927-f033-1c09-ffe4ad7700ae@yahoo.com> <363432688.323955.1642272250312@mail.yahoo.com> In-Reply-To: <363432688.323955.1642272250312@mail.yahoo.com> From: Hsin-Yi Wang Date: Sat, 5 Feb 2022 02:18:18 +0800 Message-ID: Subject: Re: [PATCH] Revert "i2c: core: support bus regulator controlling in adapter" To: "Tareque Md.Hanif" Cc: Wolfram Sang , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , Bibby Hsieh , Marek Szyprowski , Matthias Brugger Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 16, 2022 at 2:44 AM Tareque Md.Hanif wrote: > > Hi Hsin-Yi, > > The issue still exists. I reverted a19f75de73c220b4496d2aefb7a605dd032f7c01 (the commit that reverted 5a7b95fb993ec399c8a685552aa6a8fc995c40bd) and manually applied the patch (tags/v5.16). journalctl attached. hi Tareque, Can you apply the same setting[1] again and with this patch to see if the issue is still there? https://github.com/torvalds/linux/commit/6dc8265f9803ccb7e5da804e01601f0c14f270e0 [1] reverted a19f75de73c220b4496d2aefb7a605dd032f7c01 (the commit that reverted 5a7b95fb993ec399c8a685552aa6a8fc995c40bd) and manually applied the patch (tags/v5.16) Thanks > > Regards, > > Tareque > > On Saturday, January 15, 2022, 11:27:07 PM GMT+6, Hsin-Yi Wang wrote: > > > hi Tareque, > > > On Fri, Jan 14, 2022 at 6:09 PM Tareque Md Hanif > wrote: > > > > Hi Hsin-Yi, > > > > On 1/12/22 16:58, Hsin-Yi Wang wrote: > > > > Can you help provide logs if we apply > > 5a7b95fb993ec399c8a685552aa6a8fc995c40bd but revert > > 8d35a2596164c1c9d34d4656fd42b445cd1e247f? > > > > Issue still exists. journalctl log attached in revert_8d.txt > > > > > > > after apply 5a7b95fb993ec399c8a685552aa6a8fc995c40bd > > > 1. delete SET_LATE_SYSTEM_SLEEP_PM_OPS(i2c_suspend_late, > > > i2c_resume_early) and function i2c_suspend_late() and > > > i2c_resume_early(). > > > > No issues. journalctl log attached in test1.txt > > > > > > > 2. delete SET_RUNTIME_PM_OPS(i2c_runtime_suspend, i2c_runtime_resume, > > > NULL) and function i2c_runtime_suspend() and i2c_runtime_resume(). > > > > Issue exists. journalctl log attached in test2.txt > > > Thanks for the testing. > Can you help us test if applying the following patch on top of > 5a7b95fb993ec399c8a685552aa6a8fc995c40bd works? Thanks > > diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c > index 9eb4009cb250..6b046012aa08 100644 > --- a/drivers/i2c/i2c-core-base.c > +++ b/drivers/i2c/i2c-core-base.c > @@ -484,7 +484,7 @@ static int i2c_resume_early(struct device *dev) > struct i2c_client *client = i2c_verify_client(dev); > int err; > > - if (!client) > + if (!client || dev_pm_skip_resume(dev)) > return 0; > > if (pm_runtime_status_suspended(&client->dev) && > @@ -502,7 +502,7 @@ static int i2c_suspend_late(struct device *dev) > struct i2c_client *client = i2c_verify_client(dev); > int err; > > - if (!client) > + if (!client || dev_pm_skip_suspend(dev)) > return 0; > > err = pm_generic_suspend_late(&client->dev); >