Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp197439imn; Mon, 25 Jul 2022 13:50:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1srv0sRxLaZaJsbPBNqzfHn0Ow8exItBlgaC1gA3SxdrMs246JYz6L1/5Flvl037mvQm9tK X-Received: by 2002:a17:90b:1d81:b0:1f0:c03a:6500 with SMTP id pf1-20020a17090b1d8100b001f0c03a6500mr34512901pjb.50.1658782201049; Mon, 25 Jul 2022 13:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658782201; cv=none; d=google.com; s=arc-20160816; b=jkvbvgUw5h/Lxg5YXDJqKSgC543mD1hMPR36KhSzc1SektVo/SL2yghh4Rf/snPeAs 7ejCJPZt6nrhD6jEWqLARbOtIjoeFI/aJZylC/BzlRNuvq7VpetvdVudDF7K5gkQiMsp /5RKNg5VXY1ucKi/XUUDR5sRdXwcOhnd978LMw3vBc5R3r/jhv9Qa+o1AIMqhZw4YWlC tzM7D7rH1o1PeWnLh+cxczOdl1Hexc3MwAU/1qTPvbxQdzEHgRYLTLXn8RGj+4+tNlUd u2Aqw+6i4z2sAH3ePQkCu2TWjYGnijNG7cbqt+IjWcUKxaA9nCToAO8v8u5hOYeetnLk vGPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CzlvqtZ4sW/ElEWpOjSICTJbEHD0aNQ9entd4nvbv7Y=; b=1HdoZdpxxqazgtqNX4nO2D5VPirffsrALRyaaFT8slpEx7AqynymfO9j5m0eV0Q9Es UXhssm53ZB+VG5Pia3r/DYhNMnEULvM2mzkaTaS+tZ7rGYDfJT1XMm7BVFJRBh4wjtM7 RM3hDQhL/18RHRLUNbqecnGBj3uFNJhjpQZK3X67epM8weTpkZQSMjwnvqDKYJ5W2SF/ v7mB03KK8dZxJikBhRQdWHHOkKt5eduIKuTn0tV5z1E3LJdrqXcT8hCcSom65nsHn5Ec LJ4as9xELk+OAVtQ0xuGHD01ghAMPZcni3AQHtWBvbS7xftRZT9InO9hxnjQHksRXqj6 El1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kB7cXd7d; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a170902e84100b0016d300d7696si17258987plg.62.2022.07.25.13.49.44; Mon, 25 Jul 2022 13:50:01 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=kB7cXd7d; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237231AbiGYUmM (ORCPT + 99 others); Mon, 25 Jul 2022 16:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235916AbiGYUmL (ORCPT ); Mon, 25 Jul 2022 16:42:11 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A0E5639D; Mon, 25 Jul 2022 13:42:09 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id c72so12589550edf.8; Mon, 25 Jul 2022 13:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CzlvqtZ4sW/ElEWpOjSICTJbEHD0aNQ9entd4nvbv7Y=; b=kB7cXd7d/JNiJw4UHUCysp+SCyNBoKLAZbtLOINNgPIiTgSRGrS1D/B1btIP+jplUD hLfdMsEBa6uw9G0hc/4wjTVCyiEZmU8GPJG6U0EgDCyYgbq/k4EX6AfbTnZ3vez6my/S FjAdUeKOty6/PS30jBULBSk9jKE/DzPejB6hjxSWI16UhbMkGoqUy6fFJlMW5cxl7GDq hdhGJ3sMyv1RP7LLux2UpX25pTDj0FEwd9nuxuLRYd3YIPWdqogqPeQbx5UR4GQybDw6 rPoTr9e3Ymeh8CsUpWvKGaV6wPrIfEh5jftOQnAOMUtGNfYSVUkMS4/Tfk+Qpb9uvmqP kqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CzlvqtZ4sW/ElEWpOjSICTJbEHD0aNQ9entd4nvbv7Y=; b=mOeRTn9nRpWm53OqHw2Ul7pf4msH1B2E1OyhxPlz7KHEPQhgfmT4i+S0e+9UZattqm 2F+pD8PCKiLuykE4GPhPEzZ4AUxPy8o6rSvKq7cu7V/L8ggJw6pb69d2VRl34Og6CfmX gA4z186sizg8Qircb+IFivf2nB+e9rw8lv6SlgYsXVit0swqigAQThc7TPIFWoUqWsbP ks2Lx0H7qIQHT8vf9/5F7EclCc4OQV/RBxAgCYHBXhUuzQypt2nxc1om/h/OG9mAO77a C7T21BcyTE5invgUtlKvqwTjtDZKsZpZdOt7p5XBUBaDxPErbeVNelvFt/LNM33Xi1sQ 23ig== X-Gm-Message-State: AJIora8kHzTtJb3ktwo+lS9yYJNhaDu4w8UDFEtz9sLZ7M0BzgdvdfRe 9Hyuiw9Fxyj2YJXO6jJ/umGZTCoGKpNYa2EEX5s= X-Received: by 2002:a05:6402:34c5:b0:43a:8f90:e643 with SMTP id w5-20020a05640234c500b0043a8f90e643mr15004477edc.88.1658781727930; Mon, 25 Jul 2022 13:42:07 -0700 (PDT) MIME-Version: 1.0 References: <20220721093422.2173982-1-marcus.folkesson@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 25 Jul 2022 22:41:31 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: gpio-74x164: add support for CDx4HC4094 To: Linus Walleij Cc: Marcus Folkesson , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Mon, Jul 25, 2022 at 3:54 PM Linus Walleij wrote: > > On Mon, Jul 25, 2022 at 11:32 AM Andy Shevchenko > wrote: > > On Thu, Jul 21, 2022 at 11:32 AM Marcus Folkesson > > wrote: > > > > > > 74hc4094 and 75hc4094 works similar to 74x164 but has an additional > > > storage latch associated with each stage for strobing data from the > > > serial input to parallell buffer tri-state output. > > > > parallel > > > > > Add support for an optional strobe pin. > > > > Sorry for my absence of understanding, but why? > > SPI has MOSI, CLK, CS, where the last one is exactly for that. No? > > Forgive me if I misunderstand, but if you use CS that > way, the way that the SPI framework works is to assert > CS then transfer a few chunks over SPI (MOSI/CLK) > then de-assert CS. > > If CS is used for strobe, it is constantly asserted > during transfer and the sequence will be latched > out immediately as you write the SPI transfers and > the data is clocked through the register, making the > whole train of zeroes and ones flash across the > output pins before they stabilize after the SPI > transfer is finished. > > If you first do the SPI transfer, then strobe after > finished, this will not happen. > > Then it should be a separate pin, so this doesn't > happen, right? > > Yours, > Linus Walleij -- With Best Regards, Andy Shevchenko