From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A91CC433F5 for ; Mon, 25 Oct 2021 21:35:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 10EBF6008E for ; Mon, 25 Oct 2021 21:35:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233952AbhJYViB (ORCPT ); Mon, 25 Oct 2021 17:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233805AbhJYViA (ORCPT ); Mon, 25 Oct 2021 17:38:00 -0400 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3098AC061745 for ; Mon, 25 Oct 2021 14:35:38 -0700 (PDT) Received: by mail-pf1-x449.google.com with SMTP id 134-20020a62198c000000b0047bf0981003so2163900pfz.4 for ; Mon, 25 Oct 2021 14:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=TKRBjHsCjPIxlOUEzR0Pb/eiKAPe4iD4OTxtg9Qg2Kk=; b=gW0LmKm+u4QbAACyTrJHmOYLnfYNWriZsR/wK2+bqguI3qJ/PBaVOk+MKVpyE5OQHL 3D+mq+0xwDGGryFNTSu9kjwrMZ+jZxTjlO1mGlHt4buLbs++7/Iz8MwYiKPlIinFBp78 BrvGlHHRsmjI2EX60hcP5GX9l9J2VmI7CKcT70rglqqDC+fRhqs1h6b+dewxMI5YVx3A D4Vq9fYTbvDmDgnyjgEm05ywPWoIcALKJHdwrlgfxFVhZC3of8vulCcgjIEAJ7Zg8suA /dxG02tAT+Vzs2UXveta6nqOq50Yv/3e6gl/cFHF9IL7QxgML/XHaxV18HLOFrWJS8xB fh/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=TKRBjHsCjPIxlOUEzR0Pb/eiKAPe4iD4OTxtg9Qg2Kk=; b=GBg4wSastuITz32CGHNJrKl8K0nzJCGAYYfJOlwHLO6p+bNxAL7iDaL3MSwwMwKnOc sKLOTBncJosIVeFDmmIjiRf40xtI//yQlxU07LBdf0ZGPllS23MfUtmnueELbZrX3+o7 yREmQTm72xIjIN1cQqVcVMYyF12eFhBG9tFjcs44mY/ps3Bv9Hb8U2wHuyENXguN5Qex rbDaaD7jjwDfJPR4/KmvgOTaHkRpRUBk7Npg2JHf+/+pYEhHVGmWx8gq3uDWXCONy87l T7s2UA6/9AU8+f6QD2OZ6hk4+FCGjWvrF4/cfv6OpeUsI6qoSjmypLViQYGaXCOGB3i8 Jqtg== X-Gm-Message-State: AOAM532K5+Ci2/D7lqNiv4KmY/KEjgvHII5JcdC9o2RCQH6I/Syxd23v 2GZR7K5zkgYKU8eClOAAT0nPkc/rYgm8 X-Google-Smtp-Source: ABdhPJxylj23bhbDXfOwywyglJGgQuaQVa+8V8I4Mo4MBJZH7vWobZ4mPT6W37GoD3U/xaqpW8+LVjazfcWn X-Received: from rajat2.mtv.corp.google.com ([2620:15c:202:201:5478:3d15:6893:1074]) (user=rajatja job=sendgmr) by 2002:a17:90b:3793:: with SMTP id mz19mr579625pjb.6.1635197737743; Mon, 25 Oct 2021 14:35:37 -0700 (PDT) Date: Mon, 25 Oct 2021 14:35:29 -0700 In-Reply-To: <20211025213532.2349161-1-rajatja@google.com> Message-Id: <20211025213532.2349161-2-rajatja@google.com> Mime-Version: 1.0 References: <20211025213532.2349161-1-rajatja@google.com> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [PATCH v2 1/3] i2c: designware: Enable async suspend / resume of designware devices From: Rajat Jain To: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dtor@google.com Cc: Rajat Jain , rajatxjain@gmail.com, dbasehore@chromium.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Mark the designware devices for asynchronous suspend. With this, the resume for designware devices does not get stuck behind other unrelated devices (e.g. intel_backlight that takes hundreds of ms to resume, waiting for its parent devices). Signed-off-by: Rajat Jain Acked-by: Jarkko Nikula Tested-by: Jarkko Nikula --- v2: Add Jarkko's ack / tested by drivers/i2c/busses/i2c-designware-platdrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 21113665ddea..2bd81abc86f6 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -293,6 +293,8 @@ static int dw_i2c_plat_probe(struct platform_device *pdev) DPM_FLAG_MAY_SKIP_RESUME); } + device_enable_async_suspend(&pdev->dev); + /* The code below assumes runtime PM to be disabled. */ WARN_ON(pm_runtime_enabled(&pdev->dev)); -- 2.33.0.1079.g6e70778dc9-goog