From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH] SPI: spi-pxa2xx: SPI support for Intel Quark X1000 Date: Fri, 26 Sep 2014 17:22:37 +0300 Message-ID: <1411741357.22717.4.camel@linux.intel.com> References: <1411752349-31490-1-git-send-email-alvin.chen@intel.com> <1411752349-31490-2-git-send-email-alvin.chen@intel.com> <20140926100832.GE27755@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Weike Chen , Eric Miao , Russell King , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Mika Westerberg , Hock Leong Kweh , Boon Leong Ong , Raymond Tan To: Mark Brown Return-path: In-Reply-To: <20140926100832.GE27755@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org On Fri, 2014-09-26 at 11:08 +0100, Mark Brown wrote: > On Fri, Sep 26, 2014 at 10:25:49AM -0700, Weike Chen wrote: [] > It might also be helpful for review to have two > patches, one splitting things out into the functions and another adding > the Quark support. I also suggest to go this way. > > > +/* see Quark SPI data sheet for implementation rationale */ > > +static u32 quark_x1000_set_clk_regvals(u32 rate, u32 *dds, u32 *clk_div) > > +{ > > Please document this in the driver - I don't know if this datasheet is > public but even if it is it may not stay that way. Datasheet is public. I'm just wondering if we can use just a formula instead of table. -- Andy Shevchenko Intel Finland Oy