Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3489899ybt; Tue, 23 Jun 2020 03:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJnXWv7wCf5YN+Vz1i0OD2V//9ZorOiNraQWg1oM4jrd6im7nESiEUrRTljNHAzhR42Qnn X-Received: by 2002:a17:907:2069:: with SMTP id qp9mr14145622ejb.160.1592908916965; Tue, 23 Jun 2020 03:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592908916; cv=none; d=google.com; s=arc-20160816; b=uti1tyHPknWn8X57/D2GwXV/gueJ5aJrh7z7buvF4ch3wEW6yWL2RNUNbYwYLeKaya ljYUyJiVnNBKh2rtJCRk+EJKl9t5EF2VyTiEcTFJCvnPDvRxWGLuhxMzRIElZx6qtV6T uhzaOpaNncSl6V3rg7kNAeLAsbF6PvCSYRVO7wx6zgPTFDwiMYP9l28arX2H8v/nWRMh XnHF4sfKV5gWSQZx/OXLIw0EYMEfSHCuz6PiBAGipwea5cKm7HkvMcJJveZ+UtxKvYOO 3TWegxefLGAl0ReHCaEEeAbbaVwYvG36FYogGcLZgv6gnrDPD2/1YK/pbHcOaF0dsH7a 0KMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=esn7X43G7mNsMRJd3b7wtdHbdJWoKncwWeZZkt7o5Ws=; b=bW3p+6LBdeiaPpoG+xrlULSyJU7OmWWNXsVaHIksQMzdiQDed2cZ5cSFdI/q5O3wvk cgJBTfbIbCxWmbfUs60ixCT3SvJNS3sFKZgjWu+nvplnxZ7YLdki6TpF8revWIrGT1HX KB3OHdGimQ2IqkkTucRibR7bE2bdPKy3Btbaws7Dma8YTaAJYEBLvXjsGYLjVCdz15ry uNCgEq61sI05EX/ZGxrIOZBThzlH+7AD3sKkO7mzZp2tB1vWOYlhhrs8PPzZoeoxwQLA kam/SvZtU3EYlOPCJXIK56whe2yiUr3JSPpGUPR+clDdXL5yB9o5RDZO2RH52J8DhTsP kliw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nZ40RikW; spf=pass (google.com: 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 cf23si10992313ejb.540.2020.06.23.03.41.33; Tue, 23 Jun 2020 03:41:56 -0700 (PDT) Received-SPF: pass (google.com: 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=nZ40RikW; spf=pass (google.com: 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 S1732289AbgFWKjd (ORCPT + 99 others); Tue, 23 Jun 2020 06:39:33 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:27427 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732282AbgFWKjc (ORCPT ); Tue, 23 Jun 2020 06:39:32 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592908772; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=esn7X43G7mNsMRJd3b7wtdHbdJWoKncwWeZZkt7o5Ws=; b=nZ40RikWfQvpTPm0BApvyb/pKZttL8/xPEXLj9VaLHBBCmC2JQRGiicHQlVp5j8UjShMQpek 3bYLp4fHMzuHVyK1/EpGX/NUfSlNLq7ffvlQZgWQ5zTXhBxL2MxZHPITT9uIpq9fFW7ikFqu wwuxPAItZRByyYWezuIXOsBFiP8= X-Mailgun-Sending-Ip: 104.130.122.29 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 smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ef1dbd2567385e8e70b7eba (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 23 Jun 2020 10:39:14 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C5299C43391; Tue, 23 Jun 2020 10:39:13 +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 akashast-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akashast) by smtp.codeaurora.org (Postfix) with ESMTPSA id 32B24C433C6; Tue, 23 Jun 2020 10:39:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 32B24C433C6 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=akashast@codeaurora.org From: Akash Asthana To: gregkh@linuxfoundation.org, agross@kernel.org, bjorn.andersson@linaro.org, wsa@the-dreams.de, broonie@kernel.org Cc: linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, swboyd@chromium.org, mgautam@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, mka@chromium.org, dianders@chromium.org, evgreen@codeaurora.org, linux-kernel@vger.kernel.org, Akash Asthana Subject: [PATCH V8 0/8] Add interconnect support to QSPI and QUP drivers Date: Tue, 23 Jun 2020 16:08:49 +0530 Message-Id: <1592908737-7068-1-git-send-email-akashast@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series is based on tag "next-20200622" of linux-next tree. High level design: - QUP wrapper/common driver. Vote for QUP core on behalf of earlycon from probe. Remove BW vote during earlycon exit call - SERIAL driver. Vote only for CPU/CORE path because driver is in FIFO mode only Vote/unvote from qcom_geni_serial_pm func. Bump up the CPU vote from set_termios call based on real time need - I2C driver. Vote for CORE/CPU/DDR path Vote/unvote from runtime resume/suspend callback As bus speed for I2C is fixed from probe itself no need for bump up. - SPI QUP driver. Vote only for CPU/CORE path because driver is in FIFO mode only Vote/unvote from runtime resume/suspend callback Bump up CPU vote based on real time need per transfer. - QSPI driver. Vote only for CPU path Vote/unvote from runtime resume/suspend callback Bump up CPU vote based on real time need per transfer. Changes in V2: - Add devm_of_icc_get() API interconnect core. - Add ICC support to common driver to fix earlyconsole crash. Changes in V3: - Define common ICC APIs in geni-se driver and use it across geni based I2C,SPI and UART driver. Changes in V4: - Add a patch to ICC core to scale peak requirement as twice of average if it is not mentioned explicilty. Changes in V5: - As per Georgi's suggestion removed patch from ICC core for assuming peak_bw as twice of average when it's not mentioned, instead assume it equall to avg_bw and keep this assumption in ICC client itself. - As per Matthias suggestion use enum for GENI QUP ICC paths. Changes in V6: - No Major change Changes in V7: - As per Matthias's comment removed usage of peak_bw variable because we don't have explicit peak requirement, we were voting peak = avg and this can be tracked using single variable for avg bw. - As per Matthias's comment improved print log. Changes in V8: - Add [PATCH V8 5/8] to factor out common code for clock setting. - Combine ICC voting and clock setting to single API. [PATCH V8 6/8] - Add ICC voting per transfer because in case of multi message, transfer frequency can vary for each message/transfer.[PATCH V8 6/8] Akash Asthana (7): soc: qcom: geni: Support for ICC voting soc: qcom-geni-se: Add interconnect support to fix earlycon crash i2c: i2c-qcom-geni: Add interconnect support tty: serial: qcom_geni_serial: Add interconnect support spi: spi-geni-qcom: Add interconnect support spi: spi-qcom-qspi: Add interconnect support arm64: dts: sc7180: Add interconnect for QUP and QSPI Douglas Anderson (1): spi: spi-geni-qcom: Combine the clock setting code arch/arm64/boot/dts/qcom/sc7180.dtsi | 127 ++++++++++++++++++++++++++++ drivers/i2c/busses/i2c-qcom-geni.c | 26 +++++- drivers/soc/qcom/qcom-geni-se.c | 150 ++++++++++++++++++++++++++++++++++ drivers/spi/spi-geni-qcom.c | 100 +++++++++++++++-------- drivers/spi/spi-qcom-qspi.c | 56 ++++++++++++- drivers/tty/serial/qcom_geni_serial.c | 38 ++++++++- include/linux/qcom-geni-se.h | 40 +++++++++ 7 files changed, 496 insertions(+), 41 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project