Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp260443ioo; Fri, 20 May 2022 21:16:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwERJ+VCRuzarKAGftphZfMblufindgiesApMifyRJ7xc1WJKzV6wAM22YRuAgovlGpCDGT X-Received: by 2002:a63:600c:0:b0:3f9:f59e:a583 with SMTP id u12-20020a63600c000000b003f9f59ea583mr427378pgb.51.1653106578135; Fri, 20 May 2022 21:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653106578; cv=none; d=google.com; s=arc-20160816; b=t9IxGrjY7nhx7Y36AKRM2FjL0rOseBh++qsBPm4Fm1bWxyVi4aBntjGq9mAGVPgEd3 pG9kaw7q3c3gThjDtR/DXgaCOYTNna2emYwWTIf4MO6M5I06/xOWmP9siUbv3igIN4Wv r/vXqk39eHs9I4h6SwLe6fr6sznar/JheHg3VEiXAESDTzjltK0SsG7LePXotmxpAwoM rxAWjQKdZ4+f56/9kaek7FiUtYI0t9rABXYot0bdgXzRZ1S+dXdFknTUcbG5tzCjDxcF ISGcCo4NL1mMFcuB0dWQbKjPW82SuKKIUwp8oUmQvRclfNZz9g8QVJK8oHVaATzfV7GR YaIA== 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 :message-id:date:subject:cc:to:from; bh=+Qe3HDJaOEw3eKi8KUgszY4XpWa4k6u8DP8gSgmuIQk=; b=S2fM5zzTMcVw/LgoG9m7rRAGFPUJDRz617YsiNCk/pNVRBk6/LlYZnBB3Q4Z15WxjY 1wsblMGKKAdaQeGoTdCIa7/HUe5VjnyaiV0jt3V4MIAQu1OVpAnyMPMKvwO5mGxQnvl2 S9gg+bYtR5BNf9JCb1RBrdmzy0FJa0yASJU85AQ0JC+yzqjb7YD3vL4YuPiaywWyQuF2 b1++/NgBo5WxyKHh+saWbd3IaBquVZKlP0FfVwquClzLt+3WLN41BH4ZR1I4gCv68g5a GxQ9W2Flv+ZPpP0ZsIpeePP0IiLfLZTDbYKv2PeJOPpp30iYYMfx/s67nuETKBBz3HWP sbRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a17090ace0200b001c7c69ce93esi4567455pju.13.2022.05.20.21.16.05; Fri, 20 May 2022 21:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243492AbiESSBu (ORCPT + 99 others); Thu, 19 May 2022 14:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243498AbiESSBq (ORCPT ); Thu, 19 May 2022 14:01:46 -0400 Received: from smtp1.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E6275A14F; Thu, 19 May 2022 11:01:44 -0700 (PDT) Received: from hi2exch02.adit-jv.com (hi2exch02.adit-jv.com [10.72.92.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 5ECC73C00BA; Thu, 19 May 2022 20:01:42 +0200 (CEST) Received: from vmlxhi-121.localdomain (10.72.92.132) by hi2exch02.adit-jv.com (10.72.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 19 May 2022 20:01:42 +0200 From: Michael Rodin To: Mauro Carvalho Chehab , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , , , CC: Michael Rodin , , Subject: Improve error handling in the rcar-vin driver Date: Thu, 19 May 2022 20:00:06 +0200 Message-ID: <1652983210-1194-1-git-send-email-mrodin@de.adit-jv.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.72.92.132] X-ClientProxiedBy: hi2exch02.adit-jv.com (10.72.92.28) To hi2exch02.adit-jv.com (10.72.92.28) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this series is a followup to the other series [1] started by Niklas Söderlund where only the first patch has been merged. The overall idea is to be more compliant with the Renesas hardware manual which requires a reset or stop of capture in the VIN module before reset of CSI2. Another goal (achieved by the patch 3/3) is to be more resilient with respect to non-critical CSI2 errors so the driver does not end in an endless restart loop. Patch 1/3 has been taken from [1] with some additional documentation changes. Patch 2/3 is included without any changes. Patch 3/3 is based on discussions in [2], where I also found one method to trigger CSI2 errors in the video pipeline on a Salvator board for testing by manipulating CSI2-related registers in the adv7482: $ i2cset -f -y 4 0x64 0x00 0x04 $ i2cset -f -y 4 0x64 0x00 0x24 [1] https://lore.kernel.org/linux-renesas-soc/20211108160220.767586-1-niklas.soderlund+renesas@ragnatech.se/ [2] https://lore.kernel.org/linux-renesas-soc/20220309192707.GA62903@vmlxhi-121.adit-jv.com/