From patchwork Thu Mar 20 22:05:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 3868121 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 722BC9F334 for ; Thu, 20 Mar 2014 22:06:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99B2B20213 for ; Thu, 20 Mar 2014 22:06:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB608201F4 for ; Thu, 20 Mar 2014 22:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759655AbaCTWF4 (ORCPT ); Thu, 20 Mar 2014 18:05:56 -0400 Received: from qmta15.emeryville.ca.mail.comcast.net ([76.96.27.228]:49144 "EHLO qmta15.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758342AbaCTWFz (ORCPT ); Thu, 20 Mar 2014 18:05:55 -0400 Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by qmta15.emeryville.ca.mail.comcast.net with comcast id fvd71n0040QkzPwAFy5gG2; Thu, 20 Mar 2014 22:05:40 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta02.emeryville.ca.mail.comcast.net with comcast id fy5s1n00N0MU7Qa8Ny5tJj; Thu, 20 Mar 2014 22:05:54 +0000 Received: from lorien.sisa.samsung.com (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 04C8F3FEB6; Thu, 20 Mar 2014 16:05:51 -0600 (MDT) From: Shuah Khan To: mkrufky@linuxtv.org, m.chehab@samsung.com Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, shuah.kh@samusung.com, shuahkhan@gmail.com Subject: [PATCH] media: lgdt3305 - add lgdt3304_ops: sleep Date: Thu, 20 Mar 2014 16:05:50 -0600 Message-Id: <1395353150-6133-1-git-send-email-shuah.kh@samsung.com> X-Mailer: git-send-email 1.8.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1395353140; bh=3DzRGoFpwa8EwFy5VfTpgooE+KfXJ24RxdV4VvV2OOQ=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=UzdoXfnu/wgAOxqokDMc2B//pL0ngsiIr8WZ4CaK8kUF7q4T814DidcXDlrZTbdgj 9pA82PbMzgy5VhsNhpCkSMMiRGDwuzBlW3foT+TT4lbJZRiVue/F6acu+fRYMRpHoi 0zyAGr9G3h/QnbnHn2zN+9rVhdGK2Ou4zAWpy2rgKlMHpaNDr86wqXAEuc82GN577N 9Hz4OklShSB2ylZ8DmCcSSXYzUHTSHWcPu9iGRE9TgKzG6r18j/T8twdrX3Dd0kt6i 0nGG6W2JAyY2hZrX6ax23hbiR1bjAv7p97W8NfOxpsVxbuE4doRAM7WNOxz1f24nyd hqyZvfzgviYRg== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add sleep ops to lgdt3304_ops to invoke lgdt3305_sleep() to be called from dvb_frontend_suspend(). lgdt3305_soft_reset() is called for both 3304 and 3305 devices. soft_reset and sleep touch LGDT3305_GEN_CTRL_3 on 3304 and 3305 devices. Hence, adding sleep to lgdt3304_ops will help suspend 3304 properly from dvb_frontend_suspend(). Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/lgdt3305.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/dvb-frontends/lgdt3305.c b/drivers/media/dvb-frontends/lgdt3305.c index 1d2c473..92c891a 100644 --- a/drivers/media/dvb-frontends/lgdt3305.c +++ b/drivers/media/dvb-frontends/lgdt3305.c @@ -1176,6 +1176,7 @@ static struct dvb_frontend_ops lgdt3304_ops = { }, .i2c_gate_ctrl = lgdt3305_i2c_gate_ctrl, .init = lgdt3305_init, + .sleep = lgdt3305_sleep, .set_frontend = lgdt3304_set_parameters, .get_frontend = lgdt3305_get_frontend, .get_tune_settings = lgdt3305_get_tune_settings,