Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1047129imu; Tue, 11 Dec 2018 11:47:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WJaUW9+S9hhsFto9uSONJ8K0REyU9uPDGkm8qc4dSUSN7U1WVhf36+AUB3ow7BSm3geMdN X-Received: by 2002:a62:7c47:: with SMTP id x68mr17732596pfc.209.1544557670613; Tue, 11 Dec 2018 11:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544557670; cv=none; d=google.com; s=arc-20160816; b=LRBvHwFYLl5YxNaOF1/MBEtFTGxaB0mnIaX/G1TYd3YT3zaJOErusreH5+0W8ZJ0iP OFcgcXZMEyXSxzt2VsJZ6fDyRgXJI1fdyoCBk04tCW6amR6WhGSZg33VcWFexD/PJfYf X0MPlpSAspuGKjQGRPFZlvuyR3MtMjk37ZxpNkP1g7hACKUk8HMmfxNBJiIv8gchS9MG pfdx7WvR9vrHa30GAc5r92MkDU1o9ebYUaIqjnSwQ6muLOnVtXewFHv2wD9FJNwFfGOD KJAiYXjs7acxxXkFNzrdamhfJ4wQHrzIiQTQ0A7VObcd8MODVwTeyyxzPYi2eJmI2p2X ZUmw== 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:organization:from:references:cc:to:subject :dkim-signature; bh=jikI26sd6oTgWeXyOwyGMkr6RXQ0K0RYCFbgY70rXG8=; b=KYnlOEOQYUGWQB5eBdjSbP30Yu38KaLLiztBn+jT0OPLA7tXfrClJCjjYxjAMc6y+Z 2pu51GZWHbxuxx40HDvxs0ByF7q8xkP8k0QYlrdMhQkcNNFlH0ZazpyRooIQPUPDwwlW d2iGCceFgA6xYtsWVwSCo+gmQBDhC54Dvyt8gbxA/1LKeoQPnoBvj8iJXRd3KS0JKBjT AoitCBzPAWxbojyDf9RUsZ/al0ogJvobszCEDQVdLlLRL5MwtkTPd2zKi1/glPk9D4DF PJCBtzRu4UMHL8nybf4ngtrhN2lGfpAgxyG6+Sh1aq6D8J2Ojnb/W63TOns7J2o6sifn DPjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=RORL+k6C; 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 o5si12790607plk.360.2018.12.11.11.47.34; Tue, 11 Dec 2018 11:47:50 -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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=RORL+k6C; 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 S1726230AbeLKTpe (ORCPT + 99 others); Tue, 11 Dec 2018 14:45:34 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35584 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbeLKTpd (ORCPT ); Tue, 11 Dec 2018 14:45:33 -0500 Received: by mail-lf1-f66.google.com with SMTP id e26so11693792lfc.2 for ; Tue, 11 Dec 2018 11:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jikI26sd6oTgWeXyOwyGMkr6RXQ0K0RYCFbgY70rXG8=; b=RORL+k6C8HGdYhtF8OBNQrZ2qkt9NwV1Yi3GUrM5c/uxDE9tbtBd8yD2ViyCTrGQa1 ekTQ5sDU+1ggJJMUQVe0u590oi3SxtClcxytmONBW2RyrkwxxU64BNNuic7IZOTZqR3Y ylnuFs3+LZs64Vqehwh4BCqSDQz/rhy7Wh3VDN/WFSKj6p1mTPTopyAzPIx0BdP/F6nw VlOTHiq6I9yY3/7AegxeKqoK9PlT616TkLVoZ//ZleVL8l9fqmCYuRXLSN/T2k4U+qd4 yhDaWQozzYpWP4Yr4G8wi0k5YelBiVO+WdpLSxZCK5TwcYRZk3lnvLhrZc76oBmvlyY3 AmTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=jikI26sd6oTgWeXyOwyGMkr6RXQ0K0RYCFbgY70rXG8=; b=cMzxhLgVnOsoFfLh65Ee6xPOUa1vLtnkxYyAM+d91SiTk6z+m1IKCQC6pB8STt8prm 11qmr9/O73TvWpWq7IeHlXSeShjHw/Rj24o9hr76GdiZCRKyym8CBCa6nicFdrqi8CPR y591uWOmyfuBLnXs/GyUIIyJRRf1hWqhysSs7iHOy/tXznnoneA9W2oGeQGtdUFz1KN0 GYAlSuoKLjKzZewB0VYCugtBqkPuoEDtCn1UgW5Sc0E4kCts6zZbxpR9T/Kd1hzVh/5S 4KFewh0X1zKq1mymfW6aRawmNRRVdrnfzNJJ8ql5F8iAPpgqgelRtmBgLCoGidaNpEXE KvDw== X-Gm-Message-State: AA+aEWZPXqkmN+lozfHKKLES8FkqsEr3h0VfaeQeBWwZG+W1cDNBJV5r E/xLdeAjO5e1Aa9KKaDjPeD4qg== X-Received: by 2002:a19:5a05:: with SMTP id o5mr10929365lfb.140.1544557531468; Tue, 11 Dec 2018 11:45:31 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.85.248]) by smtp.gmail.com with ESMTPSA id h3sm2727086lfj.25.2018.12.11.11.45.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 11:45:30 -0800 (PST) Subject: Re: [PATCH v3 1/2] spi: Add Renesas R-Car Gen3 RPC SPI controller driver To: Mason Yang , broonie@kernel.org, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, boris.brezillon@bootlin.com, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Cc: juliensu@mxic.com.tw, Simon Horman , zhengxunli@mxic.com.tw References: <1544181199-3373-1-git-send-email-masonccyang@mxic.com.tw> <1544181199-3373-2-git-send-email-masonccyang@mxic.com.tw> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: Date: Tue, 11 Dec 2018 22:45:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1544181199-3373-2-git-send-email-masonccyang@mxic.com.tw> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/07/2018 02:13 PM, Mason Yang wrote: > Add a driver for Renesas R-Car Gen3 RPC SPI controller. > > Signed-off-by: Mason Yang [...] > diff --git a/drivers/spi/spi-renesas-rpc.c b/drivers/spi/spi-renesas-rpc.c > new file mode 100644 > index 0000000..cec5669 > --- /dev/null > +++ b/drivers/spi/spi-renesas-rpc.c > @@ -0,0 +1,776 @@ [...] > +static const struct soc_device_attribute r8a7795es1[] __initconst = { This __initconst shouldn't be there, it causes a build warning. > + { .soc_id = "r8a7795", .revision = "ES1.*" }, Wait, the driver doesn't really probe on R8A7795 yet! > + { /* sentinel */ } > +}; > + > +static void rpc_spi_hw_init(struct rpc_spi *rpc) > +{ > + int strtim; > + /* > + * NOTE: The 0x260 are undocumented bits, but they must be set. > + * RPC_PHYCNT_STRTIM is strobe timing adjustment bit, > + * 0x0 : the delay is biggest, > + * 0x1 : the delay is 2nd biggest, > + * On H3 ES1.x, the value should be 0, while on others, > + * the value should be 6. > + */ > + if (soc_device_match(r8a7795es1)) > + strtim = 0; > + else > + strtim = 6; [...] > +static const struct of_device_id rpc_spi_of_ids[] = { > + { .compatible = "renesas,r8a77995-rpc", }, We only support R8A77995 now. > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, rpc_spi_of_ids); [...] MBR, Sergei