Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3448438rwp; Sat, 15 Jul 2023 02:59:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGSiuGDN3RN+nYOqrGxHt12tknpSOP0eeIVzAtjcwKwGlr3oWuBMdyvoK789Rh2EU6CFjvQ X-Received: by 2002:a17:907:a412:b0:993:da5f:5a9b with SMTP id sg18-20020a170907a41200b00993da5f5a9bmr6097174ejc.8.1689415184812; Sat, 15 Jul 2023 02:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689415184; cv=none; d=google.com; s=arc-20160816; b=hJ0FfgWWnbRK3Rtx6rx5BwzVE1cu1aDm5q8X25COndsDP2NtT/bhZlolYNob44UdSH kAacLREfPwYA6h94Mom5dGuRamfcO2596xXPC6EDrCSRzsg+N2Rf54KcVaq5MEp9EeEm neDw2o6LBX6o9sY5lsh4xMHffmcKN0kNm8oGbNyKdnBaXyosy3ZdbYLKI1gHAckoW9Sq mFmSzhedD9HEBz/oebDInyTupbWYRALFKkoJ4bBITQj2z9ghNubt4hfyxaB9/Q9nELaw NA0lFUsU2oxQ7X17FuH8LpHpLS2cn1mtDJ6ivCxbQwa9sER+XU1bcRraLeUq9mIlpp76 pSzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uU8z7MQTAseycVhm4xqzUABfIdWki0oWoHTG+Qvxumg=; fh=Ghi4tC3ytWEF9VAZnCsTwI28awFGqJ/D+y+WgJMaLm8=; b=XqIi7z1YRs7qmFovy7/4y1nNB6gL35KqxBRLeQolfcn0F4U2Sxr2XsANuSfvIq5sym QK5J/jk8o3Dca0J9anow4SrNCokxYSNpI0XxO2rCZIs0R+OOQHA899K19EbHXSMF0mSC bSGhj05pydaDj9aoxcHtHQqdEn4V55CDyfu0npbiir1DrvpG3RbWFUEJokGkxMrLTSTL xJ2Jt1uEFeQM9ooWbqfbVHyTXS8NOnodw7dkLCOir980ykHpgtx8xm12nQz89vx143Qk VqMXnqMtx0ZvshaojNFyY3dQ9Nijmc7+qNtgsoIl/eOVf1ginDnH/1W2U3DSuXI2TN2A iEOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="E/QxtJJg"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020aa7c306000000b0051dd2c07091si2565373edq.161.2023.07.15.02.59.19; Sat, 15 Jul 2023 02:59:44 -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=@linaro.org header.s=google header.b="E/QxtJJg"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbjGOJUd (ORCPT + 99 others); Sat, 15 Jul 2023 05:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjGOJUY (ORCPT ); Sat, 15 Jul 2023 05:20:24 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EBA3A97 for ; Sat, 15 Jul 2023 02:19:49 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b935316214so28391fa.1 for ; Sat, 15 Jul 2023 02:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689412782; x=1692004782; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uU8z7MQTAseycVhm4xqzUABfIdWki0oWoHTG+Qvxumg=; b=E/QxtJJg7rHSK74wng1uBblyEJAvHyi9rIbOgRvmnrOqdTePkkIc2d2L1EsBjf+7/w szSVY+/9ELsj/2AW7y0eBokhMRI6+cyyLOIcrNNRy9G4Y6ysojkjK05kfoWIqYilKlgU EEjI4dtteU2DbNPNWQ47hWuu7jAVoaoR1PN5SfXGBKMzpie0KKFwsScCi2kf9Cd/tFRo CNGiQ0rWp5O2EBVdN+jfPBwJpzhAtT2MMxcsiGZ39PMQ0SyqUXSJh4/gk/7Gyl8DUtFF JucZWGefkiibHvhP6VY+B2C0LxJj7uOvPTlTKa2lhyzLhNIw3fZ1I8/sbGg84wA0SunG mokQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412782; x=1692004782; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uU8z7MQTAseycVhm4xqzUABfIdWki0oWoHTG+Qvxumg=; b=d0lCWHyV45ftp9HvdwaCBE6yMGI/9tvOoIn+09E4dZYRB5EnXG3b/ijpRTTC9Bkaqm /kT12uArs3H7BzFR9DqjkdcO4uQBmSalMOlfEwFZumupHCcrOq68fdkFO5blEw6nBu+J HdfI9SZIkcW9pfyKy+dJYuK/AZdAE49Uod0JbW92SEt4wsafypdOc1Fv3YYyuGFHr0sg RNXwQnft3NeHcfjCzrdGPNV/98vq0WF18xzcq1G4y65FyjFxMnAklZFt2E0wpfi7XYQB MTDMtD1iQpcta7axhFCoGC7hTfjyz9nnAKtwxOwlRMz3WItGCbpSV8lZFzvLWvyd/8HL UAIw== X-Gm-Message-State: ABy/qLZLLbeRzDVYwFqm3fOgcYQ2MMnoBG3uqcJ91BcaVnnLFtB4t0Q7 sjFvse965aWec6Ma/+HucUq/cw== X-Received: by 2002:a2e:9f46:0:b0:2b7:18ff:946e with SMTP id v6-20020a2e9f46000000b002b718ff946emr1564213ljk.25.1689412781998; Sat, 15 Jul 2023 02:19:41 -0700 (PDT) Received: from [192.168.1.101] (abxi167.neoplus.adsl.tpnet.pl. [83.9.2.167]) by smtp.gmail.com with ESMTPSA id z13-20020a2e9b8d000000b002b70206cd45sm2391907lji.90.2023.07.15.02.19.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jul 2023 02:19:41 -0700 (PDT) Message-ID: Date: Sat, 15 Jul 2023 11:19:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] serial: qcom-geni: fix opp vote on shutdown Content-Language: en-US To: Johan Hovold 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 References: <20230714130214.14552-1-johan+linaro@kernel.org> <20230714130214.14552-2-johan+linaro@kernel.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 14.07.2023 17:08, Johan Hovold wrote: > 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. OK sounds good Acked-by: Konrad Dybcio Konrad > > Johan