Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4613604ybb; Tue, 14 Apr 2020 10:40:34 -0700 (PDT) X-Google-Smtp-Source: APiQypI6T7yIsbFmLG5Pif2ywpCzH3cMLdWJ01mTZEPmNz1LT/UAAcZPGWWZieMIO4xFBU8B9obN X-Received: by 2002:a17:906:18a1:: with SMTP id c1mr1221795ejf.344.1586886034167; Tue, 14 Apr 2020 10:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586886034; cv=none; d=google.com; s=arc-20160816; b=aJgaFje3fJ26ZEUY+RPlCudApF2mZH8e7zKH8hbVdvWbHqLejk7+GcwmYotIcay33y z3YeWkTSR/FZdKUJOawgWUAwH/kmUzTT0E32F/9/brhlIz5i+1iAWTMQs9ootRdI3ViG zyC17JJySbehYYUgl+tMUWe0VoQ5luGFN/mMCYRtaFKu8Gr9peMfAAmVhyrsfkUx/MmB +WRZ4lUsVEnBBDTK4zopm1NjPeks28YBwRWu+tpHcB9sGsl2imYxnwd7lMp9vtU8S0u3 FvA0UO5bm2l+xZ/uHtndNkVNfvqG0iVPcanqNdoOgaM3x9640Km04caoz3voNfYlsugN djLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=/CMwSKjSNr5MBsMhcpYGaT73+vv7cUPjTm+FRYfaILs=; b=uaKuG+0Vw1sCt66eOqWr15IYjlSOPUu9XY9nEjo37HTwwRRIB9Op4PV0A2gDmx9wR4 e/cRI55vo4yMreVWR121G2snTWEezlPE1wTfIUk+uWegeoxwtKW3PrdJL8cg1VgGi73v Ez5AJ7YxCmBAZMin2ecA0cJCLlDrqTsChxPauO5WfRYOiw+bJwNDdDWxOp01+NO2sKVs MYfCagoSKbL50aGIosm49M4y/RHxGeD8oiMFDyYQ7T9kV1c1gN78PrPSDQyMygcZXQnB 6xkP2/DuWs8XTj6DmvFeyAAhUoppp+99EyhX97lZgek5UJ7vtYWQbg9zbiPN0iqJZFxE PfeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Ruql8tTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj19si7661497ejb.297.2020.04.14.10.40.10; Tue, 14 Apr 2020 10:40:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Ruql8tTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730598AbgDMOW2 (ORCPT + 99 others); Mon, 13 Apr 2020 10:22:28 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:11837 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730591AbgDMOW1 (ORCPT ); Mon, 13 Apr 2020 10:22:27 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586787746; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=/CMwSKjSNr5MBsMhcpYGaT73+vv7cUPjTm+FRYfaILs=; b=Ruql8tTsw0Q5m3BVeT4SkSr19dOphwLm5Q2/HSABQh5w2rGbHeArAM6b9aIvYbAs7IavTu7S 0odSn6L8WiFfUIZWXkCc49VuLPjaGxNJlI/xB6r4m4W4Cxc2g9o7nUga0+9Ly01WgLE8GjoH +Ujwci6FlJ09NlUbdVsWjiX+iAI= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e94759b.7f8e866eea08-smtp-out-n02; Mon, 13 Apr 2020 14:22:19 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 94B38C432C2; Mon, 13 Apr 2020 14:22:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.111.193.245] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak) by smtp.codeaurora.org (Postfix) with ESMTPSA id 13B76C433F2; Mon, 13 Apr 2020 14:22:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 13B76C433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org Subject: Re: [PATCH 02/21] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state To: Jun Nie Cc: Viresh Kumar , sboyd@kernel.org, Bjorn Andersson , agross@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Akash Asthana , linux-serial@vger.kernel.org, Matthias Kaehlcke References: <1586353607-32222-1-git-send-email-rnayak@codeaurora.org> <1586353607-32222-3-git-send-email-rnayak@codeaurora.org> <20200409174511.GS199755@google.com> From: Rajendra Nayak Message-ID: <13907000-e3b0-12d6-0768-fd8a7ab100d9@codeaurora.org> Date: Mon, 13 Apr 2020 19:52:11 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/2020 2:06 PM, Jun Nie wrote: >>> @@ -961,7 +962,7 @@ static void qcom_geni_serial_set_termios(struct uart_port *uport, >>> goto out_restart_rx; >>> >>> uport->uartclk = clk_rate; >>> - clk_set_rate(port->se.clk, clk_rate); >>> + dev_pm_opp_set_rate(uport->dev, clk_rate); > > Hi Rajendra, Hi Jun, > I see lowest rpmhpd_opp_low_svs opp is for 75MHz. It is a bit higher > for a serial. > I am just curious about this. Well these OPP tables are technically what we call as fmax tables, which means you can get the clock to a max of 75MHz at that perf level. You need to go to the next perf level if you want to go higher. That however does not mean that serial cannot run at clocks lower than 75Mhz. > I also want to confirm that the rpmhpd_opp_low_svs voltage restriction > is for serial > controller, not for clock controller? Because I see there is similar > restriction to clock > controller on another platform, the restriction is for branch clock, > not leaf clock that > consumer device will get. yes, its a serial controller restriction and not of the clock provider. On your note on the branch clock vs leaf clock I am not sure I understand the point you are making. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation