Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2870115rdb; Mon, 4 Dec 2023 09:36:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNEvc0XqffVvKEgWSK1R7ESOcx3t35FWfhDIBNwKdrRvWvE1nUb80+H8B4Z5wbO6fWFbRm X-Received: by 2002:a17:902:ced2:b0:1cf:fca8:693c with SMTP id d18-20020a170902ced200b001cffca8693cmr5382498plg.65.1701711383750; Mon, 04 Dec 2023 09:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701711383; cv=none; d=google.com; s=arc-20160816; b=kCgSQte9/zoEZt9lSR1K/OThFQtbB0l7c8HzFlc5tws0Qs7q8KWKOBgXsjO2vMdWcq tGagTeTY3ycZT8irn+rnkVcyoCgnRMU0ZqS96JFQrw061vKoSEnOkVyT3/cN7tcc+Dnj QkaYVRrnnHi1QQWUKTCJfjFwVQiZBmXmdVGo7j69ZdDt/amnQM75tvVGd7GOF/FLef9x bW3EeyMlVfx8VP2ZDSs5gi6zk7rh2Z+eE+9BHlLRrFNpXzD0e3wxeXAsNN7TtvzQX4oH HHciZv9X+wCT4JiKtuqacMH5/N7eQElvkupEBFM497zp+oRhDSai1EsimZlAWta3krgg qlDg== 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=+LzfPXnoh+csBX7vLMU59nOns526pWVt603zQVilgL4=; fh=0wGMUdoh1UE04GpAJkixe4SLWCT2iowob+poRBItjRU=; b=YCkpJrLQ5GE4qOiZj4CeK32p6Egvwpg664bVcXp55gbAKnNs/I5hwxMofgrAs7VWzo UlflFgWd5timwXdBfrdmupuXp0Dk2Yn9s9pkmMbu0Or2XR4LVeLjgFW3vNXXZQX63x0L xwvXmxjwsoEsdhok5emVWZnrIx5eHSHljLSqmbqtRt43gZTXg3gL6fVMJPGQ7xALTFVh uCftNdmVZ5xsjXM5rSm+znoS6+fWNErysQZ1txOy04+MF2r0KRJnUeoYYjzeMrcRZK1C LMESLpH62R9F+ARG2+qNoFxve7/Bp6739PpKhYdvdKMJfcpRBdRIDEJCpOoG8Y19k8AW +bvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=TfhmGU6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p8-20020a170902e74800b001d0231f5e30si8356109plf.295.2023.12.04.09.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:36:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=TfhmGU6l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F16FB809D1DC; Mon, 4 Dec 2023 09:36:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235481AbjLDRfi (ORCPT + 99 others); Mon, 4 Dec 2023 12:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234970AbjLDRfN (ORCPT ); Mon, 4 Dec 2023 12:35:13 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B664583 for ; Mon, 4 Dec 2023 09:35:19 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6d852e06b07so1659058a34.3 for ; Mon, 04 Dec 2023 09:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701711319; x=1702316119; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+LzfPXnoh+csBX7vLMU59nOns526pWVt603zQVilgL4=; b=TfhmGU6lO6fg/noNszpMohBn1SHLq59i6u/ummWQ9YrTwimiP+vc11WmP1anJ7tAKl qS8q6JCAZhryqSnIeyd1+N/GKeoiEfbF1Stb8xx/uB0jBYAlGBOccjkd1KTDYDr3ibav EcN62nikiWeRCwHlfUHJE3U4xwCEx3sRGVB1ppY3bLDwifCegn0largtt0wtlPGBzd8e G20CFh4bwcg9/svlVG8O1q/lR2Ep7qhKEC9wCQ8swK6vZ7pamEXy9Cv3v/z3yxhF34I+ yJli6EJ+o2JDeABeuiQzYxDJ6JQ4nmRpYHBVGxtdiXh9A/SMYeDkBPBG8Dezq1mZ+vZr k31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701711319; x=1702316119; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+LzfPXnoh+csBX7vLMU59nOns526pWVt603zQVilgL4=; b=DFAEhpK5QpFNLqFi4v29cH6FXsLRSR1Jo4cTPIZ510pTOVM159NkEFq6Kay+j6Kbr0 axWmi5Lh1Vcswzy3lWPjvSP51WER7MOK6GFOjIOC9IysXkLE6p5/Q2ru3dqJyFQUcUkv odDffhoAunRQIEHivpXRHjnTMddYbnCayqclHxSc6MadyEiM2FS/BxPwnKbnM+H9hsfh 6LZH2o0lZhoqD8NJUl1pk6k48fIWErnPmBi1PBBNe12kpY/oeCoztZkRcikA1a7iD/jG gYMJrUt/2RnsWWFBCIJHCTX7sOjyO8lQticu0KKQHQu2CsYPd2koNb3ppc0tr8vztbPB y9aw== X-Gm-Message-State: AOJu0YyflhOo11lTfssfhNP3HCmb9Lx/S1QXQrU/x2P15IxVmdYhbNjU frQFVD/EjuENFTuCRTYq5BJ79w== X-Received: by 2002:a9d:6e0f:0:b0:6d9:aac1:228 with SMTP id e15-20020a9d6e0f000000b006d9aac10228mr767736otr.40.1701711319036; Mon, 04 Dec 2023 09:35:19 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id b16-20020a9d5d10000000b006ce2fce83cbsm1956563oti.25.2023.12.04.09.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:35:18 -0800 (PST) From: David Lechner To: linux-spi@vger.kernel.org Cc: David Lechner , Mark Brown , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , linux-kernel@vger.kernel.org Subject: [PATCH 8/9] spi: axi-spi-engine: remove delay from CS assertion Date: Mon, 4 Dec 2023 11:33:34 -0600 Message-ID: <20231204-axi-spi-engine-series-2-v1-8-063672323fce@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231204-axi-spi-engine-series-2-v1-0-063672323fce@baylibre.com> References: <20231204-axi-spi-engine-series-2-v1-0-063672323fce@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 09:36:21 -0800 (PST) Now that the AXI SPI Engine driver has support for the various CS delays requested through struct spi_message, we don't need to add a separate delay to the CS assertion instruction. Otherwise, we end up with longer than requested delays. Signed-off-by: David Lechner --- drivers/spi/spi-axi-spi-engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-axi-spi-engine.c b/drivers/spi/spi-axi-spi-engine.c index 3798f96da586..78221715ba81 100644 --- a/drivers/spi/spi-axi-spi-engine.c +++ b/drivers/spi/spi-axi-spi-engine.c @@ -194,7 +194,7 @@ static void spi_engine_gen_cs(struct spi_engine_program *p, bool dry, if (assert) mask ^= BIT(spi_get_chipselect(spi, 0)); - spi_engine_program_add_cmd(p, dry, SPI_ENGINE_CMD_ASSERT(1, mask)); + spi_engine_program_add_cmd(p, dry, SPI_ENGINE_CMD_ASSERT(0, mask)); } /* -- 2.43.0