Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp371205ybb; Fri, 10 Apr 2020 01:37:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLzE967FJNVmFFPZJmF4wZ9qR+bJ9J7T9grQ4cm0v268rsuyMU6y4jdcjNR2q8K4wYPLBRo X-Received: by 2002:a37:690:: with SMTP id 138mr3053735qkg.414.1586507859630; Fri, 10 Apr 2020 01:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586507859; cv=none; d=google.com; s=arc-20160816; b=QtwL20ksCzCSs4PK8t4NlmBe9fdjUs6740QBCf49Dj8TBXRPHpQGniKeVWAlvjsaCm stj6brMIJtlT/guNuWmY8yxwoho2ziMSmjwIo4RqaqRUnALook8WV2rB2lw4cIws/6IY E1nRlkS8s0H6VMIgqHMvmtkUxLburovB13sf/oK9iT5LmRurllFZ4KNXL4z/+xRq/qeT IZy/wAqTAesmkagLEK++DJ1SmhZDdk2kTXNM0XrQchoe0B9rcvpR3UMIoPtEe//U1kRm 4d8jC9trUK0B/vYM6MtncoS0503CkpXdINqDuWtL/OnvQ4rNl0zFG8wHUs8KGOaBNWBn QOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v3PdiAI8TBZ0N3tMXe+y1F2ge/27MztcbSpV/5KcvB8=; b=hKoblQPBAobH1gsg98wP2M21nbpAxSSUthpUaFNm1CvuraqHA4+1xJoHX2Uy6hdGhh 3pj4QcuN2HH6yCdGseQTX+EhApUXwqsKxOxcKCPutN5/R6IQROwzhl8Psu0Ol3XMmH7M RsUIUJOJC/aIitMREIiSfDSAYEFAuGqohTYYXWLU42nbTl4FRFjwb+cZ2gA1LF2whw// FK5JoEuYseAkSECBO4WDS8ThPHKgB2XrNr4qQ+tblRIAsxcvfdDU/AD7CfjubCG4NM8d vf8C5B5GfFOKGIvWL/8VI9xObt4tWoKwvl3atTvxWViRl/O90ih+/pEsujLXUycwaoZS Z0wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RbaF5aX7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 198si1023119qkl.42.2020.04.10.01.37.22; Fri, 10 Apr 2020 01:37:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RbaF5aX7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726111AbgDJIgP (ORCPT + 99 others); Fri, 10 Apr 2020 04:36:15 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:33574 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgDJIgP (ORCPT ); Fri, 10 Apr 2020 04:36:15 -0400 Received: by mail-il1-f196.google.com with SMTP id d2so838205ilc.0 for ; Fri, 10 Apr 2020 01:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v3PdiAI8TBZ0N3tMXe+y1F2ge/27MztcbSpV/5KcvB8=; b=RbaF5aX7JxR9ZrqKBrEjNGP11OAY8n8lRcyXjGJYm7/iO135dM0ZZVVQUgQ4efd0UG sUTveU/iBU3bYQrld5SN01eadRlX6zBTO4mgbn3sqJzBE7c13XcjK6zjVL6UHYubPHky kH1BFPZd30qg5hkCMx3PP8tp+a7FLB4TbRgRptXtai14kbWMgZdNJXJkdCcxvb+YIj9e I29vqbUBgn4o8W9GBsE3HuLluyRlgkZdTg4kJLAL+fqbzet0cBc9cteAHC7J8xdK49Nr gFEMPR+O9DQTqi6rW5vXPo3YtKTfaRPmJZy1+fsZomJGplw05mHBlq/GKzbR0J9BDZVe ZdNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v3PdiAI8TBZ0N3tMXe+y1F2ge/27MztcbSpV/5KcvB8=; b=RnxsmxpjnEV+txLomZe1xqKAEtOfV30eq8kKPUzfA7TXGFZuNzQVQFQSOw2Zhcr9KA dR2W0vsMZ5mX6Y8SMvC289k0NOtSeVdDydEkO5mZ9xIAIcspsn4sBuVO+EJtEZyywz2a nsRIfcdUwJrSioYeYFZt2pDk5lR4fFEvOKsTPv3n1hUBmFBc1Wr6rVevQX/ifpk/KwT+ Id4yLfPiSpLI3nM7Rx+uQOJLUo7yzFWk9TGyhu3dpMuyprGwH+aUNQ1ZyGXzov0dTx/b +7tGhfek4/1Ognsxc/LGhYkNkgIEWzvqTvg+KVj7Uhkf1AoAt3WgGQpLF5vXmOrz/6wc +e6w== X-Gm-Message-State: AGi0PubFFB5yozdnFptLuCD5nb/0lFBD021v1dmAg2+VaMAAXR/KcTy3 MjoYsqKf28QGPtLwalybcEd5c/yGn+xWQig9TqbJcg== X-Received: by 2002:a92:d402:: with SMTP id q2mr4101222ilm.172.1586507774870; Fri, 10 Apr 2020 01:36:14 -0700 (PDT) MIME-Version: 1.0 References: <1586353607-32222-1-git-send-email-rnayak@codeaurora.org> <1586353607-32222-3-git-send-email-rnayak@codeaurora.org> <20200409174511.GS199755@google.com> In-Reply-To: <20200409174511.GS199755@google.com> From: Jun Nie Date: Fri, 10 Apr 2020 16:36:03 +0800 Message-ID: Subject: Re: [PATCH 02/21] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state To: Rajendra Nayak 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > @@ -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, 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. 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. Jun