Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2017961imm; Thu, 24 May 2018 04:35:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9fZl8QeKlg1xSyAmcj4m7BP/bntlkood04SSmbrDvTVRlpQ6iw7fDoIh7nrfAKqkWsDFe X-Received: by 2002:a17:902:145:: with SMTP id 63-v6mr7020738plb.332.1527161751119; Thu, 24 May 2018 04:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161751; cv=none; d=google.com; s=arc-20160816; b=l4tG2ekCcgdk6JN73rEgrtsQrIOXWR4WeQ5WxNpt8iVqc8oYtjfTcbCua+0o2uOWQx l4ewrOf7zyiqXPXVyKf7yapwn3BzSc089U5KDAETBZZDgzb5yfA9OfLbw0GhNdHC8HYy WIJuCIqxJblLQMK3+bu949gxL+ZRzDaqEnhGuF8DZS9fwd1ms5A4VIaEEFULcm+b0mXp 4wm0G6decYyRv76pVuE3LamfVAxthKKWEgLbEpxlpjhCdKd0npgyJLxVse6YOPeYiVe1 wiS0yiYhQu067j/MANUe+bn3lJXwkcK9S6mEgGjRqBbMudkJQyfgICkwGn7AiZ5wZWR5 AvEA== 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=AhFR2XV1t03viSOJq6TyeAQAakxIvf/2FrO2U5VJCPs=; b=cjrP3BSFapK8XJNNlmsmJd4EaHhQOC3ya64c23p9Ohx/r0ORlWyaDfvELE6rqdNbVk a/E7M5kKedke5EXHpcZAfvAReItxQOiWzeJPnB+FUHbFP7iL/6FRYk+xq48GsjIwNA2q PPTN5YN/3B4+sewZTJBbGjTB3CY+CLqEYhK2D5WcqU+s+wEdVB3t6kCUHjA3I38BwETB DMLGL8/C3t+VKM8dsIhBCN0KJ7GenR93qMJxE1jscYXj5m6HPCvQ/80dt2sGgUoCyvBr Tbze5AjnESHvj5WwxloOqNzumzptgsKNPHKi7sU8W8uXvhh+j5QX803pTJnhXDrLHLGb djSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqUfB7FF; 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 x14-v6si16652918pgq.512.2018.05.24.04.35.35; Thu, 24 May 2018 04:35:51 -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=AqUfB7FF; 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 S967534AbeEXJuM (ORCPT + 99 others); Thu, 24 May 2018 05:50:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967432AbeEXJuC (ORCPT ); Thu, 24 May 2018 05:50:02 -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 BF7EE20894; Thu, 24 May 2018 09:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155402; bh=d+Au+a/kmM6l5uIJ00rAbU4CToELVrk785ZB0T1+6WI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqUfB7FF4T5B4ZFzw/Hi6ZrdPpStiTiBJE2NCZnJWwuh2Vopq9eBcvA+qkV+j1vxm EBzftuThAnp+D3pMW1ObRJdmhfvvq+Q6+c98q8EzbZKygk9AUWql6I5fLAkpwIPcBB fti7TkyNfEuwYV8UN1yYoY3sv0xwcIj9uLs2DXbQ= 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 4.9 73/96] media: cx23885: Set subdev host data to clk_freq pointer Date: Thu, 24 May 2018 11:38:56 +0200 Message-Id: <20180524093609.575549271@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@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.9-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 @@ -2282,6 +2282,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); }