Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp659470rwb; Fri, 13 Jan 2023 02:35:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlO6cNxMzcwy1EZ3+PGTmHvCQRh3Oo2FVY+l011e2yd1R60DKxPpN14hcXRuqxr/McQkWV X-Received: by 2002:a17:906:30c2:b0:7ae:c0b:a25c with SMTP id b2-20020a17090630c200b007ae0c0ba25cmr63547797ejb.13.1673606123171; Fri, 13 Jan 2023 02:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673606123; cv=none; d=google.com; s=arc-20160816; b=YhEEe+aDOA29jAy/OBC1BGd0njVFq0bNgKZfyuKzswMbG/oh5b0DFYNpIvTDuaf1QQ xzPH7di6mVY5O2sQhs70dg73SUy+JWL7xcj0Mu02kNrFeJRUtSwXxV8/74/zSQq0wop8 4oVqJJJLn3AukKWOk7VaatEtWpbKZT4p0qPnfK7oicVSABsU14RN0Yz9mwaeM5z8deJq TmKwcxUZIir9d4XNIJNLs7RhY/Uwp/6sI3BzP59dcFWrq/ptpn5oBQYzvlF9MEWLaw/e WKy6hEncc8rM1DVOOVZUzuXITl42q3BUEJZR6WNy5gYMtxwxA3+vsgQ+hfeg/yNmVuM6 psEA== 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=LRfG0MU82xMg886XJF1KQ7xCIYd0rOmitNg4bSUw954=; b=pV7U1U3zhzJkLw1eihMArlW02WP8IML+TfpQ3LkwdZiuB3tLE1OBX8B744V2JIC9at N38srhiMN81EwjB5INs1xmiQXRJa7CDuSCRNB59dl+IDdVTMDMPoQCd5anYOhRc+FJu9 CRcpmM22C/9fIT4mofuLvu7cTeN4PQMSmwmqD5HBZCOLHscwrOW7Xo7u+Z5jKL9pMqX6 C1fAcZlsiZ4XWOLAxU1WVac6mBDwyMOyI2Lp2Q/HWKHx320oRMFIdMi7Yygb0zr+BNSn WgO5UhwBwpPEJqk3iXYsiFS5JO1y3KIgWij3zvX9oNr65EygKXfragaykfn+lBX/uNra q1Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=YZrgvujq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a1709065d0d00b008674de1b5c6si4507652ejt.924.2023.01.13.02.35.09; Fri, 13 Jan 2023 02:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=YZrgvujq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241258AbjAMKYV (ORCPT + 51 others); Fri, 13 Jan 2023 05:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241198AbjAMKXm (ORCPT ); Fri, 13 Jan 2023 05:23:42 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78CF2DEA9; Fri, 13 Jan 2023 02:23:41 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sendonly@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 0606E42597; Fri, 13 Jan 2023 10:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1673605420; bh=fxnUPxMQfOKf9QNHPBDaDANUADvv1JFN7DwbvKgCdNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YZrgvujqp8be2tc3lP2yhiK7xnACtPrFKRW8NFtP3GuVfQ+IPnZsmzqk0sqY7arBi 4xLm1P09TugAtLEe27leiv7gMugA+o0x7omi1CYVz4k6khlFEwheC+iVn1oms1/V1f 69Z0RgW5z+VG40bjNBsNKl9ocrLzjjByhPlDGqipwGs6QqZP8Gqfir29ikEy2wcOFB 8WtWpqmf8hWe4GiKOWrlEnjUKB0PSoZmQKXzSeqTfplqg7li1LooPURQVoaOSvu+kO TAXpDL9qllak0WN5i2rdy96JCdXTEB2ZDt7zYJDBWIgegCVubpqhv98Br4ew/7Sluu 9sXSwo+3WWSGA== From: Hector Martin To: Mark Brown Cc: Rob Herring , Krzysztof Kozlowski , Tudor Ambarus , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, Janne Grunau , Alyssa Rosenzweig , asahi@lists.linux.dev, linux-kernel@vger.kernel.org, Hector Martin Subject: [PATCH v2 3/3] spi: Parse hold/inactive CS delay values from the DT Date: Fri, 13 Jan 2023 19:23:10 +0900 Message-Id: <20230113102309.18308-4-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230113102309.18308-1-marcan@marcan.st> References: <20230113102309.18308-1-marcan@marcan.st> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Janne Grunau Now that we support parsing the setup time from the Device Tree, we can also easily support the remaining hold and inactive time delay values. Signed-off-by: Janne Grunau Signed-off-by: Hector Martin --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 3f33934f5429..fc4f6308efd8 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2327,6 +2327,8 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi, /* Device CS delays */ of_spi_parse_dt_cs_delay(nc, &spi->cs_setup, "spi-cs-setup-delay-ns"); + of_spi_parse_dt_cs_delay(nc, &spi->cs_hold, "spi-cs-hold-delay-ns"); + of_spi_parse_dt_cs_delay(nc, &spi->cs_inactive, "spi-cs-inactive-delay-ns"); return 0; } -- 2.35.1