From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Date: Thu, 15 Jan 2015 14:21:12 +0000 Subject: Re: [PATCH v2] spi: sh-msiof: Update calculation of frequency dividing Message-Id: List-Id: References: <1421286613-8240-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> In-Reply-To: <1421286613-8240-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nobuhiro Iwamatsu Cc: linux-spi , Linux-sh list , Sergei Shtylyov , Yoshihiro Shimoda Hi Iwamatsu-san, Thanks for the update! On Thu, Jan 15, 2015 at 2:50 AM, Nobuhiro Iwamatsu wrote: > @@ -804,7 +803,9 @@ static int sh_msiof_transfer_one(struct spi_master *master, > int ret; > > /* setup clocks (clock already enabled in chipselect()) */ > - sh_msiof_spi_set_clk_regs(p, clk_get_rate(p->clk), t->speed_hz); > + ret = sh_msiof_spi_set_clk_regs(p, clk_get_rate(p->clk), t->speed_hz); > + if (ret) > + return ret; I think this can be handled by the core, if we fill in spi_master.min_speed_hz. BTW, you should also CC Mark Brown when sending SPI patches. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds