Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1808560pxb; Mon, 8 Mar 2021 06:58:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1ototdF3l+caQmXUTYfD4zl3ekfW7W+xc7Pg3r8lSpPcUwfLElfWv8nUWzIacWBtn2c+k X-Received: by 2002:a17:906:cb11:: with SMTP id lk17mr14829874ejb.405.1615215491008; Mon, 08 Mar 2021 06:58:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615215491; cv=none; d=google.com; s=arc-20160816; b=EWSnjo/jATDfVsohhT++squoWAWQWrE/9ghO+D4/fYrrR8/yOv/jSIlGuIIe3v+HRB K3fXg9CvZe48rg1Q1QXXGWsMTH3GxovD+lGP4SOpKsASl8cBWdCEq3sTKKNdBd04oexY WuqXPbRaLWDF+vdRFb52z1RrweBQabaLxEDOlaUbCDWqQk/c4j9sJewtOFLTVC92sG7l tUU4D1747bizt1tpjFTX0Tz+GjAUawrCvTuXBfYnYYVKJEGypOgiOes0ahMKiTHqaYoL szmIjGBZF23bVT0Thk9WGHArWOfwWyUhB7WSA4f8HiYhU5YdR8Lu9PpszPx8KYjHAL+c Xysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eGIsP86uecOdbNP3RzEXdRJwjYXQN4lavob9ylpQnlo=; b=ITcmOE4EIUMkJ/UNNF//oHZaJZyz4VK9f/XNNGYIkupb1ZkfvdVXW2lWK+pzwc1DNQ MnkIAYZ1vRD6AQgDXkYR7477k0O4rl26vtNjwjP6r1z1kC4M/Ou+alljfql/KMi3gcd+ 6eoTGHd7kk4tEcrZz1nIjnoquGNLykC9X4xHED0+GT2pbj8kZDOm/3QRuOfQnhm7rAKp dkCROI5cx/NCrfo07NZRj4UEuXaVbc4Almd2JP98zuTB/I/2dgj/Mc5LMODZgs+EjWLM VCHSJJ4ICjp6m+UNJQU0pzUPCUbD8AYlU/6+OJ199uwvre9YhayNJSryeOzHnKc1Aqs+ UV1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=ioTX0u8D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deviqon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si7352231edq.382.2021.03.08.06.57.48; Mon, 08 Mar 2021 06:58:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=ioTX0u8D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deviqon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbhCHO4Q (ORCPT + 99 others); Mon, 8 Mar 2021 09:56:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231355AbhCHOzj (ORCPT ); Mon, 8 Mar 2021 09:55:39 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2559DC061761 for ; Mon, 8 Mar 2021 06:55:39 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id ci14so20887063ejc.7 for ; Mon, 08 Mar 2021 06:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deviqon.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eGIsP86uecOdbNP3RzEXdRJwjYXQN4lavob9ylpQnlo=; b=ioTX0u8DVjv5rQ6PRejkBUyjoya3UCwI32URVKD5M10y+hrFGA8Q5r0DXSuHIEEDmo oPPBRTnH9wDsEupl3mGZoRJ2vh718Y1GnDNeZfqyAZjEo8kIjGm2UzE1wcRvcbJyEbGy 7O3sc0gtRdzgOq7T8KV4H0JX8OfC3obDIE0OppS9Sl62QfCirdgYHiBLAMyX5jOeEtYW Gmq3N54+nU/K5a4nMbWOxxP2e2ZVLsVOpz5qjJ4feOM/L7AOFg1WOQ9qH3rsKdyXkBEz BXtkaWNtaGd0j4FAEpjUqe/rkHZpU3GheAopKvl1/Wk2au60O+NFUxs2j2gqjTQc8LH6 bXfg== 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:mime-version:content-transfer-encoding; bh=eGIsP86uecOdbNP3RzEXdRJwjYXQN4lavob9ylpQnlo=; b=lVrq/o/hoDPQGVthJL2v/Qsi4/8EgqabUe1SMU+r4UCPLkhCzUZjoaLqbj99s3QSUw 3oJVA38R7ocG95lNqI1aJCCGsgcr/mRMkf4OpGHS3ngCv3QNo9M7L6ucbwDTu2ulTGsx GZapAgKm4p14aEdu9Nn6Z9/CwShPv21y+mJrMFpNdf95/Y1oOedL9mLfsQxua5aafe+6 3tOJk+i4Z0Z3PrWIstIJFDAboAjLDIfXi+hTqMKnwF43CdW0GYUhGScSBp8RAfst6Lz1 aB7yLLWcCXcKaiquSB9ityn5sgUxMoyOa7g9hiNTGnj+JReVoXsCyR6s0agFTq10S+YT jIiQ== X-Gm-Message-State: AOAM5318hUbaEb5xg1NqRscgebDDGqM9Wp9uf3bGLAKz9KY6lHYI029F K8vbD5q1xIr9wiyEoyLcjPKxfw== X-Received: by 2002:a17:906:6558:: with SMTP id u24mr15604493ejn.185.1615215337950; Mon, 08 Mar 2021 06:55:37 -0800 (PST) Received: from localhost.localdomain ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id bt14sm7411234edb.92.2021.03.08.06.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 06:55:37 -0800 (PST) From: Alexandru Ardelean To: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-tegra@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Cc: broonie@kernel.org, gregkh@linuxfoundation.org, elder@kernel.org, johan@kernel.org, vireshk@kernel.org, rmfrfs@gmail.com, f.fainelli@gmail.com, ldewangan@nvidia.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux@deviqon.com, Alexandru Ardelean Subject: [PATCH 09/10] spi: core: remove 'delay_usecs' field from spi_transfer Date: Mon, 8 Mar 2021 16:55:01 +0200 Message-Id: <20210308145502.1075689-10-aardelean@deviqon.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210308145502.1075689-1-aardelean@deviqon.com> References: <20210308145502.1075689-1-aardelean@deviqon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'delay' field in the spi_transfer struct is meant to replace the 'delay_usecs' field. However some cleanup was required to remove the uses of 'delay_usecs'. Now that it's been cleaned up, we can remove it from the kernel tree. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi.c | 1 - include/linux/spi/spi.h | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index b08efe88ccd6..481427780162 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3178,7 +3178,6 @@ struct spi_replaced_transfers *spi_replace_transfers( /* clear cs_change and delay for all but the last */ if (i) { xfer->cs_change = false; - xfer->delay_usecs = 0; xfer->delay.value = 0; } } diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 592897fa4f03..ea1784a43267 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -832,9 +832,6 @@ extern void spi_res_release(struct spi_controller *ctlr, * @delay: delay to be introduced after this transfer before * (optionally) changing the chipselect status, then starting * the next transfer or completing this @spi_message. - * @delay_usecs: microseconds to delay after this transfer before - * (optionally) changing the chipselect status, then starting - * the next transfer or completing this @spi_message. * @word_delay: inter word delay to be introduced after each word size * (set by bits_per_word) transmission. * @effective_speed_hz: the effective SCK-speed that was used to @@ -946,7 +943,6 @@ struct spi_transfer { #define SPI_NBITS_DUAL 0x02 /* 2bits transfer */ #define SPI_NBITS_QUAD 0x04 /* 4bits transfer */ u8 bits_per_word; - u16 delay_usecs; struct spi_delay delay; struct spi_delay cs_change_delay; struct spi_delay word_delay; @@ -1060,14 +1056,6 @@ spi_transfer_del(struct spi_transfer *t) static inline int spi_transfer_delay_exec(struct spi_transfer *t) { - struct spi_delay d; - - if (t->delay_usecs) { - d.value = t->delay_usecs; - d.unit = SPI_DELAY_UNIT_USECS; - return spi_delay_exec(&d, NULL); - } - return spi_delay_exec(&t->delay, t); } -- 2.29.2