Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 085DCC433DF for ; Sat, 6 Jun 2020 11:28:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8D7120663 for ; Sat, 6 Jun 2020 11:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728710AbgFFL2B (ORCPT ); Sat, 6 Jun 2020 07:28:01 -0400 Received: from kernel.crashing.org ([76.164.61.194]:39722 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgFFL2B (ORCPT ); Sat, 6 Jun 2020 07:28:01 -0400 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 056BRtO9000336 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 6 Jun 2020 06:27:59 -0500 Message-ID: <27de874d84efb0314756ad4bcb8eeaf263a8951b.camel@kernel.crashing.org> Subject: CS# timings From: Benjamin Herrenschmidt To: linux-spi@vger.kernel.org Date: Sat, 06 Jun 2020 21:27:55 +1000 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Hi ! I noticed that nothing in tree calls spi_set_cs_timing() Did I miss some subtle macro trick defeating my grep ? Or is no driver putting any requirements on CS# assertion/release and delay between them ? For example, the Spansion flash I'm looking at (S25FL128S) has a tCS (delay between commands basically) of 50ns for program or erase commands, which is quite significant. Do we do anything to ensure this isn't violated ? Cheers, Ben.