Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2716261pxy; Mon, 3 May 2021 06:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA8Tc4WxJahXv29ZdVAZJYEa313XIWB433f2Ih/U/oiTIq2GiyNertKzI8jiN7ieO2HH4e X-Received: by 2002:a17:90b:3591:: with SMTP id mm17mr20693427pjb.184.1620048769079; Mon, 03 May 2021 06:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620048769; cv=none; d=google.com; s=arc-20160816; b=GzP44ANfFnFHEKZYOK/hnEYdrY1U8+lsI2cCpydGXAloN3rc97bv32nUttejtncvJ8 x7p08wYcCYqEg+7Ia1vwz1UNnbDbWIGTJEYxwF+aM7OW1HGbyY6kIN/F/D4FEBJjZidX 9t3DlcQEMzYnUUnyXIAknoL15Yq866C+mfRnsuWSnVPo5EhNTe3uBlTXlDjkhxNYZ3D9 JlGj7s0PqX/TQkIn+f1+TCSSQWH9dQQoajQP5loIqpeeRJQONUF+PiwRYTIVE/EyJePd 1EyHlJwPRr9EkSTChyx+3V0n1rQeIU5TyrUzFulnZ9BTsRK6BX9SUAlNWhcSaicYC+UD hQ9Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eoPc08Tqay+48G7TocI3oZWjw6p+b8W3EFcNeyLahb0=; b=ySFUvxby53tApvSd6tye3bsRGZSTxhR1l8BT8krwIxT7W6sUyv5+mVAdeUmxqhtRPQ Gf7ZuEhIqwrVVxx6a1sU5SKn9eyMuyRWs+vZe26LPq1EAzcdBt+Pm53U5/2W5BcQm93A 1ZajgeS1N3FuYmqUVEpjfPCsX3/fBpFvZqpXylmVD4r0/QID8AS9yplUO1lqODo2/DBp fJid999VHSBihQ+gPInzBnd+SHP3J8vGJ6klfvt3f8+P13jNzsl5BOUWmdoEqSCgxy52 qDPh/FHjkazLv6E1dg2U7Bw7XP/QMi7J6U+4m8o9jl9eq3hnlkavflnUGFetX1fCn066 s2Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tivas+zk; 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 l10si15344607plt.288.2021.05.03.06.32.36; Mon, 03 May 2021 06:32:49 -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=tivas+zk; 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 S233069AbhECMCy (ORCPT + 99 others); Mon, 3 May 2021 08:02:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:35308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233948AbhECMBu (ORCPT ); Mon, 3 May 2021 08:01:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 247286127A; Mon, 3 May 2021 12:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043256; bh=Ie00amOOJeEDuOtAfjGCSTkQd5eoze8rDc72pB37rb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tivas+zk23sqcDXX9aUnQjW5tsbzabCeJV27+JPUuUeWIs+06i/Uws1/ULuwTeI6A CwEulo4D5C57n7c7ZJdmX59WEJb0QsGmqBboA+lIzwV3BX4/LpxyJeMF8sqVWWAIMI /TotReA0DTotewqzNx7CB7tSI7wBKGWUz3najDF8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Mauro Carvalho Chehab Subject: [PATCH 60/69] Revert "media: gspca: mt9m111: Check write_bridge for timeout" Date: Mon, 3 May 2021 13:57:27 +0200 Message-Id: <20210503115736.2104747-61-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- 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.31.1