From patchwork Sat Dec 29 17:07:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10744967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86FBA13AD for ; Sat, 29 Dec 2018 17:07:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7950B28A63 for ; Sat, 29 Dec 2018 17:07:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DB7828AE3; Sat, 29 Dec 2018 17:07:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0599128AB2 for ; Sat, 29 Dec 2018 17:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727539AbeL2RHz (ORCPT ); Sat, 29 Dec 2018 12:07:55 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45909 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbeL2RHz (ORCPT ); Sat, 29 Dec 2018 12:07:55 -0500 Received: by mail-pl1-f195.google.com with SMTP id a14so11206459plm.12 for ; Sat, 29 Dec 2018 09:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LixWnpehVNoPfXFEQn+kJGTokJpiPMy5ZsylAeis1hI=; b=B+E3uVZs58nG+5kyCz7RORkMWjdQwgZfjtCjnKeCfkryysZ6ChwNLZAD1Cy9LtZ2zo 6IM3gx9bqMgOYq/RF5qEbA4jHSZt1A/MzYBzb8H60y8kvKJSeRhb0qnNhxgJVoHTwszb ggcTw2/jxEr1wueCvGXm95p1WrF2tKJjOKn9Q980LM/LpXH6iwsmZWE1bYXWUOiKrud7 KlbOhbKylhtT1ewxtaFVpHAplwsw6iU7GsLdFh8ZNhfjpCxgvBwsst2IDCzRi3gDLEdk 2+smbXXnUMRb5hpdVn2uw8KWEqD9gWPbPQRC0zGScgzHrRAN25fB5ZO+kPVX2wPChNvt o0cg== 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:in-reply-to :references; bh=LixWnpehVNoPfXFEQn+kJGTokJpiPMy5ZsylAeis1hI=; b=gfhqN3FXQt1Nu4lDHY2TbGfdcfm/ECcwTYUPYGJKRlz7GQeGqxy+a8vWcPdl9bAFM6 MQy2+Gq/hYOeEtBOmDSmVxYX6MDDRF1gZMBT2Kf5IshseNvAHjohAOZI8Zc4OwSmVgo3 CILwrgbNTTMpXaRTEDPq0juW+7pZlapCJaj50vOVoax/a1yDOctOaKnQN4uxpdPmhU8i ndmRBmEU//za7aqSZrKhHM/G+iQxwO8ObVm04okijPRWD0z9Cjy5//0dCCGGou5vc+8n /JYOsYc8bT7ghf2yxRBSuWD+spec8XYNGheCeyFiCpnbpiLBNqmvLq6fhMWluPLHU0DD etEQ== X-Gm-Message-State: AJcUukcUHnflnE5VusqXMe89tBcRU9TDFrKnHMGeKwZfcW59OCyjVmDG A/BguTE7XdaEjEZ6lLbh2fzLLez88cI= X-Google-Smtp-Source: ALg8bN7qHj+7l5GjJY5S8ChzZKSHp9hiEDlJTzYvX7fyyD1psUJUORo9iAZUUJiikTERmHI/Az73kg== X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr30779048plr.245.1546103273700; Sat, 29 Dec 2018 09:07:53 -0800 (PST) Received: from localhost.localdomain ([240f:34:212d:1:d91e:35b2:75a8:1394]) by smtp.gmail.com with ESMTPSA id h134sm86856276pfe.27.2018.12.29.09.07.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Dec 2018 09:07:53 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Enrico Scholz , Michael Grzeschik , Marco Felsch , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH 1/4] media: mt9m111: fix setting pixclk polarity Date: Sun, 30 Dec 2018 02:07:35 +0900 Message-Id: <1546103258-29025-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546103258-29025-1-git-send-email-akinobu.mita@gmail.com> References: <1546103258-29025-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit 98480d65c48c ("media: mt9m111: allow to setup pixclk polarity"), the MT9M111_OUTFMT_INV_PIX_CLOCK bit in the output format control 2 register has to be changed depending on the pclk-sample property setting. Without this change, the MT9M111_OUTFMT_INV_PIX_CLOCK bit is unchanged. Fixes: 98480d65c48c ("media: mt9m111: allow to setup pixclk polarity") Cc: Enrico Scholz Cc: Michael Grzeschik Cc: Marco Felsch Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c index d639b9b..f0e47fd 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -542,6 +542,7 @@ static int mt9m111_set_pixfmt(struct mt9m111 *mt9m111, { struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); u16 data_outfmt2, mask_outfmt2 = MT9M111_OUTFMT_PROCESSED_BAYER | + MT9M111_OUTFMT_INV_PIX_CLOCK | MT9M111_OUTFMT_BYPASS_IFP | MT9M111_OUTFMT_RGB | MT9M111_OUTFMT_RGB565 | MT9M111_OUTFMT_RGB555 | MT9M111_OUTFMT_RGB444x | MT9M111_OUTFMT_RGBx444 |