From patchwork Fri Mar 17 18:17:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 9631159 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E6A3E602D6 for ; Fri, 17 Mar 2017 18:18:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E18E8284CB for ; Fri, 17 Mar 2017 18:18:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67D72852D; Fri, 17 Mar 2017 18:18:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A64E2856B for ; Fri, 17 Mar 2017 18:18:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750999AbdCQSSP (ORCPT ); Fri, 17 Mar 2017 14:18:15 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35524 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbdCQSSN (ORCPT ); Fri, 17 Mar 2017 14:18:13 -0400 Received: by mail-pg0-f67.google.com with SMTP id g2so11114064pge.2 for ; Fri, 17 Mar 2017 11:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XY9Y6ZtsC7mlGd6S7Ix08pGawPGJ5QwNHj7dYshgGio=; b=Uijq0OyRaepnlNF22BPNtms/vp7V8Dcb9GtBJDTmpBlJmDi+/hM2u2t8gO9oMHvFf6 mujwreLWhceey5/FBCx2qtdvd3Zn+FLFQtXCKPklk44rmFuTy3HuTrH21SVjFaN+J8P1 mepW6LFYrXOqCnYK7MLUY1ecenM5DA1EYSov3iaRVNpjv4hcyhd9vCeZkAMcQHrnZB9M MlZrvKVBk4/6YbFL1wAa2pBMqgGqnO5tq3x9yQobRTVSRs0dwC2cbokYIRyujjJSMk/I kYAkTuLSAvrgkRW+HyFoJyZHoZxC5rw8RMxPlFijxA6gXU2uQPktbBrEhPtkKHQEGENn SgrA== 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:in-reply-to :references; bh=XY9Y6ZtsC7mlGd6S7Ix08pGawPGJ5QwNHj7dYshgGio=; b=omea4PHp8KMLe1riVnsaK8I5q9wq3HjRETA676cH5Cgvifds9BVkDX8NCTD37EfgZh PAQLE2lVtycbMPecwXPBW4fYgKX+8F4Liu0il1vmfANX5yENfnwqS93/fGo6/Us0iQYn BXEK9WoGXmo4WnXZUj1ZVSprHVl3BF5tH9PrhuCsZ2IIqaUk5zWmrzZJvnQRIddr4DsL 0aY6aHI+9heXj/bQNA+rdJ4XKZD7ch8QgEO1GZqV5DEbLPQDnxSGLRwSkEfcdqeiOUS8 O0lFAmQ7cZ0Y2+2a3aZmrxBPkFsCDLpGfm9c37FLd4MH85GIz1/d//VPw9Abon0qO+Rd dQsQ== X-Gm-Message-State: AFeK/H0SHAdiI04R2DTd/1ZHYv9/G3XuQM+JFKGUKuqaWdWjCwUqzKdUm60jVEwSupEqnw== X-Received: by 10.99.104.199 with SMTP id d190mr13997751pgc.141.1489774692407; Fri, 17 Mar 2017 11:18:12 -0700 (PDT) Received: from mita-ThinkPad-T540p.local ([240f:4:c2bc:1:273e:de02:139f:cc26]) by smtp.gmail.com with ESMTPSA id 189sm7104355pgd.39.2017.03.17.11.18.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Mar 2017 11:18:11 -0700 (PDT) From: Akinobu Mita To: linux-spi@vger.kernel.org Cc: Akinobu Mita , Martin Sperl , Mark Brown Subject: [PATCH 6/6] spi: loopback-test: add test spi_message with delay after transfers Date: Sat, 18 Mar 2017 03:17:31 +0900 Message-Id: <1489774651-30170-7-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489774651-30170-1-git-send-email-akinobu.mita@gmail.com> References: <1489774651-30170-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds a new test to check whether the spi_transfer.delay_usecs setting has properly taken effect. Cc: Martin Sperl Cc: Mark Brown Signed-off-by: Akinobu Mita --- drivers/spi/spi-loopback-test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c index 66e8cfd0..fcae337 100644 --- a/drivers/spi/spi-loopback-test.c +++ b/drivers/spi/spi-loopback-test.c @@ -273,6 +273,25 @@ static struct spi_test spi_tests[] = { }, }, }, + { + .description = "two tx+rx transfers - delay after transfer", + .fill_option = FILL_COUNT_8, + .iterate_len = { ITERATE_MAX_LEN }, + .iterate_transfer_mask = BIT(0) | BIT(1), + .transfer_count = 2, + .transfers = { + { + .tx_buf = TX(0), + .rx_buf = RX(0), + .delay_usecs = 1000, + }, + { + .tx_buf = TX(0), + .rx_buf = RX(0), + .delay_usecs = 1000, + }, + }, + }, { /* end of tests sequence */ } };