Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp668778rwb; Tue, 27 Sep 2022 03:03:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6iReInw5eLxKmSuofKr8/yX4SLSmIOScgJfcpqD46W01fLZjHHtD4UpRYOHK/+1jRnQrs6 X-Received: by 2002:a63:847:0:b0:439:22e4:8e49 with SMTP id 68-20020a630847000000b0043922e48e49mr23303887pgi.165.1664273027124; Tue, 27 Sep 2022 03:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664273027; cv=none; d=google.com; s=arc-20160816; b=S/e6AMe/Ni/JSB6wf1FlY/7eojIxPY2GGlZb+ojdg2UySIAAdwDy4kVMxnPAECXnQ+ QWR5Sy2OcIqC0gt12xlsDmKzGHOVYja7fwVH5uUa0Lqa5qLozlYsA8dZVKjUv9cebMzW cFl9m1gD9XYWsL6EKPg+uGQdfN/0+9SzraxowU0YEoY6b1gSsAw6vU+BSifdypu/3+mJ Q+lFe4t2buUXlR6DKzLO/ntQz8l0E1mD4ilU9EAHz9C4r9/ApA96TQ3hEEcOPayYR36h uSUlnumFkDpgb1n2yaXvETLsuU7oDRHK9tA4TOymIBvy3ojNEsWrJDye8x9LnfrYbuTC jvqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=o2YL47wkdNCtbQ/cDyQshFBYktZxHSBc3e+Im99MsKQ=; b=dIu1VMHvFfhhwrtRbewjdA+s7Hwmqg/CKqWJC6n8lduJ3aiMQL/jh+lYvql8oHqWzT 0OiaO4eTNDkGYYh+FgPZ7rEyqfPVQQbQ4YA2SApNCM7Ht89lb9nhd64VblEMAJt8SO/m I5vsIyS8n4W0Ed2RLO5QqCi/w79b0EG4CuQLkAwajqQC0tRzC6+uRhaOVaQF9IvXio+W Y1H5EFFPGxL2Izx/TSF00xHClGMbmwXlQj0fSgMwq19PNnG2orNHHV6vM2US+35YZLlo 57wBhBXPU6GRKMnFadxF8T2153wZhH2PEqNnAe9mvnQt3aGBz1CDEvDlYFkoDn7IOpCE zU/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=VOp1y0rI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020aa79433000000b00557ad9d3995si1331290pfo.105.2022.09.27.03.03.34; Tue, 27 Sep 2022 03:03:47 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=VOp1y0rI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbiI0JhE (ORCPT + 99 others); Tue, 27 Sep 2022 05:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbiI0Jgx (ORCPT ); Tue, 27 Sep 2022 05:36:53 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5334AA7216 for ; Tue, 27 Sep 2022 02:36:52 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id v28so1237613wrd.3 for ; Tue, 27 Sep 2022 02:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=o2YL47wkdNCtbQ/cDyQshFBYktZxHSBc3e+Im99MsKQ=; b=VOp1y0rIEFjW9MzzuluhjxgZIEMdat46QCY8sGRhrgJzo1NMRmb4BMl8L0wXZors0S f3lzBllNMQZ309rJbWYY7Q2sK+PCUb+zRbQIQPfjWbn5iaLGTrlAlnspt5fQYqeck1Fx AMgqE3gykkMsA1ME1JLAEXAPO0zchz3q2OOSBSMciSEGgTC6D5YkVb/L8pimqSzohK8P ZNlyOQTO4iy3bLeidV3Rck5y8OgieLRlnEt5P6NUlH2hpdR8noLM4XsIWA+l3S7++ik8 +g/n0YQGwqGiCuopypTiKRT0Sdl2CS5XPCLZ6aL60IQVr4qhGlTupyp77QZR5V5TqAOO CLGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=o2YL47wkdNCtbQ/cDyQshFBYktZxHSBc3e+Im99MsKQ=; b=KTJwmm/efCuh3+JHhxSChvWb8iapTv4JqktxkPgZxp/+NO9WM6T4RwJg6YBLRa4+pH /HvX52soehwgEBHcbTCf9dxilBgzl4Fon4GztY7XGcFtgaOIu0fxJI3MWaQUn75X/YVj 8kj0GckNrRLLZip3/oGcjFXTjXUSVhUoa/HLsLYNYLjRKTNYE+XMtZ71J9vyl7WxbEiC R6S1svJ1QQ0xFM2SZtX7KKJJHDALywWXosjgfsFwld/V+U+yGVTGvkYLstGp6OpzHhQ1 1xybCAvdpT014gTEbBUI1j5IVWR9uOlI2Bmucpk6QGSY1lIIdSk2t6h4sYYEocq8utFo AD8A== X-Gm-Message-State: ACrzQf1FHY9Lb045CwG+smFHOjGnqHOY4BUTJU0AFUtjuX9IJ7ODnf0I 9E0AfHQ2iA3oRGUk0h34ymD7Ww== X-Received: by 2002:adf:e309:0:b0:22c:c332:9af7 with SMTP id b9-20020adfe309000000b0022cc3329af7mr157623wrj.217.1664271410890; Tue, 27 Sep 2022 02:36:50 -0700 (PDT) Received: from [192.168.0.20] (210.145.15.109.rev.sfr.net. [109.15.145.210]) by smtp.gmail.com with ESMTPSA id g2-20020adff402000000b0022860e8ae7csm1314875wro.77.2022.09.27.02.36.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Sep 2022 02:36:50 -0700 (PDT) Message-ID: Date: Tue, 27 Sep 2022 11:36:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 0/2] spi: amlogic: meson-spicc: Use pinctrl to drive CLK line when idle Content-Language: en-US To: neil.armstrong@linaro.org, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, narmstrong@baylibre.com References: <20220809172017.215412-1-aouledameur@baylibre.com> <09081275-be9c-9d0c-856b-ed2df8fc0b13@linaro.org> From: Amjad Ouled-Ameur In-Reply-To: <09081275-be9c-9d0c-856b-ed2df8fc0b13@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,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 Hi Neil, On 9/27/22 10:30, Neil Armstrong wrote: > Hi Amjad, > > On 09/08/2022 19:20, Amjad Ouled-Ameur wrote: >> Between SPI transactions, all SPI pins are in HiZ state. When using >> the SS >> signal from the SPICC controller it's not an issue because when the >> transaction resumes all pins come back to the right state at the same >> time >> as SS. >> >> The problem is when we use CS as a GPIO. In fact, between the GPIO CS >> state change and SPI pins state change from idle, you can have a >> missing or >> spurious clock transition. >> >> Set a bias on the clock depending on the clock polarity requested >> before CS >> goes active, by passing a special "idle-low" and "idle-high" pinctrl >> state >> and setting the right state at a start of a message. >> >> Amjad Ouled-Ameur (2): >>    spi: dt-bindings: amlogic, meson-gx-spicc: Add pinctrl names for SPI >>      signal states >>    spi: meson-spicc: Use pinctrl to drive CLK line when idle >> >>   .../bindings/spi/amlogic,meson-gx-spicc.yaml  | 15 +++++++ >>   arch/arm64/boot/dts/amlogic/meson-gxl.dtsi    | 14 +++++++ >>   drivers/spi/spi-meson-spicc.c                 | 39 ++++++++++++++++++- >>   3 files changed, 67 insertions(+), 1 deletion(-) >> > > Will you send a v2 with comments adresses ? Planning to send it soon, thank you for the review. Regards, Amjad