From patchwork Thu Jul 9 14:51:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 11654523 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 9592114F6 for ; Thu, 9 Jul 2020 14:52:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7D971207D0 for ; Thu, 9 Jul 2020 14:52:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="PC2Pot4K" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgGIOv7 (ORCPT ); Thu, 9 Jul 2020 10:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726517AbgGIOv7 (ORCPT ); Thu, 9 Jul 2020 10:51:59 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE904C08C5DC for ; Thu, 9 Jul 2020 07:51:58 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id cm21so1224445pjb.3 for ; Thu, 09 Jul 2020 07:51:58 -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=cptIFOy+s35IOrGpxC/c61eH5jsSRhIdmTZLXFVPdjk=; b=PC2Pot4KmH1gr1NvXniHoKNf9m4dqGRv0CD328oaViqnSdYsE3pLmZtJ3y47G0suSm 9qJxZvgzT0MZdQySNQeoiJRU8aPY85XmcaVva/OxIFY5WduhzCi4z7qa25i6TDC9x3IU KhUeZtBVvYKawhWzb+nIPPIQg0uPsKiWfmVSc= 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=cptIFOy+s35IOrGpxC/c61eH5jsSRhIdmTZLXFVPdjk=; b=C1XMtV6fJJ0C1A2ervCWSONhUWgSw+c6SXIU0FfARnQjZr8ZZDTXMTbK2cJEwjUX1+ C0eaRR3qcpAKqh859rHco64BkonYxsBU747R/bu/7WoV9Q++hfMFRMH4ndzzdW8rb17x kq+YZLbNSZZPLHDu/eWqC/MEerQyY42of7+rKydGuqoCa5TiuYmAULHy7C+Iuc1qMo1l 2jL6yewBYHKFJwtdnFl8Gu3AjyNfutgUUV1s1hWBDu2aRi7m/9YTk6JapFu762+DKEXu 0qexXxD/AOsiz6ezxihqhogac06J7rA5nACQsLkAxUep86n7sMDNQULen4hpGW+aJPcN /LKQ== X-Gm-Message-State: AOAM530heo5bWOOB5VWKSPwJHDV2uk4yJ5wF0GvFGN5DYlEzBSLNmW6D k9ZB3j5ikV/XUMtNMz6c5YCn8w== X-Google-Smtp-Source: ABdhPJyn8dlt69y0gsG6wR+o/UXnjmbgFtRHWtdY8+d07kDxdHLobDPbTnYAeyYyMTxAPc9jYTsmYw== X-Received: by 2002:a17:90b:3555:: with SMTP id lt21mr428742pjb.234.1594306318531; Thu, 09 Jul 2020 07:51:58 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id m1sm2791322pjy.0.2020.07.09.07.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 07:51:57 -0700 (PDT) From: Douglas Anderson To: Mark Brown , Andy Gross , Bjorn Andersson Cc: swboyd@chromium.org, linux-arm-msm@vger.kernel.org, ctheegal@codeaurora.org, mkshah@codeaurora.org, mka@chromium.org, Rajendra Nayak , akashast@codeaurora.org, georgi.djakov@linaro.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH v2 0/2] spi: spi-qcom-qspi: Avoid some per-transfer overhead Date: Thu, 9 Jul 2020 07:51:43 -0700 Message-Id: <20200709145145.4055619-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 Changes in v2: - Return error from runtime resume if dev_pm_opp_set_rate() fails. 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 | 43 ++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 10 deletions(-) Reviewed-by: Akash Asthana