From: guido@vanguardiasur.com.ar (Guido Martínez)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RESEND 1/9] drm/i2c: tda998x: move drm_i2c_encoder_destroy call
Date: Wed, 25 Jun 2014 00:55:22 -0300 [thread overview]
Message-ID: <20140625035522.GB9466@fox> (raw)
In-Reply-To: <20140624163813.GJ3705@n2100.arm.linux.org.uk>
Hi Russell,
On Tue, Jun 24, 2014 at 05:38:13PM +0100, Russell King - ARM Linux wrote:
> On Tue, Jun 17, 2014 at 11:17:03AM -0300, Guido Mart?nez wrote:
> > Currently tda998x_encoder_destroy() calls cec_write() and reg_clear(),
> > as part of the release procedure. Such calls need to access the I2C bus
> > and therefore, we need to call them before drm_i2c_encoder_destroy()
> > which unregisters the I2C device.
> >
> > This commit moves the latter so it's done afterwards.
> >
> > Signed-off-by: Guido Mart?nez <guido@vanguardiasur.com.ar>
> > Signed-off-by: Ezequiel Garc?a <ezequiel@vanguardiasur.com.ar>
> > Cc: <stable@vger.kernel.org> #v3.9+
>
> You really should have sent this with me in the To: header as I'm now the
> maintainer of this driver. Yes, this is a valid fix, and I'll apply it
> shortly. Thanks.
Sorry about that, I'm still kind of new to this whole deal. I'll keep it
mind for future patches.
Thanks,
Guido
> > ---
> > drivers/gpu/drm/i2c/tda998x_drv.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
> > index 240c331..db9515f 100644
> > --- a/drivers/gpu/drm/i2c/tda998x_drv.c
> > +++ b/drivers/gpu/drm/i2c/tda998x_drv.c
> > @@ -1183,7 +1183,6 @@ static void
> > tda998x_encoder_destroy(struct drm_encoder *encoder)
> > {
> > struct tda998x_priv *priv = to_tda998x_priv(encoder);
> > - drm_i2c_encoder_destroy(encoder);
> >
> > /* disable all IRQs and free the IRQ handler */
> > cec_write(priv, REG_CEC_RXSHPDINTENA, 0);
> > @@ -1193,6 +1192,7 @@ tda998x_encoder_destroy(struct drm_encoder *encoder)
> >
> > if (priv->cec)
> > i2c_unregister_device(priv->cec);
> > + drm_i2c_encoder_destroy(encoder);
> > kfree(priv);
> > }
> >
> > --
> > 2.0.0
> >
>
> --
> FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
> improving, and getting towards what was expected from it.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Guido Mart?nez, VanguardiaSur
www.vanguardiasur.com.ar
next prev parent reply other threads:[~2014-06-25 3:55 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1402110128-30471-1-git-send-email-guido@vanguardiasur.com.ar>
2014-06-17 14:17 ` [PATCH/RESEND 0/9] drm: tilcdc driver fixes Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 1/9] drm/i2c: tda998x: move drm_i2c_encoder_destroy call Guido Martínez
2014-06-24 16:38 ` Russell King - ARM Linux
2014-06-25 3:55 ` Guido Martínez [this message]
2014-06-17 14:17 ` [PATCH/RESEND 2/9] drm/tilcdc: panel: fix dangling sysfs connector node Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 3/9] drm/tilcdc: slave: " Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 4/9] drm/tilcdc: tfp410: " Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 5/9] drm/tilcdc: panel: fix leak when unloading the module Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 6/9] drm/tilcdc: fix release order on exit Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 7/9] drm/tilcdc: fix double kfree Guido Martínez
2014-06-17 14:17 ` [PATCH/RESEND 8/9] drm/tilcdc: remove submodule destroy calls Guido Martínez
2014-06-24 22:06 ` Darren Etheridge
2014-06-25 3:53 ` Guido Martínez
2014-06-25 14:53 ` Ezequiel García
2014-06-17 14:17 ` [PATCH/RESEND 9/9] drm/tilcdc: replace late_initcall with module_init Guido Martínez
2014-06-24 22:04 ` Darren Etheridge
2014-06-25 13:00 ` Russell King - ARM Linux
2014-06-25 13:13 ` Russell King - ARM Linux
2014-06-25 14:32 ` Ezequiel García
2014-06-25 14:46 ` Russell King - ARM Linux
2014-06-25 15:48 ` Ezequiel García
2014-06-19 13:41 ` [PATCH/RESEND 0/9] drm: tilcdc driver fixes Darren Etheridge
2014-06-19 16:25 ` Guido Martínez
2014-06-24 0:26 ` Guido Martínez
2014-06-27 22:08 ` Darren Etheridge
2014-06-28 10:51 ` Rob Clark
2014-07-08 10:03 ` Daniel Vetter
2014-07-01 23:39 ` Guido Martínez
2014-07-02 2:31 ` Darren Etheridge
2014-07-02 4:08 ` Dave Airlie
2014-07-02 20:38 ` Ezequiel García
2014-07-08 1:32 ` Dave Airlie
2014-07-01 23:52 ` Guido Martínez
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=20140625035522.GB9466@fox \
--to=guido@vanguardiasur.com.ar \
--cc=linux-arm-kernel@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).