Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1807735pxb; Mon, 8 Mar 2021 06:57:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfBNw5+Lz6iYuOuZQ+cmwbO3n99lBwlIwYtoMO4IUibbT1wIQLBHK7KNqvFLgKCf6TQ0I5 X-Received: by 2002:a17:906:2e08:: with SMTP id n8mr15052411eji.527.1615215421306; Mon, 08 Mar 2021 06:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615215421; cv=none; d=google.com; s=arc-20160816; b=08LZmB/jEh+YUMj8hKzEQSn/IZzXq5T2bpQQlrkQT/c+goQKDlXdBlpPfrV9AZ6S1Q tcGgAs3vLZvTKiYJI7w55wjG9KIgRZ5ARGYFzPcY5gww/dW0hEQoSAX9TALCUAZD4xPj iLsk0w/kefY/gQltO5qrL7w1dAnnJaYSullpn6Kguk4gIWdeeMzeNxocsZMLN23WMa7n FP7HhGBZAxrnXTejV6Fz88SYD44Fdl0XXDATDfxxwqFQulbFq7KusEqXgUAws7RuoALa ButDgNCLClZTs01UVj/qSPaSQvHXi1ZcaCEi5uKxXYTeKGjGJyfkiHxRYBtm8DS5Eqar kZVA== 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=WJxdRpdzofsaI6pJC87KN8qfD7oiIuHmhf+Ws3rK5bo=; b=hz8eu9tSp7wciRou2LWniorm9sFO+hODYIHsxVXaRLy71sf0GMZ+Yl6WQ4OsIfiXCy +1K3c4hVUOhGJBHOePxrF5KYuii3FkIP42VEnUfzIz7gaAXeruVub4LBlxUfA7iTXIJu 1228+uqEPAKnNY/J5xL1M/fs7ReDHmbvH8jErshuOO2Tq7hWUV7MRvjm+smCQcGicCQG ENAB+KfC1YU68GQkwhDTlUK0zI5EBvhkHSRvuXn9l0RuTUwNqE/VQRiXvTe7VVFJq/bq 7retORq+yOmdbDUGrtxw43DVTBj7xOL/QUyrDHHnftFzCtUTr6gG54YETjeCUjpdnIHa GLhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=MTQFoIjg; 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 p17si6747317edy.508.2021.03.08.06.56.36; Mon, 08 Mar 2021 06:57:01 -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=MTQFoIjg; 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 S231410AbhCHOzm (ORCPT + 99 others); Mon, 8 Mar 2021 09:55:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230231AbhCHOzb (ORCPT ); Mon, 8 Mar 2021 09:55:31 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63C55C061762 for ; Mon, 8 Mar 2021 06:55:28 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id b13so15177199edx.1 for ; Mon, 08 Mar 2021 06:55:28 -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=WJxdRpdzofsaI6pJC87KN8qfD7oiIuHmhf+Ws3rK5bo=; b=MTQFoIjgyIhVpuBWjNoJU3fO+5NyJAQOscZ0AdWbRLqL1HdjvnrdB3/XxCfdMJJn56 bDPG9W0kPMVeyC58dnlnVBca784ue4kWFPXvaXSEfFdn9Tj3qTtg4RotQD5idpaVH7SL URqCkfltpUY/xyaBJlhc8SRDGn02/O7WZJvHB/VXkbTHqtEV8vEwxZIxINl3ftaK207d LSHGATqqKJlme/7/BqKSKs8KGoyGOGtbkCXXwN+E/OPGxumgQNBVj1H4TPnKMLvtg6fD 9FYM+6AKbruxKNEfadoYb/EudkSTyPH1m/pS5dxVx+CpKfXemde9q2WnUZZItwajJHhZ Gr1Q== 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=WJxdRpdzofsaI6pJC87KN8qfD7oiIuHmhf+Ws3rK5bo=; b=EgP9dD5T5/jON1TuzGa7/Uu+iTdUb4lUkBqewC63BacfxbbUcW+CsQwkhZ9tfFZJep 5lNzVXCWWkaB2C1jlbG+pcHaQVCTSPN/aaAqybPkRkAitqLVrDS78lyUxYkAVCYuqaFZ pRioEMDHWL8UUwOx1OwolJq3Fqr5scz53lI63GEM4Qy66dfQsl7InGre1qb4mdR8HUaf xh2/r0IYTTiNtNqmTZaxhEYNAH+daHuU5/sbO4snnoaqZ0erq4H+Uvjwbm9pLKsrsbfD Vgxlh44w/MsIUOu/XOBTVWV/ApsxHLH20uhGufYHbhFtnVbLANi8svSgcIUTSQIWjl16 nTUg== X-Gm-Message-State: AOAM533B15zASNuBSTxbOwBOft1E41tAjBStm+sSaluiECF0S4PvWl0P tlIgVcVSqIydhHa2vEIbf3Wb6w== X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr15045774edu.241.1615215327135; Mon, 08 Mar 2021 06:55:27 -0800 (PST) Received: from localhost.localdomain ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id bt14sm7411234edb.92.2021.03.08.06.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 06:55:26 -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 01/10] spi: spi-axi-spi-engine: remove usage of delay_usecs Date: Mon, 8 Mar 2021 16:54:53 +0200 Message-Id: <20210308145502.1075689-2-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_usecs' field was handled for backwards compatibility in case there were some users that still configured SPI delay transfers with this field. They should all be removed by now. Signed-off-by: Alexandru Ardelean --- drivers/spi/spi-axi-spi-engine.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-axi-spi-engine.c b/drivers/spi/spi-axi-spi-engine.c index af86e6d6e16b..80c3e38f5c1b 100644 --- a/drivers/spi/spi-axi-spi-engine.c +++ b/drivers/spi/spi-axi-spi-engine.c @@ -170,14 +170,10 @@ static void spi_engine_gen_sleep(struct spi_engine_program *p, bool dry, unsigned int t; int delay; - if (xfer->delay_usecs) { - delay = xfer->delay_usecs; - } else { - delay = spi_delay_to_ns(&xfer->delay, xfer); - if (delay < 0) - return; - delay /= 1000; - } + delay = spi_delay_to_ns(&xfer->delay, xfer); + if (delay < 0) + return; + delay /= 1000; if (delay == 0) return; -- 2.29.2