Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2502481imm; Mon, 28 May 2018 09:17:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9ajU1iLYFnvkPdXXTCL0Lm4bd83O/50+Bbn/AXnYtsAaEAF7mqWPzhZ1qo8TwWfKHOBy4 X-Received: by 2002:a65:5288:: with SMTP id y8-v6mr11190844pgp.69.1527524235279; Mon, 28 May 2018 09:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527524235; cv=none; d=google.com; s=arc-20160816; b=V6pm2gR/LwWbj+gJZ3RjfeMH5fkBF1cARPoi27dW3H+XavPTXx7ftgr20JGXx0N/IO uKx/q+oNiqNDM8WcBruqYcSAWkGGmj1X0DUydvaajDSF+2iUxYfYu40idbmWLhSLLJbK 1OZE5wvyY4PTRS2qC0SdA4cwRPQR1OC01hJB9cQEBm8P9VeRY52knOlObkzn5RA9/ouM Ahwcrp3nN3cK89/La0K57nKG8TUkTc1wwUNvvKK95bq248q3A2TBbebSkH38GkTVRh9/ ECwe27wlQwBtYpc+4d0orRCBiE8wKDtUXLIaFfXjVMpFVjYKnKsh9Oaw3AkYSqhv73Sy 8MNA== 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:dkim-signature :arc-authentication-results; bh=voIgw99qHdvEMbfNKjmoDxicvaieaDJHuSpAvLNrWy4=; b=JrueZViKqQKMe4456Oj2+rEOMGRgJCBdTPKlfjsOVsH/7x31P4re/OZQfPJ/W8fWFj 9O3RoIKGdf9n6qwVePyWGpNTFYOHk+Gw/N4t1fuNIsrHNYXiitJGYlk1Eu5RVGsPFsr9 7bRds+g85VnPEua5trZmHvqqx8qdvsiQwFEyoZ8asZPJg7cFvn/jxl+w0mkpF+05rXXO ZcKS4EB1O8t6J91a3ASIVXNz/CWXOdP53psn5mgLxiXdKYRNi83NXwPP5u8qoVxkOGRJ vTAddw5qcUeLEkeqK9EzFqUPdh1p+JTCgfw0cCJk+PnV/xoO5azY8ns1eFMT63enn+wh BeRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x1G0WMac; 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 v64-v6si3393884pfj.292.2018.05.28.09.16.59; Mon, 28 May 2018 09:17:15 -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=@kernel.org header.s=default header.b=x1G0WMac; 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 S939939AbeE1QQc (ORCPT + 99 others); Mon, 28 May 2018 12:16:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:60952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965194AbeE1KMv (ORCPT ); Mon, 28 May 2018 06:12:51 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEFA920843; Mon, 28 May 2018 10:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502370; bh=B3F0O1LhVvYFtOrpESHgdAteTiC6t4Nm9UFMxiCMPGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x1G0WMacZiNGwyn4IVe+Y40HX2/SzM6IFcdCZbUA5dQCfvEGAAOfTKrias+YbXkWF +DDKDTBj099nkubdO3SnJ08kTC9HMUHiuDckyt0A5cjIjO20k5S3kVDme2mfVi1dyh vEffzmgDq7hfoxdqDhfZSngLa1vCN8mUea1vHE0Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brad Love , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 3.18 161/185] media: cx23885: Set subdev host data to clk_freq pointer Date: Mon, 28 May 2018 12:03:22 +0200 Message-Id: <20180528100111.736558996@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100050.700971285@linuxfoundation.org> References: <20180528100050.700971285@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 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Brad Love [ Upstream commit 5ceade1d97fc6687e050c44c257382c192f56276 ] Currently clk_freq is ignored entirely, because the cx235840 driver configures the xtal at the chip defaults. This is an issue if a board is produced with a non-default frequency crystal. If clk_freq is not zero the cx25840 will attempt to use the setting provided, or fall back to defaults otherwise. Signed-off-by: Brad Love Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/pci/cx23885/cx23885-cards.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/media/pci/cx23885/cx23885-cards.c +++ b/drivers/media/pci/cx23885/cx23885-cards.c @@ -1950,6 +1950,10 @@ void cx23885_card_setup(struct cx23885_d &dev->i2c_bus[2].i2c_adap, "cx25840", 0x88 >> 1, NULL); if (dev->sd_cx25840) { + /* set host data for clk_freq configuration */ + v4l2_set_subdev_hostdata(dev->sd_cx25840, + &dev->clk_freq); + dev->sd_cx25840->grp_id = CX23885_HW_AV_CORE; v4l2_subdev_call(dev->sd_cx25840, core, load_fw); }