From patchwork Thu Jul 2 00:45:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 11637633 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 E925D6C1 for ; Thu, 2 Jul 2020 00:45:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0A9E2085B for ; Thu, 2 Jul 2020 00:45:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IRRN360y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbgGBApe (ORCPT ); Wed, 1 Jul 2020 20:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbgGBApd (ORCPT ); Wed, 1 Jul 2020 20:45:33 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA70C08C5DB for ; Wed, 1 Jul 2020 17:45:33 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id j4so10582359plk.3 for ; Wed, 01 Jul 2020 17:45:33 -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=PF6PVg6Qk3aczs+/e1HWRyzHNDndSGQClfFztHhcrJA=; b=IRRN360yDKEMQxG9gT3EO16qJfg/TcpVShQcjRB9jTaTvchyHFTq4oTBH0DuMRu0L/ DxZN8IBFt5WiQaBOohCA3SM0pCeDKhTQvwGElidlfN1JBrTftIKRZ2qvUbF7dSX31Ovl unSwAWVPVUgZe91Kk8wFDpHNz8uN3oouD+ZyU= 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=PF6PVg6Qk3aczs+/e1HWRyzHNDndSGQClfFztHhcrJA=; b=ATWKhD6fFUKW4+M/CEPwpqpS3KbQSM7cx5nxE4I3zpJLPHaEY72jn9ExkzwAA7ON+Y OT6anNlC81UT4v+J0dA/DZlfroJT2Q67ngcsQ/Pzun59TU69U+enkE7byntEl4SNyXTX krE5iOer+AXhHD45hC2nTORZB1iJ8e4y7qGw6i/of4McoJMK5m4YZMBvnQR47cd1JzyP VY3pnha9iumHOB1N+qjoHmKp098eZRrHYItTCs7LjPNmjM0FatX25CqxdNIBnWuZqDl+ UW6thBqJ+sp8ELUYj8h/WaBNXVl92MFqMMwRB/vlUU/rgnaz850OIPJ8I9jei2IZpMHL G1Aw== X-Gm-Message-State: AOAM532K5lj9S5t3t2vM1zbrcJCJf3eFVdBqzxXWUbgnfYRMlkMY9v1I 3fAye1/dUd91M+PnapCg/krJ8g== X-Google-Smtp-Source: ABdhPJzPPKTtbw7LrsBUf0ic/Ijm1Yz9qx+hzC3WuV8qdS19siqcooPzbKzryXVcyy89dAYTRcTVbg== X-Received: by 2002:a17:902:7896:: with SMTP id q22mr25007062pll.237.1593650732668; Wed, 01 Jul 2020 17:45:32 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id w4sm6966212pfd.39.2020.07.01.17.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 17:45:32 -0700 (PDT) From: Douglas Anderson To: Mark Brown , Andy Gross , Bjorn Andersson Cc: akashast@codeaurora.org, linux-arm-msm@vger.kernel.org, mkshah@codeaurora.org, swboyd@chromium.org, georgi.djakov@linaro.org, ctheegal@codeaurora.org, mka@chromium.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 0/3] spi: spi-geni-qcom: Avoid a bunch of per-transfer overhead Date: Wed, 1 Jul 2020 17:45:06 -0700 Message-Id: <20200702004509.2333554-1-dianders@chromium.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This series tries to reduce a whole bunch of overhead in each SPI transfer. Much of this overhead is new with the recent interconnect changes, but even without those changes we still had some overhead that we could avoid. Let's avoid all of it. These changes are atop the Qualcomm tree to avoid merge conflicts. If they look good, the most expedient way to land them is probably to get Ack's from Mark and land then via the Qualcomm tree. Most testing was done on the Chrome OS 5.4 tree, but sanity check was done on mainline. Douglas Anderson (3): spi: spi-geni-qcom: Avoid clock setting if not needed spi: spi-geni-qcom: Set an autosuspend delay of 250 ms spi: spi-geni-qcom: Get rid of most overhead in prepare_message() drivers/spi/spi-geni-qcom.c | 67 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 35 deletions(-)