From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C806C432C0 for ; Wed, 20 Nov 2019 09:31:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FCB222311 for ; Wed, 20 Nov 2019 09:31:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZYQF191v"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="DTMHBhxR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1FCB222311 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vGwl58TQ7qE/gShyPDbumkoRWsjstQNonzskf9HL15g=; b=ZYQF191vUYK5gH oZPdKhAKXAGwlO2OD8prQ4nW3v6XFeEko/GQU4BivWLtwMEg5HUDoTGVguBxuRP6FA+l9a2yh2eqB bHJPdxhILBzsCeaMS/IrhVpCAtI2ZF7DSv9et1Ct9KpwaXKqKmK228UvsZRW82LBrjJ/xmnvzeFS2 Q5XTuJcZRhBGVxJWwAftlwbrE85ytXpIBZwb8dFqKkdFrkcIdGXdO7PGlT02Tg7xF6zyy7PUin9iH bKndKSXue0d3B4SFxffxTIfP9jv6nBuJhOh2vFutgS+/URABbWACAMZbINZ1T0aik985kLIs04HzW cMGkcT1FIon7zdTh6QwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXML5-0003Nt-If; Wed, 20 Nov 2019 09:31:55 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXMKt-0003Ek-Hz; Wed, 20 Nov 2019 09:31:45 +0000 X-UUID: 74db9807a12e4c989173c8fa9876bd76-20191120 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=T3sDLo2K05Z/3ZcFow82bTWpYhK40YdPKIaIHVHrszc=; b=DTMHBhxRDbrLOgWKBS2brxxvhpGLB8+MrbqaGlwukjtDX4hLuuAU+4MnD9g+S+1gss7BmckkkM05Xkvj40a/9EaPRVvSseYF+44Mx0FBD9J0LcQpkwfXNGJKPgR1Og3Cv52WltXw6j2PCsRFHGKz1JwT3jaRr51BBZYQtPRZpcs=; X-UUID: 74db9807a12e4c989173c8fa9876bd76-20191120 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1201085929; Wed, 20 Nov 2019 01:31:35 -0800 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Nov 2019 01:31:37 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Nov 2019 17:31:26 +0800 Received: from [10.15.20.246] (10.15.20.246) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 20 Nov 2019 17:31:13 +0800 Message-ID: <1574242283.27063.5.camel@mbjsdccf07> Subject: Re: [PATCH 2/2] spi: mediatek: add cs timing configuration support From: luhua xu To: Mark Brown Date: Wed, 20 Nov 2019 17:31:23 +0800 In-Reply-To: <20191119181930.GF3634@sirena.org.uk> References: <1574053037-26721-1-git-send-email-luhua.xu@mediatek.com> <1574053037-26721-3-git-send-email-luhua.xu@mediatek.com> <20191119181930.GF3634@sirena.org.uk> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191120_013143_601041_61EF555D X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kate Stewart , wsd_upstream@mediatek.com, Leilk Liu , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Thomas Gleixner , Enrico Weigelt , Allison Randal Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Tue, 2019-11-19 at 18:19 +0000, Mark Brown wrote: > On Mon, Nov 18, 2019 at 12:57:17PM +0800, Luhua Xu wrote: > > Add configure SPI CS setup/hold/idle delays in terms > > of clk count support, and use one period of current > > spi speed as default if setup/hold/idle not indicated. > > We have added a generic way to specify delays like this via the > set_cs_timing() operation and related fields in the spi_device struct > which operate in terms of spi_delay - Alexandru Ardelean added them > recently. This supports both times and clock cycles as units so should > fit with what your hardware can do, the interface is new though so there > may be soem rough edges to worry about. I find the patch today. It's really a better idear. _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek