From: Pavel Machek Subject: Re: [PATCHv3 11/14] HSI: Introduce Nokia N900 modem driver Date: Sat, 19 Apr 2014 22:25:56 +0200 Message-ID: <20140419202556.GK5148@amd.pavel.ucw.cz> References: <1396053110-21639-1-git-send-email-sre@kernel.org> <1396053110-21639-12-git-send-email-sre@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1396053110-21639-12-git-send-email-sre@kernel.org> Sender: linux-omap-owner@vger.kernel.org To: Sebastian Reichel Cc: Sebastian Reichel , Linus Walleij , Shubhrajyoti Datta , Carlos Chinea , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Pali =?iso-8859-1?Q?Roh=E1r?= , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , Joni Lapilainen , Aaro Koskinen List-Id: devicetree@vger.kernel.org On Sat 2014-03-29 01:31:47, Sebastian Reichel wrote: > The Nokia N900's modem is connected via Synchronous Serial Interface (SSI), > which is a legacy version of MIPI's High-speed Synchronous Serial Interface > (HSI). > > The handles the GPIOs for enabling and resetting the modem and instanciates > ssi-protocol for data exchange. It does not yet support exchanging voice data > with the modem. > > Signed-off-by: Sebastian Reichel Reviewed-by: Pavel Machek > +static void do_nokia_modem_rst_ind_tasklet(unsigned long data) > +{ > + struct nokia_modem_device *modem = (struct nokia_modem_device *)data; > + > + if (!modem) > + return; > + > + dev_info(modem->device, "*** CMT rst line change detected ***\n"); Maybe slightly less stars would work? > +static int nokia_modem_gpio_probe(struct device *dev) > +{ > + struct device_node *np = dev->of_node; > + struct nokia_modem_device *modem = dev_get_drvdata(dev); > + int gpio_count, gpio_name_count, i, err; > + > + gpio_count = of_gpio_count(np); > + gpio_name_count = of_property_count_strings(np, "gpio-names"); > + > + if(gpio_count != gpio_name_count) { "if (". > + modem->ssi_protocol = hsi_new_client(port, &ssip); > + if (modem->ssi_protocol == NULL) { ...if (! ...) > + dev_err(dev, "Could not register ssi-protocol device\n"); > + goto error2; > + } > + > + err = device_attach(&modem->ssi_protocol->device); > + if (err == 0) { if (!...) Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html