Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2742816pxj; Mon, 31 May 2021 09:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm9N41PeQH19mzwT8iI77BFRY89NlAVK8uRSLqfOpK6QdpE/nLyWSj/qzdehqz+iAgRO2A X-Received: by 2002:a17:906:f84:: with SMTP id q4mr24806784ejj.442.1622478986171; Mon, 31 May 2021 09:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478986; cv=none; d=google.com; s=arc-20160816; b=nvDwF8y+HrT2fMxE1X4+HIGIdHynsVH151SsuPYQfaMurgu+oq0mDrGvYLKM7O8//m 1uFudPqL4wwnxrT1O8hYho1FmKFJ2LN65PC+zyiqbDRT7ev0n3cCBFhuY+EEL/0l7150 1x9f1srYUbKnC2100wIwCLHzilR52Ilk24vcPhjVOmGpgor4HaC8a2HhS78KQNny47lL x2RFN8NW6OR57jEThNoGiiTNb/oQrjJi2rK3C0DKbs31VnmFMqSiD4vYA1G6cWzYx/ZB pyyni9L18vCShbnu+WjhyeiNoabUgM6YsBRSLNGAcY78VM/+eZA0pVwL9fcy2Fg1F7OR /e0Q== 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=nCp31YdfwfAoD9P7PvrfjC4wCZ6cirmqoq9CNyG6TWc=; b=TPh33roYP3ITx5wpH/VFcDB6AG1IaDvqHDbTUdO+xRKtKYFRyvQQaQo1ag0bkiSUDU uB2gJouYZlw89GC1ECjXgVczJZMobFg+u1g5V9W4+voi94g6sHV0myN/Mc3P+ejL5yMg mNGux2Hi7jW/x8HBzTFBZTzUlC0g8SQgn/re0GUqjdhTMXTMilSrSXxTXV0tU1eOtGDX cMenbITbgbeSvmQQqQx+PEgR5gK7BZnKHzEZ81KHRmMA55BiTAhFuHX84cGPy+ISppJB jXt/jAeT//hCTEZ14L8+FMZC1CmFe5DoF6dsbL68448GFzJ34z86Ip0tBL0Dy6Xw29kf KJpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MZ7YwZUZ; 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 v24si13203576ejc.165.2021.05.31.09.36.03; Mon, 31 May 2021 09:36:26 -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=MZ7YwZUZ; 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 S233715AbhEaQgr (ORCPT + 99 others); Mon, 31 May 2021 12:36:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234014AbhEaOtP (ORCPT ); Mon, 31 May 2021 10:49:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4871C61C8F; Mon, 31 May 2021 13:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469423; bh=yGMZrSeD5ldYQ8amepKy7fmPBbO/88Lgz8D1NmVxsVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZ7YwZUZTkDgrUJGDomQWXxXdTz9A0PuthaNDpLCuMeOXmqWVaxN8jwKSiKzltl8N 95uPCQ1PCapaoJs5re2Q37RnNl4gRh09vBXUddelPdMTon6kJdQaXph1e8C0wsM1Yz IxwV4n5H/MCmJTrEQJfm9wdLqSj66OEVHKLo1Q78= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.12 192/296] Revert "media: gspca: mt9m111: Check write_bridge for timeout" Date: Mon, 31 May 2021 15:14:07 +0200 Message-Id: <20210531130710.333877325@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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 d8c3be2fb2079d0cb4cd29d6aba58dbe54771e42 ] This reverts commit 656025850074f5c1ba2e05be37bda57ba2b8d491. 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. Different error values should never be "OR" together and expect anything sane to come out of the result. Cc: Aditya Pakki Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/20210503115736.2104747-61-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c index bfa3b381d8a2..50481dc928d0 100644 --- a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c +++ b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c @@ -195,7 +195,7 @@ static const struct v4l2_ctrl_config mt9m111_greenbal_cfg = { int mt9m111_probe(struct sd *sd) { u8 data[2] = {0x00, 0x00}; - int i, rc = 0; + int i; struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; if (force_sensor) { @@ -213,18 +213,16 @@ int mt9m111_probe(struct sd *sd) /* Do the preinit */ for (i = 0; i < ARRAY_SIZE(preinit_mt9m111); i++) { if (preinit_mt9m111[i][0] == BRIDGE) { - rc |= m5602_write_bridge(sd, + m5602_write_bridge(sd, preinit_mt9m111[i][1], preinit_mt9m111[i][2]); } else { data[0] = preinit_mt9m111[i][2]; data[1] = preinit_mt9m111[i][3]; - rc |= m5602_write_sensor(sd, + m5602_write_sensor(sd, preinit_mt9m111[i][1], data, 2); } } - if (rc < 0) - return rc; if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2)) return -ENODEV; -- 2.30.2