Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp826085imu; Thu, 13 Dec 2018 05:14:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDcMEPAhy+QcmC/l3jNECJY4Um4ojg9RSmmIMRD2znIfOmffWUEQkKFQ8Zh+mbskZLR48p X-Received: by 2002:a17:902:7e44:: with SMTP id a4mr3684741pln.338.1544706850500; Thu, 13 Dec 2018 05:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544706850; cv=none; d=google.com; s=arc-20160816; b=Sea6GsxE6rRbB8d07htNfwRZM6z58/1zWYro/FeZzmny49SQPE9KUbBS8YcjKuvfL1 eAm1Ql/CtTZ6Po8ZQGbWbQtTpj09IEpz9yCm+wopkKf1Y/1MlXNhVAmIeeGqZ53gIItZ My2m/amCm4ohxDxJcpp0GmdhTxgdy6TN/cSeVUUuUlOAWR9YhGlOsg8U3Mfyt2hbA2i3 S0dumf8Tyi7c6jbGllrzu+hyx0/ksHbQW5xTf6d+TGtS7++YaM8iFjjjFj4C0DfKDrsi L9xewxVBwCh0fbDV/vsa0en8WQEHafxtspD3mEAbrAjg6AO8VznsQZukr4Uw4gGxXYF5 PlOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JvgIjSEvgxiQGfTQolVGLFMtgSTEKzuygtmaD2uWolk=; b=RBs34lu+tWQO5FTBS57bb4mgJjhs+jeiLEbT9idL934ck+1MqcTqZK5YmeNiNUIty9 D4H7hC0j36CbtuIW0QS6eMSsKWYqPExU1H35g5ABYKnGYtPAjhimRyr2Fd1Ii+Cq5q/L ASFfEld31eD49GFqA+aBV1ngMZBQl3af2k3Z0I9u+OLA1qtHbgbGv0RU1tjbnHHT5Njy LWQOWhySOsPBRvcLGAdXe+P2zy9LVo2MfXndl891xZq3N7KfPqFf+kuUZ5lThtxuGNqT kQKexRKP1rHXpxU5poxgcMQkSp+mNRp/vKdwYJR89oPIj1VOlZykEN4wh4iIKKh0os9q q6tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si1482749plz.118.2018.12.13.05.13.53; Thu, 13 Dec 2018 05:14:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729348AbeLMNMG (ORCPT + 99 others); Thu, 13 Dec 2018 08:12:06 -0500 Received: from mail-sz2.amlogic.com ([211.162.65.114]:41518 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729171AbeLMNMG (ORCPT ); Thu, 13 Dec 2018 08:12:06 -0500 Received: from [10.28.18.96] (10.28.18.96) by mail-sz2.amlogic.com (10.28.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 13 Dec 2018 21:12:23 +0800 Subject: Re: [PATCH v2 2/3] spi: meson-axg: enhance output enable feature To: Neil Armstrong , Mark Brown CC: Yixun Lan , Jerome Brunet , Kevin Hilman , Carlo Caione , Jianxin Pan , Xingyu Chen , , , , References: <1544690354-16409-1-git-send-email-sunny.luo@amlogic.com> <1544690354-16409-3-git-send-email-sunny.luo@amlogic.com> <6ba11b0a-3629-5378-61c7-3cc364237f5c@baylibre.com> From: Sunny Luo Message-ID: Date: Thu, 13 Dec 2018 21:12:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <6ba11b0a-3629-5378-61c7-3cc364237f5c@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.18.96] X-ClientProxiedBy: mail-sz2.amlogic.com (10.28.11.6) To mail-sz2.amlogic.com (10.28.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On 2018/12/13 16:53, Neil Armstrong wrote: > Hi Sunny, > > On 13/12/2018 09:39, Sunny Luo wrote: >> The SPICC controller in Meson-AXG is capable of driving the CLK/MOSI/SS >> signal lines through the idle state (between two transmission operation), >> which avoid the signals floating in unexpected state. > > This is welcome, because it's really missing on GX... > I tried implementing it with pinctrl at [1], but it's complex. > > Can you provide more info on how we should implement in on GX to be on par ? > > [1] https://github.com/superna9999/linux/commit/9c3a95659dd532d186556c1570c54d79ea5a4d45 > GX is incapable of OEN. To be on par with it ,we have to pullup/down clk pin as you did at[1]. >> static const struct meson_spicc_data meson_spicc_gx_data = { >> - .max_speed_hz = 30000000, >> + .max_speed_hz = 30000000, > > Nitpick, but I would have kept the indentation here ... > >> }; >> >> static const struct meson_spicc_data meson_spicc_axg_data = { >> - .max_speed_hz = 80000000, >> + .max_speed_hz = 80000000, >> + .has_oen = true, > > same here > > Anywy it's nitpick, > ok, i will revert it next patch.