Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2679628rwr; Sat, 6 May 2023 17:18:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wp2FOsehcJuZ7kcgwHuISQxX1kjkNb66bcVlsjOiwJlecwE+RFQHdtBorRfwfOCiFVREj X-Received: by 2002:a17:90b:19d4:b0:24e:46f8:492a with SMTP id nm20-20020a17090b19d400b0024e46f8492amr5798592pjb.46.1683418728443; Sat, 06 May 2023 17:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683418728; cv=none; d=google.com; s=arc-20160816; b=FVRwFXt0Dm7wjM17r5HTvqhxyafq5VfIJ1c959uFkBwlwO1M7MceCZrXumcvMZBs+x /Sij0MH1Kwzo860elviE/mwG/KG5t2BomaoQnLVbYf1NewmECWjRWnsuSjnOBdzTyQcU CkaEtnlt7gv+Eb93XdfMR8uGRC7WjlER+Z7G03J3osWOzSjEp1eQj4kJfjtxGDVUF5Ms VelBxR/KSiRw5DSnxn+V/kLZSeTEjb1YTWLXor6ePEuDAYuShdaaQEzG92oQNMNp4cAP 9nWxbwqsR0ej1VZrhd+j42VO6wxv8gO8tDkpACSJl4CrXU7b8UMLE4fiOukFKIRd23kc L5WQ== 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=d9CMRNtxtAY+iVGmS9Nhh6aBEK5BkbQct2dEiCYBRLY=; b=Lgc+lw02iC0oh3G+CGtYxynnZlt+hDignfnO7nlhzwxlB2ak1LUc6rRoER3IE70rFl QmlGciwRfh+WRvkOI/xOu343N3yboQN2/o/p3fBlZEtiUZY1IYSwNXBC28DZ8jeaqTcj TDkh56mTRFXwLyctpfDtgRlVf066C8at8vmBr1FT2o8FZQsVM3FPshBYkm5E+wdKepqx NZwfD3SLGuz+OSgBPK99XUotRvprryBnfVStLTixycxnx2eHMS9W5Xk0l01+QfxQGs+C wRrv92iUqMKkNOqieFNDDgr1zBZ3qONkviIJocj3HmBncJ2VqxDeJlTX5tUNl7194KDq xlCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=REqdkMLC; 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 in16-20020a17090b439000b0024e13530c0dsi13621896pjb.38.2023.05.06.17.18.25; Sat, 06 May 2023 17:18:48 -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=REqdkMLC; 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 S230039AbjEFXel (ORCPT + 99 others); Sat, 6 May 2023 19:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjEFXej (ORCPT ); Sat, 6 May 2023 19:34:39 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081489D; Sat, 6 May 2023 16:34:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so38197523a12.0; Sat, 06 May 2023 16:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683416076; x=1686008076; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d9CMRNtxtAY+iVGmS9Nhh6aBEK5BkbQct2dEiCYBRLY=; b=REqdkMLCTy5UbebEqan+d2erjtQW+iSjh884sXj1Iqi4KYxB131TlOq+KW3UENuDWX THEXQaq1WHPMypuFmc4Ml820f1CQcnJiRhg6tIzULFl0U7XUdt/BtJkTqvBlwVHTKmZo RrSbBWgY5Z/a+YK/iUZyJUaxTyRDa7mKvcJHTFETzU4XSaLZ732eP3d9cicNn1c/FHPN C+JXs5T4yrUw/3HFnYtgw6Wf5giKRXIvUIVVXxDtuo2MW2/ES9apApq6gqqD8xswEo9j zbpg1K+6pf1+scu4m7KByOUFr/PIsJColgxbgMqpEgGBOkmBp8U6eoMr4U4Ufiv3pJG6 9psA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683416076; x=1686008076; 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=d9CMRNtxtAY+iVGmS9Nhh6aBEK5BkbQct2dEiCYBRLY=; b=PdsvNdGlUoRbXcbbZgMmFu+Iyi1BqLfcrBEooC4jalQH4tm1FP+Sptesf4uuME0bF/ d221ERnLS58MemaHLvl+nhJGRczw7tdOPSqfW4SVXX7aXGIjpfBC1J48TGIfjBjmrWLu /Tk0ievhjH88D+2zyr9k5lbbecWyGaDrzIo1JDxZ/FRXynZJD5Z1RrEXqY8OXJPyXhGV pICUv2aPoNJQ1MTxcXuFMl6iXIn7yTxAAk/a5WTulGx7Iue1J8iLNCepCWh6jx8CZv7G 0d47lJh9MQlIzU7KXxXsTkTmhs+R4sUhIqhgDd8nUJZbFil7VTtoW2uEnf1f40QekobQ 3gXg== X-Gm-Message-State: AC+VfDyn8PaBYPf98pIO+4rFISBYNvpIceYYf1Eug6KBjwzNfaqlrAWM BOtPHFrdVbRpWgDrGHUSnVeun878lvFFs5qecE8= X-Received: by 2002:a17:906:6a03:b0:933:4d47:55b7 with SMTP id qw3-20020a1709066a0300b009334d4755b7mr4790270ejc.2.1683416076334; Sat, 06 May 2023 16:34:36 -0700 (PDT) MIME-Version: 1.0 References: <20230506073018.1411583-1-bigunclemax@gmail.com> <20230506073018.1411583-4-bigunclemax@gmail.com> <20230506225848.3278d7ab@slackpad.lan> In-Reply-To: <20230506225848.3278d7ab@slackpad.lan> From: Maxim Kiselev Date: Sun, 7 May 2023 02:34:24 +0300 Message-ID: Subject: Re: [PATCH v2 3/6] 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 , Heiko Stuebner , 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 > Don't we need to set tfr->effective_speed_hz to the actually programmed > clock rate here? Yes, we should. Also we need to configure SPI sample mode by setting SDM and SDC bits in the SPI_TCR register. Please check a new version of this patch. https://lore.kernel.org/linux-arm-kernel/20230506232616.1792109-5-bigunclemax@gmail.com/