Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2593773rwp; Fri, 14 Jul 2023 08:22:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzYRFSdAL2xjqZ4nQWEnL8KfCGOrLKygqioaX41lJO3bmrYEKt9YpJ5VGBgpHO3uD+UNDu X-Received: by 2002:aa7:cd71:0:b0:51e:2664:e6e7 with SMTP id ca17-20020aa7cd71000000b0051e2664e6e7mr4520817edb.38.1689348141596; Fri, 14 Jul 2023 08:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689348141; cv=none; d=google.com; s=arc-20160816; b=mn3BYVjp8ktISGLKacgYWG1jw0k7MLT1OVQZz5lX/0aTgqPdlDxAwAiwp/rGdP3Tdt mWlM+alcrhl6kV/SXcKPU3v9ac7mz4avyIrH8TlUVZEmA+5Lqy0gtqeqsjacDDwgAo3f wCUA6T3RkUsEXJsfy9yMdzQJkxkFgAhgBOQQjKcdNqwd4Fu5eFtcBwR7KUlZDhH4+ZfH cQPK0cPPCsOZFzlP5D6yebfnYM9WBgArDW9enc1fuzzf1uEM09qslTEuR5lL1wywk735 nhgfljrfZO8Hbm8uSgYUoK40EZVmS0xnh9WjIGHIMcJU56ZCmnhHYmxQnNzvpZD2tZAv H6pQ== 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=jf63Tcmb9Lt2dCHHYrML9exXuE54ewXFxoSh3I5qynI=; fh=DTNcGImw6ZUPe7W61XiVXUQH63wDilJwWNVAfklaEbE=; b=iuJeAT2G7V2Tka17qQwnWyQJlwq62cQICZOQ5VXfivXPqvinkkt8yN1rT/qRCNq5ST 05dtsyY7pa8VjoZZdVvibJP4I7pnbg27TFJv/lzKkxH1WBZrLRyDRY5g8nIY5bUzkISw 4mECt7LFZ3OXG9xKuUIn+2Ekc0YAN/DYMm/IEliVDZ/zT65+/mqo05qk7Vtz4CwmezjK JaJZ4BZ1mr9n+Kudf/DlueIBlY+595iZvdCR1ywBKJ2f+jTGZKeI6VwjjmMRMbYc5XUl RvP0Clop+ScLM/AyszfllJHz5HKKWJY7uzPU/lvDd7mvMCUgT7Fsz3hCWMb93HxyQly/ SvaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RcszFiUE; 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 n17-20020aa7c451000000b0051dddbd08cdsi8969800edr.356.2023.07.14.08.21.57; Fri, 14 Jul 2023 08:22:21 -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=RcszFiUE; 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 S236282AbjGNPIH (ORCPT + 99 others); Fri, 14 Jul 2023 11:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234425AbjGNPIG (ORCPT ); Fri, 14 Jul 2023 11:08:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6086F2702; Fri, 14 Jul 2023 08:08:05 -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 F349761D48; Fri, 14 Jul 2023 15:08:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 591D0C433C7; Fri, 14 Jul 2023 15:08:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689347284; bh=ocPhOzFijupIUUD2Bp7JtiNo8d0/cn/ky2mmjm36hgQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RcszFiUEGzq3FlUItGxNuvKWEHBh1AfacWryEi7hRHmCJ4Fd51i5qSG18fpY+OoNM as8q7Ii0vpGch75W8Tqc5213EyPArf+Um+Ic3cT47a/lfbyL7rwZboh/m/Yyevdc7A erYd1dUsqwryTaIohi60la+dY8EVLXwvJTlf3/tDcE3hlwdSoeKM3xKVKxVxprLoVz Vwh5sXKBmLQuRWFmOgtcaXx7CStoALoolBrdO1aYmDhVU++VNpmTWxtEmLUQ4ZsjAW Yf+8SgCp1dMQb64QanX1u9q8bKDcPQWQBhR/D62RAHmdYAqsuc1naL2IWaDyQE9lqT S+YTUzUN7dfpA== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qKKOr-0004qL-0l; Fri, 14 Jul 2023 17:08:05 +0200 Date: Fri, 14 Jul 2023 17:08:05 +0200 From: Johan Hovold To: Konrad Dybcio Cc: Johan Hovold , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Rajendra Nayak , Matthias Kaehlcke Subject: Re: [PATCH 1/2] serial: qcom-geni: fix opp vote on shutdown Message-ID: References: <20230714130214.14552-1-johan+linaro@kernel.org> <20230714130214.14552-2-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Fri, Jul 14, 2023 at 04:29:08PM +0200, Konrad Dybcio wrote: > On 14.07.2023 15:02, Johan Hovold wrote: > > The operating-performance-point vote needs to be dropped when shutting > > down the port to avoid wasting power by keeping resources like power > > domains in an unnecessarily high performance state (e.g. when a UART > > connected Bluetooth controller is not in use). > > > > Fixes: a5819b548af0 ("tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state") > > Cc: stable@vger.kernel.org # 5.9 > > Cc: Rajendra Nayak > > Cc: Matthias Kaehlcke > > Signed-off-by: Johan Hovold > > --- > I don't know a whole lot about this subsystem, but the PM call has > a pointer to uport which already contains this clock rate.. Is it > zeroed out by the core before we reach it, which would prevent us > from reusing it? No, but this driver has other issues and I couldn't be arsed fixing them before addressing this bug. Specifically that uartclk variable can currently be set by userspace... I'll fix that up next week. Johan