Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1974557imm; Thu, 24 May 2018 03:52:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr2CvTZCqpEcv83621YJoHGSg7bV9MlNKaxOl9GLSE5qzyjDZzQn4j13dsWB+9YC6SjA/Tv X-Received: by 2002:a65:4549:: with SMTP id x9-v6mr5493368pgr.158.1527159166823; Thu, 24 May 2018 03:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159166; cv=none; d=google.com; s=arc-20160816; b=PAvcoki4eP1IAQ+ENSsJCYarx5A2H5xtVe9lIxWWEjLXFizcpo1ZS8oBcL+KicO+xS UH2ewcEvxp/Fios6GRreh9N8ewkw983RuqOFvFikojwPJrhID5TlxA+BQEyFicOLjUrQ PJHi5+slYkbgbqjTyzZ4V5mwuae8593UKqJCoYKU3+kwGoBfHfhVSKjXI7HhSsWec/vC l/lZ9FdwkzsKhlgiV+tRBbZRdPDoumYaOBH0HZG41Jt9Q10R9ILuegwYNdN7eotryIrm tt2fDZye1mJpwM8LMgvWQY6YolIIQcREbPfMX+XVMVqHaX4+R7AuMUrFsHFhBxOpC3SA e70g== 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=cxvyDde8uihV4X3d0Natd7ndjKxvmevBjlGRMSDqbtQ=; b=V73e1Z4BY3Yuz27CgJejpiGgh122qZ3VsL/hjvJxGAHoDFjZT1qkQ6Nf3IYZ2kJV7j G4pBhuxU1YCc1wXYTnKAnQdfmkn2dAaRcQbpQBoGL8fGBiCmNZz6ABpjBdAd1GYW3JL+ +5wBLUOyrebYDCHW5IG4NjIlKplDZQi2B0xDoFfq0j51KgZTCqtewGIN5CEMGJAiurpG q3l21aqMkfu/1ErPEQr8T4pMqpyi+TK1HMXjl+Ij59frwFoRboDY1WNm16yf7GBxSVhQ /JrDbxIUnsBkar2YQmrTFEXZMuVPor2nd7V82eo7+mNDr2tvqoi4ABfzh+MjUk/3wY2H mrTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n2tFI5q+; 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 a6-v6si979833pgd.579.2018.05.24.03.52.32; Thu, 24 May 2018 03:52:46 -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=n2tFI5q+; 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 S1032632AbeEXKuA (ORCPT + 99 others); Thu, 24 May 2018 06:50:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:37410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030487AbeEXJ5f (ORCPT ); Thu, 24 May 2018 05:57:35 -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 34BE220891; Thu, 24 May 2018 09:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155854; bh=4Yu2h4Si3Ug2J35FJ9lUI1wnsQL4DuLOTDhklzEhLWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n2tFI5q+IR9T1Uz46Ga8ZJx7ANz9u63HXx4kt3ZzZrNPclW8f8QcC6K/vNkw8Hbxz omb6F613ClgUryudCv0t6DPWhU5lRux4vMYq7XWWgF0+U+LPSZhsxZcycdTFm//Tvi 8CvUzXZIlUm421IyHfpzTDN72Zs1DZMIWnwbwxq0= 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.14 141/165] media: cx23885: Set subdev host data to clk_freq pointer Date: Thu, 24 May 2018 11:39:07 +0200 Message-Id: <20180524093627.782272390@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-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); }