Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3300363rwr; Sun, 7 May 2023 08:44:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7duLO4tme6yaF9NG3K/NT961xsFwNw/mu+40Vcy0dZ1DCsSk0kg8F8Av88M+Xu4TmzkGef X-Received: by 2002:a05:6a20:12cd:b0:f2:535d:9a4f with SMTP id v13-20020a056a2012cd00b000f2535d9a4fmr10330195pzg.33.1683474241415; Sun, 07 May 2023 08:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683474241; cv=none; d=google.com; s=arc-20160816; b=iNwuEbHqqh2lwfmwduXJ2g+aDpj513CDSWocjECFNXxCPfTAp4fFi1JZ7ME6UuQhq3 7jTV+iS9B3pTLghQ1bo1Xf1q9tKtS7RAm7RWINATxdZ3zTI6tWqgtUPc3LOxznAUF1mw o8scWt3xHRSOOh2266TESiAVVfZLHvb/4EURbIj7uGuW57IeS/vlCmMBpIdv6UP31h2B Yy4cfrw26BZ9hr9kBkwqEobiU/1shuLBT1b3WnaIpBegTz1zQKSliukQQAPoOVwc8cTZ RdGsKBCiV9xTGDHxUPOeXSK0Fs4IY7bvekYB/O0YDQ0foTFc2bNEHbp+iMF/rbO0lSyk NwcA== 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=6k7of+oD7aUsR3ZuT5Ha6yGbmcWNRVYGMihlsEz0Xhg=; b=Bp5oIs9AddXy3l90+VZ0PACLYio/S/iZG78VorDHtM5KVf9fXBLWLXZrBLXvPmdNE9 LGnv1JsENjAj3HKxyUyRFUTmt0CySsoJ8whSUgMdTP55XR7r23TWYu+ljWLSjnFIO5Cz Ab8+GOKTqV1xn/BYGdb1G6vfK3Ml+nABkHfFOVjASKfNfJPprXgIRbCEiabHPE5b8+hS jgUik/hdRhpbZajhDc2XlFR2iG2kTga9XpkK7b1DAsVqCwk9t/OnOqyZQKQJud0puiav YLm2ZsQRGaoG0PplPPp2zeSrrwvj5znehwMzAnEeduX4PE3zDhCAsiMskbLd8EV5+Du7 yowg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cN8WCKzL; 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 a1-20020a17090a740100b002477bb336ebsi10738173pjg.6.2023.05.07.08.43.49; Sun, 07 May 2023 08:44: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=20221208 header.b=cN8WCKzL; 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 S229852AbjEGPKC (ORCPT + 99 others); Sun, 7 May 2023 11:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjEGPKA (ORCPT ); Sun, 7 May 2023 11:10:00 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A0CB9; Sun, 7 May 2023 08:09:59 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-956ff2399c9so675277866b.3; Sun, 07 May 2023 08:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683472198; x=1686064198; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6k7of+oD7aUsR3ZuT5Ha6yGbmcWNRVYGMihlsEz0Xhg=; b=cN8WCKzL3z0UDeYh32zhcfq6BPnbBq/473XGNaamAepsq0ySGTjyRZYn8xTBDG2mrx QYm9QwRYg8Z85CR6gGPTGK4GULfL8f+pKD68yRYQdXIAGUV3LBBHTnfMYJ8nYBT4jzVU Kn9p81vKiVi6kP10iYxs+NageUXik6ESyKb5ARp1JRLGmPNGA49Sd+KTCRZvAdso4I/f mKl6RD5w6Af+0s1ur//68pdNLm94Ol78n13MZ6N1Get+dRZGYcgDpqnGSWYnldDkRTnh fZkeXR5FGvujWH1pM8KZkj3kxKQWmSeIJMIfQgHkiDteGeqvZO31cZlUcdMTWKnGAx+i F5oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683472198; x=1686064198; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6k7of+oD7aUsR3ZuT5Ha6yGbmcWNRVYGMihlsEz0Xhg=; b=aGv4dL/ZDZkP0x+TcdafnycY/L0Tvkg46Na9CISz1n/a2yWV/n04zOsTeMlEzSpQAR +dmoOOhW1ukQnGhCAF7C7dEJ4zMrtRe8YAWp2m985rmRe8zFZQxKW4ADQVnMRxcZ30rX 7IEo5rOO7Liss6+Gx7SkYirvYVFy/eBbYivlOs/mQWTX5Ra7K0zsHca58DyFykUpG0lH t7x9Pjy9Cj5xPq0MOIjs72bh9+Vdk7yefNXAaRCCsho0EkXSePH6xsGVF77bmIS+eIIQ Fokl24OAGrXTS9j2oxJCy4dT4ZwMadN1lbh2MGXK64VcilfpLMYLbZAfs8eXsvv8D6t7 TIgw== X-Gm-Message-State: AC+VfDwreMo/Yq1Wkwxuz168Kvu5y7PwJgChHslg46gIoPW37KgjJAw1 W/Smq3OKvIwKbC1gp1LktKRX5W9uXwArinixDEE= X-Received: by 2002:a17:906:7955:b0:94f:9f76:c74f with SMTP id l21-20020a170906795500b0094f9f76c74fmr7323137ejo.52.1683472197958; Sun, 07 May 2023 08:09:57 -0700 (PDT) MIME-Version: 1.0 References: <20230506232616.1792109-1-bigunclemax@gmail.com> <20230506232616.1792109-4-bigunclemax@gmail.com> <20230507105150.31643b87@slackpad.lan> In-Reply-To: <20230507105150.31643b87@slackpad.lan> From: Maxim Kiselev Date: Sun, 7 May 2023 18:09:45 +0300 Message-ID: Subject: Re: [PATCH v3 3/5] spi: sun6i: add quirk for in-controller clock divider To: Andre Przywara Cc: Icenowy Zheng , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , Greg Kroah-Hartman , Maxime Ripard , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org 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,T_SCC_BODY_TEXT_LINE 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 > This case assumes that the SDM bit is zero already. I think just > masking both bits off above, right after the read, is the easiest, then > you can also lose the else branch below entirely. Thanks for this remark. I fixed it in the next revision.