Received: by 10.213.65.68 with SMTP id h4csp856984imn; Sun, 25 Mar 2018 15:58:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELspzy9lh7tTKfH8RRHiBO2OqYRhBUSMYgnL+I5IWL6GachcsbHcwBd3iYn2OJE9hHZQ5YQN X-Received: by 10.99.95.135 with SMTP id t129mr26811502pgb.268.1522018711933; Sun, 25 Mar 2018 15:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522018711; cv=none; d=google.com; s=arc-20160816; b=oYUVvMSLXTajQkt4wW5yAi0r+DNepV+6iW/0RgooCaT903P0gkrMY/qEiGFDMA6UhC YjnaRm8G6f86MXd9M2k3+yYAa8gsUQsqtQmVAcRm6srWmp7AKHYYaGUdwDPd5h33W5Gt GqX+wY8OLTpgMo73VaGXdGxxvjeTAewZEBs9Zximd+tiU5CNpsAFqe69WVHeN/rOXp9y cgOlg5qBqJqI8W8GxWmTDdxp/nDrF06MZoMoPwVP6F2BAm8HyDzGpk5nSRWKchqvZq0s gKVEghoJxuANgSAs7k7l7pPRCYHS2b5RCVDQ2JZKfKea6/wiSRspB3A41qha6FQqCmKA VG8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ypHJAONT6gp95cnxwQlxrH13ZegVTPDUc4Ff33m5MTw=; b=OL4klPCqLDVI2OSE2HoFetaYE4IKQmfL67DGkNx5TBGYADCn50m3RZDeB7vmIx8z5S 1OPixHq3DiPIZU7sPF+MFahQ2ET8JpdD0ntcECYvOVcGvihnbDxsQGuqwY6HiFzOGXHC 0KZ1zMgL2bx9txeAxFcrtHankmnmBHuwKvylTi71qjfaRTJx6p/EXHFFHOmciD16aWR2 1w1VqKX02L2MbGY0lnzFxnknhrA8LMpj5NfVuLF92hYiGwnUjjWCC/pk5giAAm/8Y5Oe WQxDMCoyKayqyTD+xhWJisk5fz2JhNnDQ1Dbum7nd4dnxWfnNobkOktsqpTNCHzPYM4o Q5uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Geze6GcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f91-v6si1146330plb.178.2018.03.25.15.58.17; Sun, 25 Mar 2018 15:58:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Geze6GcH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbeCYW4w (ORCPT + 99 others); Sun, 25 Mar 2018 18:56:52 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39210 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbeCYW4s (ORCPT ); Sun, 25 Mar 2018 18:56:48 -0400 Received: by mail-wm0-f67.google.com with SMTP id f125so12111322wme.4; Sun, 25 Mar 2018 15:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ypHJAONT6gp95cnxwQlxrH13ZegVTPDUc4Ff33m5MTw=; b=Geze6GcHO8+Trmh/dERaInrFHjbRa5XaAMtdH2fBArLThIdQQ0hsRthloP9DP/m5iZ L4MH8JePl2tGtTEIFxf6xmQyU2KMSU/JTI1iG48y6HAkuX6K4TZLtQ3i0EeUbNElSx4H NVuqOCp2GZTw7zfxhj12p6Wp//d50qAI/Gc7TslR/QEOg9DueZ61g5qRjs+C7nb3xQa6 0u0ulK82YHJC1HYdqTx59rYfHkyG5nqRj5Vv2W+OqYAmvjAnAM5007g8i7iJDONC545H iY+OlX35QJ+/o8eXrQDJkH7Rxrsbd25alesqT/MVZqn7pLsi2Y/1TxmIhW/ib2aNxWq2 TYRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ypHJAONT6gp95cnxwQlxrH13ZegVTPDUc4Ff33m5MTw=; b=EedG6iJTDg9aARCmh5vtt8vtTwILLr2i4O3R622dkmWr7/WdWPRivW3n+gdQDVaj3m CbdTpE31lz6PSN+Htj4O/KZeos1A/GZ9AfV3siccbi4ITflkDJ+jJEcuAvuU4YpJ41TH i2/ps8WsePR6HHfEhuFRNHA7w0wfUwej10He6Ns1DsBFpSyixOlX+e9L9dHRyxUW45Mn 4sOckWy4nkuaX8yl4zMHNEbT3O22BYSMxIgAXPRbSgrNsgT5izh4oL42icoY/eGffD8P Hs/AnGbg7f8SKS48je/NtnvemVkv8U8troirDW3PVy7nkNJzx2bgo7rABql2g9q6Q3qo FbGQ== X-Gm-Message-State: AElRT7GKqLc/4T+jNMw5uTXKFBJ3ilWRArVI6UH8PWIy9r1hV+Okv8I3 tckugURazcSld9Nywo2C/xE= X-Received: by 10.28.131.134 with SMTP id f128mr13008715wmd.55.1522018607458; Sun, 25 Mar 2018 15:56:47 -0700 (PDT) Received: from smart-ThinkPad-T410.cisco.com ([5.79.84.75]) by smtp.gmail.com with ESMTPSA id p14sm29153564wrc.30.2018.03.25.15.56.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Mar 2018 15:56:46 -0700 (PDT) From: Nasser Afshin X-Google-Original-From: Nasser Afshin To: mchehab@kernel.org Cc: p.zabel@pengutronix.de, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, bparrot@ti.com, garsilva@embeddedor.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Nasser Afshin Subject: [PATCH] media: i2c: tvp5150: fix color burst lock instability on some hardware Date: Mon, 26 Mar 2018 03:26:33 +0430 Message-Id: <20180325225633.5899-1-Afshin.Nasser@gmail.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the datasheet, INTREQ/GPCL/VBLK should have a pull-up/down resistor if it's been disabled. On hardware that does not have such resistor, we should use the default output enable value. This prevents the color burst lock instability problem. Signed-off-by: Nasser Afshin --- drivers/media/i2c/tvp5150.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 2476d812f669..0e9713814816 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c @@ -328,7 +328,7 @@ static const struct i2c_reg_value tvp5150_init_default[] = { TVP5150_OP_MODE_CTL,0x00 }, { /* 0x03 */ - TVP5150_MISC_CTL,0x01 + TVP5150_MISC_CTL,0x21 }, { /* 0x06 */ TVP5150_COLOR_KIL_THSH_CTL,0x10 @@ -1072,7 +1072,8 @@ static int tvp5150_s_stream(struct v4l2_subdev *sd, int enable) * Enable the YCbCr and clock outputs. In discrete sync mode * (non-BT.656) additionally enable the the sync outputs. */ - val |= TVP5150_MISC_CTL_YCBCR_OE | TVP5150_MISC_CTL_CLOCK_OE; + val |= TVP5150_MISC_CTL_YCBCR_OE | TVP5150_MISC_CTL_CLOCK_OE | + TVP5150_MISC_CTL_INTREQ_OE; if (decoder->mbus_type == V4L2_MBUS_PARALLEL) val |= TVP5150_MISC_CTL_SYNC_OE; } -- 2.15.0