Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1934572imm; Thu, 24 May 2018 03:11:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZocG9jcUWteo5bzZonsEDQYAYKJf648hgxrRcUmmT6tlmYZS/SI6pwVijRT07UpkgxIhTkG X-Received: by 2002:a17:902:145:: with SMTP id 63-v6mr6717034plb.332.1527156684769; Thu, 24 May 2018 03:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527156684; cv=none; d=google.com; s=arc-20160816; b=d17Q0Gfw8RTVV1aUufOSzuCcUPpSqVumhOIOtRVhFjtlN/aX5WAiw3aWFFIdXbrtCQ K4wEdApNegKhJLXwJQMPmtCQtPrQ26WOo6KTGifwWd6nfVa45RP+VhPR+vHduSCcSeOk lTgGxK6Yn1YAdvN7VHB0AH2wH0Nej28h3nDIWRoXWchvXh+WMOFrQDH1XYWs/UAJTba+ CTNdIXCkdfbcV7VsJkhN25ks6K3CB+DkQbFT4PIF6LT3DY7d5Nktu/qD7OvYJGlkKV1+ fznpAYBIlcM35cwS8TK3qEe/QZtjVfugr168u+3R29mxV/nkQzI3srY1noFSzjtaZQBS UCaQ== 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=0BV3oyOIl1N8+4XsGuzcDWeOkJ5GAKtzxS46InID/sM=; b=Zia2WMPT/MdzY6UzBkY++ygXgL4r0l/WHusM8mOMSxt6uE7rWn64b+9WaFZb3Zy6DL yVjdOUnkE0GZn44fOF0I087coZRFm/zuaFcdV7pFlvp4awta12rDdzrAt5XwhL/y+Und 3UOhxTwsfELuxpgCRtv48N1MqweMkwr4YA+qHHdlofl1vtgiQHApd1FhbM7ffla1Yq8R /0iZmNZRsCTc/8xmJG+lypXQGZN+246YRUoKBYwk50PSNlt6ZNLntNZKjhP6GJAFCVIG SBztD0Ftm9Zslq+mbmEk5WYvckjwzOgvY+7poTSRnxLWvuFHuwvub027tljBqyUzP/kb zYlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nuF/NuJR; 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 s6-v6si16980615pgr.369.2018.05.24.03.11.06; Thu, 24 May 2018 03:11:24 -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=nuF/NuJR; 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 S1031692AbeEXKKU (ORCPT + 99 others); Thu, 24 May 2018 06:10:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:54844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031284AbeEXKFp (ORCPT ); Thu, 24 May 2018 06:05:45 -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 2365020897; Thu, 24 May 2018 10:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156345; bh=M7GzP4UwTN9veNjEODgqO3fg58Hx2JD+bZNbZaOFzJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nuF/NuJR7Q3DsTCOOTsbMYUKaqp1qt3Rwaqy32Ybs5m7ckLcJIU4BhKV72eh5fC/v VpD7z8LIVqWSr0mwG2oAXoGDYysilGzrQ3KtqzJ0BYID1UWcY82tGJqjON51lavvUh WUZk9zl1GjUCrSsTof0/YCRf/QTgWF0r13z2YJQA= 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.16 136/161] media: cx23885: Set subdev host data to clk_freq pointer Date: Thu, 24 May 2018 11:39:21 +0200 Message-Id: <20180524093034.662367601@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@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.16-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 @@ -2286,6 +2286,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); }