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 D75E6C432C0 for ; Wed, 20 Nov 2019 09:31:47 +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 AAC7D22311 for ; Wed, 20 Nov 2019 09:31:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DICxOlNh"; 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 AAC7D22311 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-arm-kernel-bounces+infradead-linux-arm-kernel=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=6b0ZQv83NzThhJXZAVHMC6c0z0YfslViDOYFPQmFHpU=; b=DICxOlNh1ZzfuW Zm8qbC+bgfDOtNoJImBa7UAlgzt/2hYuRmcwhdD43UitDnQxIVa2t6leUFIZ4QSEpcSkbYi2uMxgN ISYVixSVGkWQCPMY+E70xrKp3Ocu2fPASJUlIDG+DFXK0LupJdV4Jwt1F2VRXzXprx02pqU6CxKzT Qir6fHLq1fU52uDkbAEdkkLtrmLpMRXi7dANq7Bjz/zYpQZ+rKPoi49M4Gt3FJklLENU/8LBGvHNu q2RZL8cwdhOk792R+hq1HR53HWJ5LCV4OeT6Te4eCbdYi6LVvMgsVz0t22SxUiNDV9j+hNqMqdNei OH9qEbW4czriP0U5drZA==; 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 1iXMKw-0003FW-Lo; Wed, 20 Nov 2019 09:31:46 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=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-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel