Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbaALNjI (ORCPT ); Sun, 12 Jan 2014 08:39:08 -0500 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:34977 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751026AbaALNi5 (ORCPT ); Sun, 12 Jan 2014 08:38:57 -0500 Date: Sun, 12 Jan 2014 13:38:50 +0000 From: Russell King - ARM Linux To: Jean-Francois Moine Cc: dri-devel@lists.freedesktop.org, Rob Clark , Dave Airlie , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 20/28] drm/i2c: tda998x: move the TBG_CNTRL_0 register setting Message-ID: <20140112133849.GT15937@n2100.arm.linux.org.uk> References: <20140109120607.6a33bee5@armhf> <20140111183648.GH15937@n2100.arm.linux.org.uk> <20140112132321.757f3fa7@armhf> <20140112123159.GS15937@n2100.arm.linux.org.uk> <20140112142000.1f3e5ab5@armhf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140112142000.1f3e5ab5@armhf> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 12, 2014 at 02:20:00PM +0100, Jean-Francois Moine wrote: > On Sun, 12 Jan 2014 12:31:59 +0000 > Russell King - ARM Linux wrote: > > > > So, in my patch 9, I was writing the REG_TBG_CNTRL_1 after writing > > > REG_TBG_CNTRL_0, and you refused it. Here, I write REG_TBG_CNTRL_0 > > > after the write of REG_TBG_CNTRL_1 in the HDMI sequence, and you still > > > don't agree. > > > > > > What is the right way? > > > > No, both NAKS are for the exact same issue. > > > > Patch 9 inserted the write to REG_TBG_CNTRL_1 after REG_TBG_CNTRL_0. > > Then in this patch you move REG_TBG_CNTRL_0 after all writes. > > > > Had you appropriately placed the write to REG_TBG_CNTRL_1 in patch 9 > > in the first place, _this_ patch (patch 20) would not be required to > > then move REG_TBG_CNTRL_0 after it. So, fixing patch 9 removes the > > need for patch 20. > > Fixing the patch 9 gives: > > /* > * Always generate sync polarity relative to input sync and > * revert input stage toggled sync at output stage > */ > reg = TBG_CNTRL_1_DWIN_DIS | TBG_CNTRL_1_TGL_EN; > if (adj_mode->flags & DRM_MODE_FLAG_NHSYNC) > reg |= TBG_CNTRL_1_H_TGL; > if (adj_mode->flags & DRM_MODE_FLAG_NVSYNC) > reg |= TBG_CNTRL_1_V_TGL; > reg_write(priv, REG_TBG_CNTRL_1, reg); > > /* must be last register set: */ > reg_clear(priv, REG_TBG_CNTRL_0, TBG_CNTRL_0_SYNC_ONCE); > > /* Only setup the info frames if the sink is HDMI */ > if (priv->is_hdmi_sink) { > /* We need to turn HDMI HDCP stuff on to get audio through */ > reg &= ~TBG_CNTRL_1_DWIN_DIS; > reg_write(priv, REG_TBG_CNTRL_1, reg); > reg_write(priv, REG_ENC_CNTRL, ENC_CNTRL_CTL_CODE(1)); > reg_set(priv, REG_TX33, TX33_HDMI); > > tda998x_write_avi(priv, adj_mode); > > if (priv->params.audio_cfg) > tda998x_configure_audio(priv, adj_mode, &priv->params); > } > > and REG_TBG_CNTRL_1 is set in the HDMI branch (with REG_ENC_CNTRL and > REG_TX33). > > Is this OK? I would find that acceptable to ack it as a replacement patch 9, thanks. -- FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad. Estimate before purchase was "up to 13.2Mbit". -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/