Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4230626iog; Tue, 28 Jun 2022 11:38:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sylEk0sdVUBlqIjY9uksye+mb7+GpkqRHq/JwYPsRHXWsvp8N0j1AZ//qZGtge3G0+oRj5 X-Received: by 2002:a17:90b:33c4:b0:1ee:d69c:5303 with SMTP id lk4-20020a17090b33c400b001eed69c5303mr1103749pjb.60.1656441491450; Tue, 28 Jun 2022 11:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656441491; cv=none; d=google.com; s=arc-20160816; b=boMbsV9DjBmELOCD1DM0dMcn/4DDnRqISdPt2e4rsOJxlFfvhFZzxuH4A/bLdo8rw/ 64wnwfa/RRHOZpa61ksXmzXplkOxQr96XM4b94jIoLRoAL4+xfq/PWLOo77VznwKu06N N7R27q07mIS/BRCxU2Af5RDx5d29+oPMtPhMl5JpqcwMAMdqt2lMxwGbLCbFS7zuKtaY Whh+hyCN3kefukLJ4b/8/L/g5tfNWls4kWSKHFrQ8CKzZCKMQda00Rm7BQpioa2rW5Zt 9EyU1BvdP+lH0wzNk+bb8scI/CSHRRJC78kA7Y4sKlAYm99tLmireifnj02aMBklm4R2 SHdA== 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; bh=pRZbeitLBKR+FWBjXTh48Thheio6q8/HqIjUZ6myAkk=; b=CxbFUOXgY7e5jXpL+MxR73Z5RyX9LPDfdDZLa/Faa72QZNI39s0UPSV7O7fzWoAwBj 8snFzCrfueQoG08gppiCFE2n2l8eAxW+jBM83VNJmKx7RA4wWKBIdnLAe+DjpSp3GAfW IIzRyOxp0qBKcl880LunIVPjrlEem2y29H1tw0Nshhj4W+3qq+MKHD1+3VZ3jWcFW4Uc CojGDbSYzT2wxkpnMaslQz17/b0ITg61NIFvGDREFB33cLzMbqz+OCrnyqXJ+EAtk57W 6481PzYVaTCYMm07oRt86AHgYKXZekcLcEaPoSJ7IKRGxpwt0bE99lHhlwFFijo19IZy voKQ== 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 p4-20020a63e644000000b003ab97181f95si19683543pgj.845.2022.06.28.11.37.59; Tue, 28 Jun 2022 11:38:11 -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 S232861AbiF1SBR (ORCPT + 99 others); Tue, 28 Jun 2022 14:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232040AbiF1SBM (ORCPT ); Tue, 28 Jun 2022 14:01:12 -0400 Received: from hi1smtp01.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DBF12AF1; Tue, 28 Jun 2022 11:01:11 -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 hi1smtp01.de.adit-jv.com (Postfix) with ESMTPS id 8F9685200D6; Tue, 28 Jun 2022 20:01:09 +0200 (CEST) Received: from vmlxhi-182.adit-jv.com (10.72.92.119) 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; Tue, 28 Jun 2022 20:01:09 +0200 From: Michael Rodin To: Mauro Carvalho Chehab , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , , , CC: Michael Rodin , , Subject: [PATCH v2 0/3] Improve error handling in the rcar-vin driver Date: Tue, 28 Jun 2022 20:00:19 +0200 Message-ID: <20220628180024.451258-1-mrodin@de.adit-jv.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.72.92.119] 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,KHOP_HELO_FCRDNS, 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 is to be more resilient with respect to non-critical CSI2 errors so the driver does not end in an endless restart loop. Compared to the previous version [2] of this series the patch 3 is replaced based on the conclusion in [3] so now userspace has to take care of figuring out if a transfer error was harmless or unrecoverable. Other patches are adapted accordingly so no assumptions about criticality of transfer errors are made in the kernel and the decision is left up to userspace. [1] https://lore.kernel.org/linux-renesas-soc/20211108160220.767586-1-niklas.soderlund+renesas@ragnatech.se/ [2] https://lore.kernel.org/all/1652983210-1194-1-git-send-email-mrodin@de.adit-jv.com/ [3] https://lore.kernel.org/all/YqEO3%2FKekkZhVjW+@oden.dyn.berto.se/