From patchwork Wed Mar 10 16:45:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 12128459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B577EC433E0 for ; Wed, 10 Mar 2021 16:46:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 778B664DE7 for ; Wed, 10 Mar 2021 16:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbhCJQqR (ORCPT ); Wed, 10 Mar 2021 11:46:17 -0500 Received: from bin-mail-out-06.binero.net ([195.74.38.229]:18557 "EHLO bin-mail-out-06.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbhCJQps (ORCPT ); Wed, 10 Mar 2021 11:45:48 -0500 X-Halon-ID: 0c5059af-81c0-11eb-a542-005056917a89 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac5521.dip0.t-ipconnect.de [84.172.85.33]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 0c5059af-81c0-11eb-a542-005056917a89; Wed, 10 Mar 2021 17:45:46 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v3 0/2] rcar-csi2: Update handling of transfer error Date: Wed, 10 Mar 2021 17:45:25 +0100 Message-Id: <20210310164527.3631395-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hello, This series adapts the R-Car CSI-2 receiver recovery logic to match updates in the datasheet. The later datasheets recommend that the whole video pipeline shall be stopped if an transmission error is detected instead of just restarting the CSI-2 receiver. This is tested on M3-N and a fault is injected by quickly removing and re-inserting the HDMI cable while streaming. This method does not always hit and is time consuming. To consistently prove correctness of handling a fake fault was introduced by a HACK and a debugfs entry. Niklas Söderlund (2): rcar-vin: Stop stream when subdevice signal EOS rcar-csi2: Do not try to recover after transfer error drivers/media/platform/rcar-vin/rcar-csi2.c | 14 ++++++-------- drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 9 deletions(-)