From patchwork Fri Mar 17 18:17:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 9631155 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 9F489602D7 for ; Fri, 17 Mar 2017 18:18:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AF402852D for ; Fri, 17 Mar 2017 18:18:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F99428616; Fri, 17 Mar 2017 18:18:22 +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 DEBE828533 for ; Fri, 17 Mar 2017 18:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751101AbdCQSSP (ORCPT ); Fri, 17 Mar 2017 14:18:15 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34580 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbdCQSSO (ORCPT ); Fri, 17 Mar 2017 14:18:14 -0400 Received: by mail-pg0-f68.google.com with SMTP id b5so11146882pgg.1 for ; Fri, 17 Mar 2017 11:18:08 -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=BTt/3X66f3LRnl3/1/nhWJoasVld8TAoBoAoB2snays=; b=QvCtt+dv1ra5zHzGIk3zsS1AQmzda4Di8kyIQVhKC4kGvpeSLqXqTupWnCqWT5zeN9 QY3VNxoL/ji7hrtx7h095zia/q/Uc/H9A7kKX8mWMcULhGg9OH1p2zeoOJGaYLlv49Rl qm3S8oDiKK+yuTijrvbYd2rPULm4zp56dF2qSu2Dmz0ureYKqVucz9GrFKmuPtJ0UhW4 66ZeM7Fe9+IIH6+QBBO2kz0qE8v4B0LM228zCu6jviEToBkDC2w3TtMoMSPsMNZ3P+2X 7KPFhirIkwaCVu0SZn+XdgQ1uOUjWnAA61NiPfuPtj3z1O2ti0Gt+snrJi2mnCR8IMNU CQ5g== 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=BTt/3X66f3LRnl3/1/nhWJoasVld8TAoBoAoB2snays=; b=Xj8qPG1RQWtnF947BjK492ewncO2BNpyEZcg7rIVX93rorfGomnuondJpdKovjDjUq /P4aAYPV3UmkdT2JXWkKLj13+MjvlpmwF0JbGIR0sh3hvsIiVx1zHTgqt4Yx65+PkDmF Ww9MSTqLkAJVY+/A/SGjffOMV+poRhmAK9Es5c3qZvSu9jY7Gz7y9MHm3EOi4hF0rbw1 bnWBYGV/rzh3aJVaAB+n+ersKcRiY5R8jchQX4desuPgZ/m0hUEbf8oohxUFtkKuZGNV 8DWm493IC1RijjPfeFaAwY/DUM5TvzUD4K4TDnOsLRELahsb/paxS7LIw0kTmYtDo5SI wXlQ== X-Gm-Message-State: AFeK/H1tgskpmRxHAY/98neQDSA14HHGlP9ITOzwBOk6XshfbNwojz9LH3zI0fTHW3SKug== X-Received: by 10.99.103.133 with SMTP id b127mr17894213pgc.29.1489774687842; Fri, 17 Mar 2017 11:18:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Mar 2017 11:18:07 -0700 (PDT) From: Akinobu Mita To: linux-spi@vger.kernel.org Cc: Akinobu Mita , Martin Sperl , Mark Brown Subject: [PATCH 4/6] spi: loopback-test: test zero-length transfer Date: Sat, 18 Mar 2017 03:17:29 +0900 Message-Id: <1489774651-30170-5-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 In order to test various spi_messages including zero-length transfer, this adds zero length into the iterate_len list. Cc: Martin Sperl Cc: Mark Brown Signed-off-by: Akinobu Mita --- drivers/spi/spi-test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-test.h b/drivers/spi/spi-test.h index 2dd5691..82fff4a 100644 --- a/drivers/spi/spi-test.h +++ b/drivers/spi/spi-test.h @@ -124,7 +124,7 @@ int spi_test_execute_msg(struct spi_device *spi, int spi_test_run_tests(struct spi_device *spi, struct spi_test *tests); -#define ITERATE_LEN_LIST 1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \ +#define ITERATE_LEN_LIST 0, 1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \ 1021, 1024, 1031, 4093, PAGE_SIZE, 4099, 65536, 65537 /* some of the default @spi_transfer.len to test, terminated by a -1 */ #define ITERATE_LEN ITERATE_LEN_LIST, -1