From patchwork Tue Jul 7 20:16:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 11650169 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06DE914E3 for ; Tue, 7 Jul 2020 20:17:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E43072186A for ; Tue, 7 Jul 2020 20:17:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="E6u2N0HY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728517AbgGGURG (ORCPT ); Tue, 7 Jul 2020 16:17:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgGGURF (ORCPT ); Tue, 7 Jul 2020 16:17:05 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95752C08C5DC for ; Tue, 7 Jul 2020 13:17:05 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id p3so20518201pgh.3 for ; Tue, 07 Jul 2020 13:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+tCTrAKWMJVuvZolCuiw6Qi11c7jBp2RNevhFxrSgmw=; b=E6u2N0HYkyZVbrcS7ao7VcNmPRODfcTSo5b48Ee/6vAd9W9rpK0paNN4aQa7kt0+Eh FQ8CicLr0gT3aNjl55yudIDJhD0s8RFnBOej527WhdNsRZ8oCSVW5+DM09j1WPG1fKjS ZWYm0gHt/x//SFsaQLOs3DOaPV3EeL2NDZjEs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+tCTrAKWMJVuvZolCuiw6Qi11c7jBp2RNevhFxrSgmw=; b=Ku+JTfJ4KgKDJ8wDhplf9Ve+LcdJPYkhlZfdWjPqRyoQApH+YGs0KiyGwplJWn6H8g 1JMFZH3sDUyXZGv4rTudesxwn4vUBSSHR+C4EGgO+UfJATKZYXs0hP7n/g/nqKxjyNTI ZnNm6FPfFgXm+vut5SzMEHXhV9byZDoy1Tt3ajQ1NRlemKj8kG1OClmOI1fduTTPF/Xf ET8VKlR8clreUFjODAVTh7i3hGXNGeuMe88xxXgUGzXQiK/eLvdaBKAsXjRAYzSD6NgO tBnKZzZtjwz3DE9BV0xpcGjDmQ7Izt830fPOYf2/4WtjLZZ2CaqjHRMJM9NpSCiVARa+ McQQ== X-Gm-Message-State: AOAM532Qt3G8tq8VjT4wH5Rh4WSZAhp6Zlp/PkdY97BqPJ8kc2lc2QW7 YPod+qdnvGNcHBdHChL5HWGzQQ== X-Google-Smtp-Source: ABdhPJwM9b7JDIXP5Gb8t7awJr/QovUJ/0MYE1YMo1UtvqZOuw+GkOunu2GJuNn9V2rWbH1RVw8M8A== X-Received: by 2002:a62:84d5:: with SMTP id k204mr47316805pfd.66.1594153024963; Tue, 07 Jul 2020 13:17:04 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id i23sm7166097pfq.206.2020.07.07.13.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 13:17:04 -0700 (PDT) From: Douglas Anderson To: Mark Brown , Andy Gross , Bjorn Andersson Cc: mka@chromium.org, Akash Asthana , Rajendra Nayak , swboyd@chromium.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org, ctheegal@codeaurora.org, mkshah@codeaurora.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 0/2] spi: spi-qcom-qspi: Avoid some per-transfer overhead Date: Tue, 7 Jul 2020 13:16:39 -0700 Message-Id: <20200707201641.2030532-1-dianders@chromium.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Not to be confused with the similar series I posed for the _other_ Qualcomm SPI controller (spi-geni-qcom) [1], this one avoids the overhead on the Quad SPI controller. It's based atop the current Qualcomm tree including Rajendra's ("spi: spi-qcom-qspi: Use OPP API to set clk/perf state"). As discussed in individual patches, these could ideally land through the Qualcomm tree with Mark's Ack. Measuring: * Before OPP / Interconnect patches reading all flash takes: ~3.4 seconds * After OPP / Interconnect patches reading all flash takes: ~4.7 seconds * After this patch reading all flash takes: ~3.3 seconds [1] https://lore.kernel.org/r/20200702004509.2333554-1-dianders@chromium.org [2] https://lore.kernel.org/r/1593769293-6354-2-git-send-email-rnayak@codeaurora.org Douglas Anderson (2): spi: spi-qcom-qspi: Avoid clock setting if not needed spi: spi-qcom-qspi: Set an autosuspend delay of 250 ms drivers/spi/spi-qcom-qspi.c | 45 ++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 10 deletions(-) Reviewed-by: Rajendra Nayak Tested-by: Rajendra Nayak Reviewed-by: Mukesh Kumar Savaliya