Message ID | 20230104093631.15611-1-marcan@marcan.st |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5053494wrt; Wed, 4 Jan 2023 01:38:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXuFkA9MdgI8ko4KVTIT2gWZqp/DlVgckRghRjcNfQr0NyZY53prIOiHsGVkL9QFzuxMGnAY X-Received: by 2002:a17:90a:eb03:b0:225:b9df:c4a3 with SMTP id j3-20020a17090aeb0300b00225b9dfc4a3mr45611412pjz.3.1672825118126; Wed, 04 Jan 2023 01:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672825118; cv=none; d=google.com; s=arc-20160816; b=vDhrVjTKAK7/f273lYcZr7WH4y5lf/AdS9Epscu8HpM6qx81wzEd9hYO+p7y+lH86B Ng6VvprWHhTfF+x0XI3GN4RaT8VDASdOtyGsEVQAoYNj0U+IVQ6qP98RRngv12UVRTXB 8+85QogZEU7j3GJq0+76i3zanYCv9xPGDRvRWH+CYmTHnp24CXeaw/SJUF6Z5tUryNlB /AnTC38LQN+Dx8BNqWMFeEbLMdiaCOkn9W2TjjXS4SKTbXRlPDccdoMRvG0llYPZhZQ+ 1k6hzB1pvfHPo/mgN28URoguReJNVrIMB720XFM/1qw9OwWAAjgAkIdsEFRVbTAs/em+ jF9Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8VwjpLrlcjW589IAUb0+TinIwUtcwjkZGcliBpSvDwk=; b=j3rBtQZRuTJWTpaEPxPGxr/vc6v8s4/+iZzxNWsMbbhMGR0TZ1Pp5m9xl3mr04O7a8 ojl1L697SCmonRlYGBDvgXMln2zbup1S/PFml8ttHgq1f24vRmGb4zUywWePGmbW6Dl6 PjP3KRXA7JV14zCN0Pm7SVaTmMCb0S7hrx5XjUvOCUNdoGuyH/XE51LJPx327Nfc4jCV VzI1fABaLtwW3WaW0wnokNLE8dcnJLf9wTn/vTvWSaGfDdNTdA5wUFtqsfKDaEDBez6r oNuX7l8MRPKUNeKfEC0wrFfzvkJmdBGikAXL605oFqO04aKmwG+5TVoAEouoTJF3AfcX k2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=HA+GtbzM; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a635d13000000b0046ec3bdd048si34458681pgb.484.2023.01.04.01.38.23; Wed, 04 Jan 2023 01:38:38 -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=HA+GtbzM; 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 S233763AbjADJh1 (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Wed, 4 Jan 2023 04:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239136AbjADJhZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Jan 2023 04:37:25 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C049207; Wed, 4 Jan 2023 01:37:24 -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 8ADF141F72; Wed, 4 Jan 2023 09:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1672825042; bh=wFL5o824s6njbpw90C6rdrkcieXj4RdD7IB7plCdhis=; h=From:To:Cc:Subject:Date; b=HA+GtbzMSd6PMgKNFRMmMWVo3XY7vGSaudzxbGV4nrCy72NFVLx1Z0frbOL9ibNg+ nTY3t4aohXhmkGerj3+0Imeqo34jbN50pLiIbqM8LQPoK6kjOhotemOVfZAIo2Psmf FlzCKd7V202jAoMYP39gZ/64GWBj8Gw96r1abcZLcIf27jbKbkbZeSZ3NGgoW97gEE m77bO2EcqQxFrF7AN2v+Bg09sNvaeL5BTtXY1SWThmpYz6iXzmRsQ6o/92vvEhJiqd d2S4zUK1m3NprTy/xoeWShe+FFuQiX2of/suF8aBsWIzT3BRfFgnzJb3qCo1n/tSI3 5pkX2P5SfN89Q== From: Hector Martin <marcan@marcan.st> To: Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Tudor Ambarus <tudor.ambarus@microchip.com>, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, Janne Grunau <j@jannau.net>, Alyssa Rosenzweig <alyssa@rosenzweig.io>, asahi@lists.linux.dev, linux-kernel@vger.kernel.org, Hector Martin <marcan@marcan.st> Subject: [PATCH 0/5] SPI core CS delay fixes and additions Date: Wed, 4 Jan 2023 18:36:26 +0900 Message-Id: <20230104093631.15611-1-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754084270829506244?= X-GMAIL-MSGID: =?utf-8?q?1754084270829506244?= |
Series |
SPI core CS delay fixes and additions
|
|
Message
Hector Martin
Jan. 4, 2023, 9:36 a.m. UTC
Commits f6c911f3308c ("spi: dt-bindings: Introduce spi-cs-setup-ns property") and 33a2fde5f77b ("spi: Introduce spi-cs-setup-ns property") introduced a new property to represent the CS setup delay in the device tree, but they have some issues: - The property is only parsed as a 16-bit integer number of nanoseconds, which limits the maximum value to ~65us. This is not a reasonable upper limit, as some devices might need a lot more. - The property name is inconsistent with other delay properties, which use a "*-delay-ns" naming scheme. - Only the setup delay is introduced, but not the related hold and inactive delay times. This series fixes the issues and adds support for the two missing properties. Please pull in the first 3 patches as fixes for 6.2, to avoid introducing a problematic DT API in this release. The last two patches can wait until 6.3, though are probably harmless to throw in as fixes too, since they're trivial. Hector Martin (2): spi: dt-bindings: Rename spi-cs-setup-ns to spi-cs-setup-delay-ns spi: Rename spi-cs-setup-ns property to spi-cs-setup-delay-ns Janne Grunau (3): spi: Use a 32-bit DT property for spi-cs-setup-delay-ns spi: dt-bindings: Add hold/inactive CS delay peripheral properties spi: Parse hold/inactive CS delay values from the DT .../bindings/spi/spi-peripheral-props.yaml | 14 +++++++++-- drivers/spi/spi.c | 24 +++++++++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-)
Comments
On Wed, 04 Jan 2023 18:36:26 +0900, Hector Martin wrote: > Commits f6c911f3308c ("spi: dt-bindings: Introduce > spi-cs-setup-ns property") and 33a2fde5f77b ("spi: Introduce > spi-cs-setup-ns property") introduced a new property to represent the > CS setup delay in the device tree, but they have some issues: > > - The property is only parsed as a 16-bit integer number of nanoseconds, > which limits the maximum value to ~65us. This is not a reasonable > upper limit, as some devices might need a lot more. > - The property name is inconsistent with other delay properties, which > use a "*-delay-ns" naming scheme. > - Only the setup delay is introduced, but not the related hold and > inactive delay times. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/5] spi: dt-bindings: Rename spi-cs-setup-ns to spi-cs-setup-delay-ns commit: 38892ea4cefbb6ed3a91e76d3af84a1f8077d2d4 [2/5] spi: Rename spi-cs-setup-ns property to spi-cs-setup-delay-ns commit: e0fe6a31cac84735939c29d1e05055d58325c6c0 [3/5] spi: Use a 32-bit DT property for spi-cs-setup-delay-ns (no commit info) [4/5] spi: dt-bindings: Add hold/inactive CS delay peripheral properties (no commit info) [5/5] spi: Parse hold/inactive CS delay values from the DT (no commit info) All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark