Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4202870rwd; Tue, 30 May 2023 01:48:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jC1/Xrb6K1caq1PWI3WFk7alm3OlBJN7JL+wr1Mtjm+o/wOsLCJ3DwC7bWszfqBSQUO1K X-Received: by 2002:a05:6a00:1990:b0:634:7ba3:d142 with SMTP id d16-20020a056a00199000b006347ba3d142mr1672148pfl.10.1685436539261; Tue, 30 May 2023 01:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685436539; cv=none; d=google.com; s=arc-20160816; b=nUdIqErr/x9TtlEI+n4pRcxikXUv9/781OAgfwtE0W2uk7Nic7uF23CgQBTGFTw3Qx 3gXLSg5T3Es8gDGiLq/399juwA1lrkCOmZiJU1nX54y++gHb/f3aHo0NQaFF8NhdBPSD JhK4ONSGKO6WFqL04Dmv4eqri4laU5LY+hVlIf8Xhw5kOqKpVqM+8C+lF+GvFPgrAv4f i7/QgbRAMZPPcCTeW/yrUHYvzyGhcIdPGtQXI4xHRk7eLuE1AdmbsaR+est1BSlCTFiU 0HMmoxtWHOrKibdWg0b9haOLetSbHWEL5o6LiLhzUGwGzbKSphqp0OT+wa/q4738x0wx gKnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MlyXGb9jqvOLdVPeetodiQ+75Shx/QKp7it+cuOc2qU=; b=N4ddofZ9ScL/nN9xuu9xLmk6VMZ/Tb1NCeqiAujJctaYQseJefCDbYFWJYSNZrgSIR 6rYVgUxxK+beaVnESfG+SnHn9vflE2K4RvHJ80c/V2ynnDLJNOb+n6wowFcl3bZki2Q9 dUKtMXRTSRBLTDlcBdBJAy79cMsVfTwhsxJDjSyOmik6Pksbwlz5cM3P/BRs5Ywk3ahb 6d6+ZwU4A+QRX8wlLvl62Obko5T8uaolng9Y2xe9GJ1y9pf9UhuOGZSPMQAV3nmy6+tg JBxkTkVlatD6kvpDA4+wjOOYZm06+GeTEJtKxGMAtfyB5X0KO/mlmDFLrOEbKrvsSF1I JWhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d8ulIDjJ; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a6566d4000000b0051f179c48e7si5344483pgw.866.2023.05.30.01.48.45; Tue, 30 May 2023 01:48:59 -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=@intel.com header.s=Intel header.b=d8ulIDjJ; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230324AbjE3I0z (ORCPT + 99 others); Tue, 30 May 2023 04:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbjE3I0w (ORCPT ); Tue, 30 May 2023 04:26:52 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86720F1; Tue, 30 May 2023 01:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685435203; x=1716971203; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Nb6ku5hLPe/6ITYKwhYehWWwfKCYlCrGiz48NGA7ZLk=; b=d8ulIDjJtiQy2xHcAY9PZqrXtpffEx4W2ObEP1gFN5vTa9XIXV4zk63x Oj/IO7Bf1JILIv8Rx1MagA2AKcrDcfnbI79kFENcfYyezCYzmvhjqW1yU NywcoTqVCgGZWHlDs96XF+rD0NDjuiDTGDgtkfADcj/diBsKwxG2seKzP 4541Jgb0NQDtZTAkyCIGLtPwdV9WI9/JT49SuZJIsubo+A5+qUABAGbo9 ZLzgoNXzCj4SjOTGSL+WqfPDOxPxagpqdjVCDAaXIBCUR1Uz2Kt9aKmsp unz7eRs2y1vM3zUEMsOAs7Sfy9JZEuyd/Ti2prIvNaJVfvCzr1ScY6/D3 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="344353041" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="344353041" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 01:26:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="850673533" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="850673533" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 30 May 2023 01:26:40 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 30 May 2023 11:26:39 +0300 Date: Tue, 30 May 2023 11:26:39 +0300 From: Heikki Krogerus To: Roger Quadros Cc: gregkh@linuxfoundation.org, r-gunasekaran@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: tps6598x: Fix broken polling mode after system suspend/resume Message-ID: References: <20230530065926.6161-1-rogerq@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530065926.6161-1-rogerq@kernel.org> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 30, 2023 at 09:59:26AM +0300, Roger Quadros wrote: > During system resume we need to resume the polling workqueue > if client->irq is not set else polling will no longer work. > > Fixes: 0d6a119cecd7 ("usb: typec: tps6598x: Add support for polling interrupts status") > Signed-off-by: Roger Quadros Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tipd/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c > index 438cc40660a1..603dbd44deba 100644 > --- a/drivers/usb/typec/tipd/core.c > +++ b/drivers/usb/typec/tipd/core.c > @@ -920,7 +920,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev) > enable_irq(client->irq); > } > > - if (client->irq) > + if (!client->irq) > queue_delayed_work(system_power_efficient_wq, &tps->wq_poll, > msecs_to_jiffies(POLL_INTERVAL)); > > -- > 2.34.1 -- heikki