Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2673476pxj; Mon, 31 May 2021 07:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTzulSi+eg99oq6ep7xe6qfMLEkgkxajOahwR42eLVmd2O0cLfVrAwNbji2aulBPz+qXl5 X-Received: by 2002:a02:c98a:: with SMTP id b10mr21081415jap.103.1622473146516; Mon, 31 May 2021 07:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473146; cv=none; d=google.com; s=arc-20160816; b=JgONPzeEViOuhYp1iPoEDfuJMgClbqc520UU2unY02kCtwrmDwgaaDmf7sUfEUjGgl zksFNH6Uz4zcXBXX0Kgq0GBp3o2HTH9ELBoesQEB+B2+Wj2rn1KQx+GZo2EjD0HKC/af jl3uzHxV3lLjeWj4EiXQ7JD6qzPZb5bPKHm8LIeGlcu/1zUiLgxvP9Yv6k77XouomzO3 yOoAt5f8D0Q6Pf68O+KNhJTEoBuBhLxKNdQ521f0GA/RgKhRQPfw0tbb13e6nenBBdth c9JGzwQPpI0XnPcso/mpry/fAKBEMV8Mj7CQ2tGVi9zzPprSkCUkEqMCcXr8gxi8GiJS 1yLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6KpC6ebRDuGqA0tySWcTUqENZuNmjwEIIsNt0iAG604=; b=H3LqHnimOZ9eieqBLq4OG07qV7uZWKym1deoydGEb/evILX1gxD6DW5NgCm5sYt8zw UMYoSGLfMisa6LdHZK/JXXc2jj01/v4MfyYVEB0SAylQeoItNjrJ7OyerpoTxz3O4D88 knOANTzePB5QZyjgQ3VW6zzuME97fhnRHls614asVZVL7din3je3LvqxsbS3v896XmPf VPqjmZqojYYnJp63topjxvS3EWlrs9WPejYMTPeK2cB7VwI0W1RQ/o19yogaxY4Te/oi s9DorlD2zoRXARu3REbxyJIj6U5FUR+38h5EXvURE+5oO+wzlmVGbYhmHdeA8hHNwpeO tzEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NZ75mE+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si16394128jac.31.2021.05.31.07.58.53; Mon, 31 May 2021 07:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NZ75mE+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234335AbhEaO7P (ORCPT + 99 others); Mon, 31 May 2021 10:59:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:36870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbhEaOFX (ORCPT ); Mon, 31 May 2021 10:05:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5BAF261954; Mon, 31 May 2021 13:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468309; bh=jLKy2fs+izQ6dpIvDbWD8/SxmqacVqGQoXpuCfbhMlc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NZ75mE+mtIsTp0StiOrARYamw8SBmP49Grxbhd9lyMPbUPL4RcjsI4maW0NBDw8xy MOg6qXELWjHYl27WgqRNOG/I5w0l2mfngy+gxjFNflu5vRSkG3jIIe7/WtcAAqVTDk f/H9teBroSWiIDvgLJ/Bw4nyNqDLleBR3S5dkZyQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 160/252] Revert "media: dvb: Add check on sp8870_readreg" Date: Mon, 31 May 2021 15:13:45 +0200 Message-Id: <20210531130703.456789726@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 47e4ff06fa7f5ba4860543a2913bbd0c164640aa ] This reverts commit 467a37fba93f2b4fe3ab597ff6a517b22b566882. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. This commit is not properly checking for an error at all, so if a read succeeds from this device, it will error out. Cc: Aditya Pakki Cc: Sean Young Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/20210503115736.2104747-59-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/media/dvb-frontends/sp8870.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/sp8870.c b/drivers/media/dvb-frontends/sp8870.c index 655db8272268..ee893a2f2261 100644 --- a/drivers/media/dvb-frontends/sp8870.c +++ b/drivers/media/dvb-frontends/sp8870.c @@ -280,9 +280,7 @@ static int sp8870_set_frontend_parameters(struct dvb_frontend *fe) sp8870_writereg(state, 0xc05, reg0xc05); // read status reg in order to clear pending irqs - err = sp8870_readreg(state, 0x200); - if (err) - return err; + sp8870_readreg(state, 0x200); // system controller start sp8870_microcontroller_start(state); -- 2.30.2