Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4984341img; Tue, 26 Mar 2019 22:58:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRushzznARX3t07wIaKXVguea72syxN56iiDQdvF46z5c+D/DSi9wO/PBySJIXtdFXVAjL X-Received: by 2002:a62:458a:: with SMTP id n10mr34376776pfi.136.1553666319098; Tue, 26 Mar 2019 22:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553666319; cv=none; d=google.com; s=arc-20160816; b=DOxVHbw7Zbc0gsKFF0pdW5XR9j7/+Wn9DLxQsrQpRamxvfmSSeCnyuYNhXjUTCDXmi p5Xb1LEvqlTpkG5IFogcasNkYSYwZ9MvOJyj62lXnl1hPv3JsYe21jjptgqPhbQA1n6K RjJEMZnxn3Q3XftvRlpaPRWwEfG7IMDeVg4rRovd26+6BV+RV9Qy5XHgDj9leJ09QMsv v3rAiyRDeTstVNqDhTBwLjuJm2AdhTxmuidFWCAYKWhw6GxK5cvU0c4s8IW0WBxCgiig v2VBWI38JmPuEcRm24dNUQy7vQ86cFkOoCzxmZ3y1H4TYjGqbVhgGardIiGx0sGyfjZd XOEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=nxJ/g70fxh4cHoVO3iraTDJRTIxjf17l/F7PI++MEec=; b=Twl2wNuzF9tGoGl/Orm41jHdWPLXzBM3fQ1TAjNUPHnnQaaAU34LbLadecGItp5hYf wuy+1jUxnpTL4Iqi9LAssh+zwPHJIMxIVQrod5De+DAS8FjWPBwsWSrrOWTrgicSgegb tZpRHqMHP5cul1eRkb9oeI0LsOjHGYXIVQaE2vUOlAI6xHZbpvZtWZajmgYQBQhqwHHq esrTi3AvhtBYmb5VbR/z6Boh1B2pkhFKmYP59pzLZ14SlGMyeFDRRVpSyCNjINPrzIch is6uqen0hQuQyHfD5pGtnCnphFxwY7WTeUnFGKBNFz81yKklaIiRhjDE60wcSZxfOVBI 87YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hbgt3b81; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m30si14505540pgb.493.2019.03.26.22.58.07; Tue, 26 Mar 2019 22:58: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=@nvidia.com header.s=n1 header.b=hbgt3b81; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732851AbfC0F5J (ORCPT + 99 others); Wed, 27 Mar 2019 01:57:09 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:17586 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732652AbfC0F5I (ORCPT ); Wed, 27 Mar 2019 01:57:08 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 26 Mar 2019 22:57:10 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 26 Mar 2019 22:57:07 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 26 Mar 2019 22:57:07 -0700 Received: from HQMAIL103.nvidia.com (172.20.187.11) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 27 Mar 2019 05:57:07 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 27 Mar 2019 05:57:07 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.161.83]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 26 Mar 2019 22:57:06 -0700 From: Sowjanya Komatineni To: , , , , , , , CC: , , , , Subject: [PATCH V1 04/26] spi: tegra114: use packed mode for 32 bits per word Date: Tue, 26 Mar 2019 22:56:25 -0700 Message-ID: <1553666207-11414-4-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553666207-11414-1-git-send-email-skomatineni@nvidia.com> References: <1553666207-11414-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553666230; bh=nxJ/g70fxh4cHoVO3iraTDJRTIxjf17l/F7PI++MEec=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=hbgt3b81vgBbYiXi+ub6FN+GB1/Tix7j3u6dD0WXJb3r//GFiWOUjxoz8nvblzRsh RZV6M5JwIXduk3MEOqQjtGGjH1R84zrVHidxEDVY2aPRYvS3jkJioID2ZKFK0Nomn7 XYp7+25+AI/mZSEFZ7MWmsNhaQ8SFDBsqo1Mz4xtYq8Pgmck60wJ00XcIFDIy/ct1k PxDw+0jvVApbDvxXX7cg9VR0SG0BJMzP81K2JlVC0uHIvC/FZJH31Mz1kJUEOL3GRR BzxREulV7QF2CFFhtksTBqm8wjIanI/imrSL9hHrvSGYl1pblUg7p40MC2w9O8EdB3 9384issVnNhig== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: Use packed mode for 32 bits per word transfers to increase performance as each packet is a full 32-bit word. Signed-off-by: Sowjanya Komatineni --- drivers/spi/spi-tegra114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index fdba302eb3b6..dc63536dbda4 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -259,7 +259,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param( tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); - if (bits_per_word == 8 || bits_per_word == 16) { + if (bits_per_word == 8 || bits_per_word == 16 || bits_per_word == 32) { tspi->is_packed = 1; tspi->words_per_32bit = 32/bits_per_word; } else { -- 2.7.4