Received: by 10.213.65.68 with SMTP id h4csp1715451imn; Mon, 19 Mar 2018 11:15:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELs0aK8yoimsOe8AS5rvET9hUICEiDWcA1wBHuY9Sukuwz6RlGl5DbiXQ4ZAxTcCpldhDPbD X-Received: by 10.101.89.65 with SMTP id g1mr9792116pgu.185.1521483344301; Mon, 19 Mar 2018 11:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483344; cv=none; d=google.com; s=arc-20160816; b=DG6AGpG1YXxogLKHS+hqnPNReF0bdUCosp2mhQyg2YYazveZbbY55W/iUk9NV3cFsx lmVnvgm3x7CSGOGJDCtP4+mRtdZWcsNHlrGGEsveMFlbZ0mJd2C2pu9F04s62itajjgs yml5NPVoeAsO2SRQ6NJPErCSA6NRi0GjyjCmrD5unFcWBoujWdkxOAihL9aLEF8gpGpb Pm65UYatZuEzKgJO5Lg83qKxtM4kPUyz/HPYzQDnAZkWYiHZ4Q/4VJPjnnSg7Lilwql3 BMnXkyln1Lx8RXchssflT80OvSe+pAfmclCkRPJfC9PO0PFWl7fJ1dcD18hC5//EueE8 irqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=V/jKTivUXPnkaRhNsbnH9v1amidCPq+x9v6o2/JBCek=; b=rL8JzYUH/kfUMd3HMACXsQ1EtZNqUYOJ8jCkPFv0OlyX8XSz2/hu3igHfOw6QPnPHC U4jpqFWURfnksR+onFZ5sWmft1TU7DwAcHMgttAzGoN3f3NGwdJWsxNqqDbjkMLyCvry UTupJMw7vd/bP9GR7SULTNXWL1TMRLDrIuzkoLNWmkJcqvCvJWStBej8ZJI//IsdeSy/ qfEuvwzzYlJHVOPakSwSQAKNbUPgtGlnBrduQx4nV6ExTq8PwoNIPjaJUdrafAAMF/SJ 4bWbsXezHMabg4/w01CsOgNps1LMyBFl7PUFCjHtfAOVvpo9+q/wc3pi+kTgix3BVkMi u/kg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si384257plg.715.2018.03.19.11.15.28; Mon, 19 Mar 2018 11:15:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030511AbeCSSNH (ORCPT + 99 others); Mon, 19 Mar 2018 14:13:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030465AbeCSSMy (ORCPT ); Mon, 19 Mar 2018 14:12:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2A22F11B4; Mon, 19 Mar 2018 18:12:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Janusz Krzysztofik , Guennadi Liakhovetski , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.4 026/134] [media] media: i2c/soc_camera: fix ov6650 sensor getting wrong clock Date: Mon, 19 Mar 2018 19:05:09 +0100 Message-Id: <20180319171852.960813790@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Janusz Krzysztofik [ Upstream commit 54449af0e0b2ea43a8166611c95b730c850c3184 ] After changes to v4l2_clk API introduced in v4.1 by commits a37462b919 '[media] V4L: remove clock name from v4l2_clk API' and 4f528afcfb '[media] V4L: add CCF support to the v4l2_clk API', ov6650 sensor stopped responding because v4l2_clk_get(), still called with depreciated V4L2 clock name "mclk", started to return respective CCF clock instead of the V4l2 one registered by soc_camera. Fix it by calling v4l2_clk_get() with NULL clock name. Created and tested on Amstrad Delta against Linux-4.7-rc3 with omap1_camera fixes. Signed-off-by: Janusz Krzysztofik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/soc_camera/ov6650.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/i2c/soc_camera/ov6650.c +++ b/drivers/media/i2c/soc_camera/ov6650.c @@ -1033,7 +1033,7 @@ static int ov6650_probe(struct i2c_clien priv->code = MEDIA_BUS_FMT_YUYV8_2X8; priv->colorspace = V4L2_COLORSPACE_JPEG; - priv->clk = v4l2_clk_get(&client->dev, "mclk"); + priv->clk = v4l2_clk_get(&client->dev, NULL); if (IS_ERR(priv->clk)) { ret = PTR_ERR(priv->clk); goto eclkget;