Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1272175rwp; Thu, 13 Jul 2023 08:31:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7zI24vQUk8BE3aHuBtjUrIpB49cvVdgBKH/h/LeHVigyz/FiaDD/Jl4bvouqiYw/Lm7N/ X-Received: by 2002:a05:6a20:3d5:b0:131:44d2:cea3 with SMTP id 21-20020a056a2003d500b0013144d2cea3mr1079153pzu.57.1689262278488; Thu, 13 Jul 2023 08:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689262278; cv=none; d=google.com; s=arc-20160816; b=BuTwR3dV0p1nxZiFt8RLwoGI8rtkoPEMu3PxcSSKgyl9y/jsFuwULAgYUhHTP8vutA Krque49DowhnoGwsjLkVmAmNgOIvVCJcYpneZEDz+w7O8784MqZY7kJSVTms1xLe9gRn BkLc3rQ3tlpLLRyZHH7ooiVLjRUmNCoeqVMYAiBPX7y9AO7tOXAj9z5ETvevEt+E41cP xmntDDFCxGDFeX8EWvP3S9oj40pcho4PF7airZpBwCzeOS9UEsDczQ2Et7W5YhyM7GP/ WgLExaHx9QJME+QJL5GeF8IdLGROk4G4SoDNQr1QM3fYdbPEijLD/gNpa+Y+lQ3zMbR+ Jtug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+kz9RNtiZnbE/vaWytZMFuxDW5GmLROKCDNLGiN9zbI=; fh=5d9ovBud5AIGYSPsmlyCVoVYGcAKubXKMnoSwZfapRE=; b=r/ScR2Ii64BXGNT1yUenSGjqYrtQSYOS0BkdUonrQlqX7rASjjvNS56w39KmkRtNfE DpJKqRbFr8Z5g6kZfLHXMcj6BwCTWM0O493reDGrUNmu9ziXuzfKCh/XYY9kuZwglgJy PlwosC0z9JE7g5VhpQ1Hx1cwivVcF6d+kpJjIC+yOmEqSnEUY+sYlVtjfcryKoMlvZCT ryyGrDcdYL+5PJXBhNVauLiDlrOE8/Siyz9/SdUMoRIGD+g0DdJdULx35f3hCY+NxJH1 cbMi2eBCbX10wEGme10eyv3ofqCQUiUDuVjHdgZd0j+c9n+wR9Wy4P3zV5CerZFW0145 AI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NelBhBDY; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a656651000000b0055b950821basi5030127pgv.181.2023.07.13.08.31.05; Thu, 13 Jul 2023 08:31:18 -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=@kernel.org header.s=k20201202 header.b=NelBhBDY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232535AbjGMPBo (ORCPT + 99 others); Thu, 13 Jul 2023 11:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232422AbjGMPB1 (ORCPT ); Thu, 13 Jul 2023 11:01:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DDCF2706; Thu, 13 Jul 2023 08:01:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D247618C5; Thu, 13 Jul 2023 15:01:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99DE6C433C9; Thu, 13 Jul 2023 15:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689260484; bh=sfmiO7castT7ell5jqLJUhNTWtiJ35JhwDwk7KkRsoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NelBhBDYU1VCxkGX+R4lWxNyD6GFU7dn8CYivAJvkjrp/4IbkoEXJT1Izk7xFLer6 XWQKXcUa4TxULl3Asd88+ui4GPlflFcszX8oc/7YRkqc6I+YfVmje20ShgrRI36udW 4thM3nbKxciLFpFegF9ryWOETfAwqzzLLKvwgUiZr0O+UmRXIGikFkSc/t0XYKFUjZ ZDvn2gwJJy2JikDj4e84VBfyEoKwQXTk/5dXe7cO+YbIeg8bxs8SYLpsq9IPPE/H9K CZ9j8s7Y7yoEw/JGVhqpecmvDo1vWOwe/HMZK7yNbyduZUoisVPPdQwEC9auC2awe0 jPbmfm79S692w== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qJxor-0007vo-0y; Thu, 13 Jul 2023 17:01:25 +0200 From: Johan Hovold To: "Rafael J. Wysocki" , Greg Kroah-Hartman Cc: Pavel Machek , Len Brown , Andy Gross , Bjorn Andersson , Konrad Dybcio , Jiri Slaby , Tony Lindgren , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Matthias Kaehlcke , Stephen Boyd Subject: [PATCH 3/3] serial: qcom-geni: drop bogus runtime pm state update Date: Thu, 13 Jul 2023 16:57:41 +0200 Message-ID: <20230713145741.30390-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230713145741.30390-1-johan+linaro@kernel.org> References: <20230713145741.30390-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 The runtime PM state should not be changed by drivers that do not implement runtime PM even if it happens to work around a bug in PM core. With the wake irq arming now fixed, drop the bogus runtime PM state update which left the device in active state (and could potentially prevent a parent device from suspending). Fixes: f3974413cf02 ("tty: serial: qcom_geni_serial: Wakeup IRQ cleanup") Cc: stable@vger.kernel.org # 5.6 Cc: Matthias Kaehlcke Cc: Stephen Boyd Signed-off-by: Johan Hovold --- drivers/tty/serial/qcom_geni_serial.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 88ed5bbe25a8..b825b05e6137 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1681,13 +1681,6 @@ static int qcom_geni_serial_probe(struct platform_device *pdev) if (ret) return ret; - /* - * Set pm_runtime status as ACTIVE so that wakeup_irq gets - * enabled/disabled from dev_pm_arm_wake_irq during system - * suspend/resume respectively. - */ - pm_runtime_set_active(&pdev->dev); - if (port->wakeup_irq > 0) { device_init_wakeup(&pdev->dev, true); ret = dev_pm_set_dedicated_wake_irq(&pdev->dev, -- 2.41.0