Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2307013imm; Thu, 7 Jun 2018 08:31:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKyN8LNlTxJX4yl5Hz7pN03vvqLS7DL0cjKtYGD/JBL74Zub5UEru+IJCc+NOgnnRFu94wL X-Received: by 2002:a62:f713:: with SMTP id h19-v6mr2174764pfi.165.1528385476175; Thu, 07 Jun 2018 08:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528385476; cv=none; d=google.com; s=arc-20160816; b=rML1DVZuh1jpChYLTbxGOuaYbd5/Gdyp2MGvoaofYo9/PeOd0+ArjnMMFGCmEIXzB3 rbv9ccUpjzSiLlfG/3gmheL8oB2BUl6Q8XQsoJmMuPTnYsoaLvsfYang4okcNdtqd8mw I6drPs52l+WeYFQP1RxP/JHhmRGJ1aHA4L/1VKCddLxV9KeW06H4wc2opTQV2lA2Y0ZC bO05/ANnzVl+g5qzVtErQk5WmKrFFOCyrSdwM57n3dvBLVLw9AXP6i4IS/+2qD32i25o 1tTFHjZz3GHruO5rqd6DOK135Suz7ohh0GC5JQzPZH+k9cyvGokwsZenf+U4JOgNsmj/ gS/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=/5Vi0z02U2mGz+09YozdYsGcbh099XKIGIl3uBO2nfM=; b=lY8nZItyP3D7R4KzNSxN/JeFj0RzOyg17omPF1OcsSDJ1CD3tIGspIa5ZYYMqkECjC HhvcfbfV6lAtzS9gusVvLiMclsntxDtkhY0f43VCirHpncrnMokmzhmXAxrR/uccwfGE 3/Ltpyljs2STa5RciKog1aPx9RdQQdZHXzyc9LRbySDOyyt0Xd3TFE8VduVCc+rANDmV Ls5vA+V1HhNBny5Ho8CqdMF5E67jSBYrMt7tB6GKwfVCe3D0QhM04EWvGnXLMahITw06 Sgc76+lwf7B2MuHSsXP5lmCN9kVN9JGx3MggRP8i4XXxR5UgKnJhclKpRXk9S9dtObTd TbXA== ARC-Authentication-Results: i=1; mx.google.com; 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 z70-v6si14204151pfi.7.2018.06.07.08.31.00; Thu, 07 Jun 2018 08:31:16 -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; 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 S935434AbeFGP3u (ORCPT + 99 others); Thu, 7 Jun 2018 11:29:50 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41030 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935408AbeFGOy6 (ORCPT ); Thu, 7 Jun 2018 10:54:58 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbl-0005a0-RK; Thu, 07 Jun 2018 15:09:45 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb4-0002xR-LW; Thu, 07 Jun 2018 15:09:02 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mauro Carvalho Chehab" , "Enrico Mioso" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 175/410] media: cxusb, dib0700: ignore XC2028_I2C_FLUSH In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab commit 9893b905e743ded332575ca04486bd586c0772f7 upstream. The XC2028_I2C_FLUSH only needs to be implemented on a few devices. Others can safely ignore it. That prevents filling the dmesg with lots of messages like: dib0700: stk7700ph_xc3028_callback: unknown command 2, arg 0 Fixes: 4d37ece757a8 ("[media] tuner/xc2028: Add I2C flush callback") Reported-by: Enrico Mioso Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- drivers/media/usb/dvb-usb/cxusb.c | 2 ++ drivers/media/usb/dvb-usb/dib0700_devices.c | 1 + 2 files changed, 3 insertions(+) --- a/drivers/media/usb/dvb-usb/cxusb.c +++ b/drivers/media/usb/dvb-usb/cxusb.c @@ -816,6 +816,8 @@ static int dvico_bluebird_xc2028_callbac case XC2028_RESET_CLK: deb_info("%s: XC2028_RESET_CLK %d\n", __func__, arg); break; + case XC2028_I2C_FLUSH: + break; default: deb_info("%s: unknown command %d, arg %d\n", __func__, command, arg); --- a/drivers/media/usb/dvb-usb/dib0700_devices.c +++ b/drivers/media/usb/dvb-usb/dib0700_devices.c @@ -405,6 +405,7 @@ static int stk7700ph_xc3028_callback(voi dib7000p_set_gpio(adap->fe_adap[0].fe, 8, 0, 1); break; case XC2028_RESET_CLK: + case XC2028_I2C_FLUSH: break; default: err("%s: unknown command %d, arg %d\n", __func__,