From: Fabio Estevam <festevam@gmail.com> To: Tim Harvey <tharvey@gateworks.com> Cc: linux-media <linux-media@vger.kernel.org>, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel <linux-kernel@vger.kernel.org>, Hans Verkuil <hansverk@cisco.com>, Mauro Carvalho Chehab <mchehab@s-opensource.com>, Philipp Zabel <p.zabel@pengutronix.de>, Steve Longerbeam <slongerbeam@gmail.com>, Hans Verkuil <hverkuil@xs4all.nl>, Shawn Guo <shawnguo@kernel.org> Subject: Re: [alsa-devel] [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver Date: Sat, 16 Dec 2017 17:32:47 -0200 [thread overview] Message-ID: <CAOMZO5BUyF_E3aQByD2=4CxB-+DP189QAXMUA=AgOnq99wzmRg@mail.gmail.com> (raw) In-Reply-To: <1510253136-14153-4-git-send-email-tharvey@gateworks.com> Hi Tim, On Thu, Nov 9, 2017 at 4:45 PM, Tim Harvey <tharvey@gateworks.com> wrote: > +static int tda1997x_set_power(struct tda1997x_state *state, bool on) > +{ > + int ret = 0; > + > + if (on) { > + ret = regulator_bulk_enable(TDA1997X_NUM_SUPPLIES, > + state->supplies); > + msleep(300); Didn't you miss a 'return ret' here? Otherwise regulator_bulk_disable() will always be called below. > + } > + > + ret = regulator_bulk_disable(TDA1997X_NUM_SUPPLIES, > + state->supplies); > + return ret; > +}
WARNING: multiple messages have this Message-ID (diff)
From: Fabio Estevam <festevam@gmail.com> To: Tim Harvey <tharvey@gateworks.com> Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Shawn Guo <shawnguo@kernel.org>, linux-kernel <linux-kernel@vger.kernel.org>, Hans Verkuil <hansverk@cisco.com>, Mauro Carvalho Chehab <mchehab@s-opensource.com>, Philipp Zabel <p.zabel@pengutronix.de>, Steve Longerbeam <slongerbeam@gmail.com>, Hans Verkuil <hverkuil@xs4all.nl>, linux-media <linux-media@vger.kernel.org> Subject: Re: [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver Date: Sat, 16 Dec 2017 17:32:47 -0200 [thread overview] Message-ID: <CAOMZO5BUyF_E3aQByD2=4CxB-+DP189QAXMUA=AgOnq99wzmRg@mail.gmail.com> (raw) In-Reply-To: <1510253136-14153-4-git-send-email-tharvey@gateworks.com> Hi Tim, On Thu, Nov 9, 2017 at 4:45 PM, Tim Harvey <tharvey@gateworks.com> wrote: > +static int tda1997x_set_power(struct tda1997x_state *state, bool on) > +{ > + int ret = 0; > + > + if (on) { > + ret = regulator_bulk_enable(TDA1997X_NUM_SUPPLIES, > + state->supplies); > + msleep(300); Didn't you miss a 'return ret' here? Otherwise regulator_bulk_disable() will always be called below. > + } > + > + ret = regulator_bulk_disable(TDA1997X_NUM_SUPPLIES, > + state->supplies); > + return ret; > +}
next prev parent reply other threads:[~2017-12-16 19:32 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-09 18:45 [PATCH v3 0/5] TDA1997x HDMI video receiver Tim Harvey 2017-11-09 18:45 ` Tim Harvey 2017-11-09 18:45 ` [PATCH 1/5] MAINTAINERS: add entry for NXP TDA1997x driver Tim Harvey 2017-11-09 18:45 ` [PATCH 2/5] media: dt-bindings: Add bindings for TDA1997X Tim Harvey 2017-11-09 18:45 ` Tim Harvey 2017-11-22 7:36 ` Sakari Ailus 2017-11-22 7:36 ` Sakari Ailus 2017-11-23 4:37 ` Tim Harvey 2017-11-23 8:25 ` Sakari Ailus 2017-11-23 8:25 ` Sakari Ailus 2017-11-29 15:54 ` Tim Harvey 2017-11-29 15:54 ` Tim Harvey 2017-11-09 18:45 ` [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver Tim Harvey 2017-11-15 15:52 ` Rob Herring 2017-11-15 15:52 ` Rob Herring 2017-11-15 18:31 ` Tim Harvey 2017-11-15 18:31 ` Tim Harvey 2017-11-16 4:30 ` Rob Herring 2017-11-16 4:30 ` Rob Herring 2017-11-23 4:49 ` Tim Harvey 2017-11-23 4:49 ` Tim Harvey 2017-12-12 12:18 ` Hans Verkuil 2017-12-13 23:33 ` Tim Harvey 2017-12-13 23:33 ` Tim Harvey 2017-12-14 10:11 ` Hans Verkuil 2017-12-14 10:11 ` Hans Verkuil 2017-11-20 15:39 ` Hans Verkuil 2017-11-23 4:27 ` Tim Harvey 2017-11-23 4:27 ` Tim Harvey 2017-11-23 8:08 ` Hans Verkuil 2017-11-23 8:08 ` Hans Verkuil 2017-11-29 15:47 ` Tim Harvey 2017-12-16 19:32 ` Fabio Estevam [this message] 2017-12-16 19:32 ` Fabio Estevam 2017-12-18 22:21 ` [alsa-devel] " Tim Harvey 2017-12-18 22:21 ` Tim Harvey 2017-11-09 18:45 ` [PATCH 4/5] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx Tim Harvey 2017-11-09 18:45 ` [PATCH 5/5] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x Tim Harvey 2017-11-09 18:45 ` Tim Harvey
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAOMZO5BUyF_E3aQByD2=4CxB-+DP189QAXMUA=AgOnq99wzmRg@mail.gmail.com' \ --to=festevam@gmail.com \ --cc=alsa-devel@alsa-project.org \ --cc=devicetree@vger.kernel.org \ --cc=hansverk@cisco.com \ --cc=hverkuil@xs4all.nl \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=mchehab@s-opensource.com \ --cc=p.zabel@pengutronix.de \ --cc=shawnguo@kernel.org \ --cc=slongerbeam@gmail.com \ --cc=tharvey@gateworks.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.