Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp493973imn; Tue, 26 Jul 2022 01:07:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbmKHHc1D9H0oKYthwRadwKrOVmo376h5jD6QnfWB12mNuiMV1JlawWBAzbcwkkV/CwJst X-Received: by 2002:a05:6a00:c8c:b0:52b:1169:6a6d with SMTP id a12-20020a056a000c8c00b0052b11696a6dmr16945329pfv.2.1658822862498; Tue, 26 Jul 2022 01:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658822862; cv=none; d=google.com; s=arc-20160816; b=PftnRNPmYU6QgfqnwMzXgQR+zNt4tjEdKr+khHrR70of3Lp69LrqqQbDj0MVgKVWN3 h2r8vUQXNzLiQd4smfsGCKO6FkO5365pA6LSOj7BrcNHKa4hxk9xHPwzsJFVYA0x72UP P1mfjq5OwHaSw9xMVSVQxj43K31b8CY1kdCdYoeg6B0+tYBKTyI5HOu+iCY9H17KJRIE iuO0uSDVzVik+LR8112PF0dedoMCYSWs21kWSWCfPs/pzQx9/jeryLyr1kOwNxXOG3YA /8WHWgFOwWsXSG66B68fH+Zo3mrhWMF8p5CLgewiD8vsZ3Tyt/Qyhf4QI5r8+u2E7NsB IetQ== 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=tGKM8TxdBMi0PkUssZOOQckwTpSbR7y+SZZIKa/SWFE=; b=COZNCd7HaAW6MMJSu3CyAIa6W4b2TUgxLtP9uZNJBhImQy77jx+HbgPL6l0OF3nnud qQgPN+kzmHgraSOY1eCpUqF0llCiMPVgpLDUMsGRYmp7nHtGBRSSLdMUVvjuBeSB+s45 hzIwAVrEoOE9qS8y0nJ8CaVJ69NCV93VY6raVOmRUQ3a7+3opHiVzWQLroBjO+8M/Ke2 kWhXHqlH3shpDC06CC1Y+Jc2uN9Orq1wLt70aGFtdy2FT7IWPu/K1FVE3xJAgxqyGmHL Uy/l/BrPNNX/fttNgx5NbGJb3sHop4oGa15HmV/NlQ/9ph9gXRUYw4FpBJBdSeyF9gFZ w1Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NWLwDpDG; 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 7-20020a630907000000b0041998725e16si17251589pgj.508.2022.07.26.01.07.27; Tue, 26 Jul 2022 01:07:42 -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=NWLwDpDG; 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 S238522AbiGZHeY (ORCPT + 99 others); Tue, 26 Jul 2022 03:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238342AbiGZHeJ (ORCPT ); Tue, 26 Jul 2022 03:34:09 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E7B2B634; Tue, 26 Jul 2022 00:31:17 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id m8so16668530edd.9; Tue, 26 Jul 2022 00:31:17 -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=tGKM8TxdBMi0PkUssZOOQckwTpSbR7y+SZZIKa/SWFE=; b=NWLwDpDGpk70FKVxZ6gOMDaO8pthO+KcyrH8OWvzNXp+tmRsrpQIY9x8LSPaU2lQOb kYPum3tYWz7hUhuw9lBBPfcEOjhr+DxWTL7t5sT5RkwRuqaYeVjfdSep+Pn7tWfIQiAP PvOtuTeQQp6myRbeo/IwT3hOdZlgrYow3mcdWB82P5In9I0cZp0TvTTaWZxH4UDtFrVz WkGEUAiJPBBuciCGdhM6hF1naan7wltNU8toT8+dk9F4BNgMweObyAjF7byhLF12zzZo SqSdPp/ZhW3ZhAnFa6+p3ZHiFe60MnEFJqQZG2cWZjYBrvKeK3iEFGhYCCZXrRsCu/qn C7ww== 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=tGKM8TxdBMi0PkUssZOOQckwTpSbR7y+SZZIKa/SWFE=; b=gz/Nj6B0YBjSrwu8hTvg3pShqxE3UKP+nO1/B1DwnfHOsIT08vvgmHg+ZAo0DQ8j+h ho9U5Q0U1lHQmAQKs+SCpeyKw2INMgfhiNCXly/KAhMWQaGGIaDm64glsKReMhlXGxxP C4M6Jk+yipDyMbElYlnn1qKymRyzrUA2KghyJ0D8hYhC6cytriiWZPuUKKwb6aMulMQT F75LA95232wqzrfcx1ylOKriPa2bN3iznpY38SbF6M8zzE5TRqoUS33QPCNJD4Vkp2n5 YJZ2PYeE9JUV0jtfIL4rCwHMUHfrmha/RFWCe3TXVCRB/GeUJvK5vhqutx8B+5UkzKpi aGHw== X-Gm-Message-State: AJIora8gd+khSRLz7D4GC79PYyUD6ThTobYY823V7ASY2nX2iV9ZrfnW hVI6GAbsoFAKIzBaO8/RhRDqLfuzV4T44FS0dnydpGXuuT22iA== X-Received: by 2002:a05:6402:5c8:b0:433:545f:a811 with SMTP id n8-20020a05640205c800b00433545fa811mr17043040edx.101.1658820676077; Tue, 26 Jul 2022 00:31:16 -0700 (PDT) MIME-Version: 1.0 References: <20220721093422.2173982-1-marcus.folkesson@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 26 Jul 2022 09:30:38 +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 Tue, Jul 26, 2022 at 9:23 AM Linus Walleij wrote: > On Tue, Jul 26, 2022 at 8:55 AM Andy Shevchenko > wrote: > > On Tue, Jul 26, 2022 at 12:22 AM Linus Walleij wrote: > > > > Well it will work, because all values come out, however *during* > > > the transfer, not *after* the transfer as intended with the > > > STR signal. > > > > No. I think you missed one little but crucial detail. The strobe is > > edge, not level, while you consider CS as a level signal (only). > > Aha! Then it works :) > > > See Figure 7 and Table 9 in the datasheet you linked to. When STR is > > low, the data is not changed. Maybe it's not clear in this datasheet, > > I found somewhere > > in a more clear table. > > > > > At least how I see it ...? > > > > If what you are saying is true, the hardware is totally broken and I > > wouldn't use it. I.o.w. if the strobe passes all data when it's at low > > level and latches at low-to-high, it's broken by definition in my > > point of view. > > I have seen strobes that are level-active in my life, but if you > say this one isn't then all is fine! It's rather my common sense, because we have a clock here to shift a register. It's kinda obvious *to me* that when we have a latch, that latch shouldn't pass data on a level. Yes, there are buffers with level strobe, but it's different. So, as I said, the oscilloscope can finish our discussion one way or the other, but I believe it will be my way ;) I will very (badly) surprised if it becomes your way. It will ruin my beliefs in humanity. Not less. -- With Best Regards, Andy Shevchenko