Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1072763imw; Tue, 5 Jul 2022 03:21:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1se60V2pbO7bdqlGxWuXoyYFJItA51bcIEffUtV51RRa9VdCJ5KGXHBOKi+E8ZebEPsoRRC X-Received: by 2002:a17:907:7678:b0:726:9fca:8106 with SMTP id kk24-20020a170907767800b007269fca8106mr34115360ejc.640.1657016494568; Tue, 05 Jul 2022 03:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657016494; cv=none; d=google.com; s=arc-20160816; b=LZuq0dVLG8IbsLaaAMV4QRFt/njcpAmVHGU+K5y04tcBOUvlZ27SsJ4/cuRiBrn7VE 0+d81O3Mqre0m9FXoCb9A1xxkcM03MCfqsutKM9EY5AF4VfMygKEzmAUggPAJiyyOR5J Wrd8iDmWOpYhd3FklXr1GKb2rWuEyTVvOcGsU3kkFP5a5ZcF27U8RT9s/n56DbZ2WPYM cSJB5aam5OzGJHisBDkaXwo1y/K4m3gcRYg2jEKS6ye0HL1G0qorIoFfeLYxC3Bgyti5 xs9kZ9P5GctxPSx5BAaWTdvvHbbEJqXZnQz5oaYBBSf62c4KVgNdK1ixnfqWJ4NwQBdG NQcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O6MEO0JJbH7cz1Tl/SAwZ8G+cePN006H4WF8z0ANT+4=; b=WvdIB1RNVzwe9I5+d8fahkHVLo6QVPBdJD0+VDC7uXwl3m5hZKs94IcwVaInBXS9mw zM8LetGydkdzz0wrULwuliBvSE4JFyofzOwCKGasBEx0HpVl5flfhPhhMEqNjTVAWlEw IvZIHMk2JN5VALZLRqWK6H/HK0pqk9v/GBIwJ6QsI3bWH76mhuTCMgImz3w/SG1U2MKE +z/ou4voeVamRt3PSuW1L2ClYViJmNbHLL1yCpQkAEKPIGPBQOvRStoACVPrfH2Xmvfe w/1tGg75WL47U98L0W/fqrqxW9Q9G2IG9zJqmHSih3o6+xJUTj7NSqSD2oqaxJIQn1CH +how== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20210112.gappssmtp.com header.s=20210112 header.b=NsdgOMMe; 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 dm17-20020a170907949100b0072697822ec7si14755851ejc.253.2022.07.05.03.21.09; Tue, 05 Jul 2022 03:21:34 -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; dkim=pass header.i=@ragnatech-se.20210112.gappssmtp.com header.s=20210112 header.b=NsdgOMMe; 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 S230136AbiGEJqd (ORCPT + 99 others); Tue, 5 Jul 2022 05:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiGEJqb (ORCPT ); Tue, 5 Jul 2022 05:46:31 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49325D6C for ; Tue, 5 Jul 2022 02:46:25 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id bx13so13834439ljb.1 for ; Tue, 05 Jul 2022 02:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=O6MEO0JJbH7cz1Tl/SAwZ8G+cePN006H4WF8z0ANT+4=; b=NsdgOMMefg43xzXySytXzkaOWCiQDywgfKaxVtTOXWljFe1QM2Vue7LPhe/noCUGy/ R8tBksN4d2w/5gc0Xk7yG74rdp/JjJjRBsmgLCJE46L/85wk+4Mb5IFd9BwOJw8V5uGE X7KcVNKU0dHBhhUO0ndIOmpMYFr8Mh9MvNtVweBYfGpPDNb8ekoepuUBGpsqHNuqfgwD HCEDpSIOzZoexUSQqT1S5cZ5+6MdO+F0gpc71nwcZDfpgwz+6DM5niX8sdvFbtwmxH0N DqfmvnUOrFdmrrGngPj5ubuntSNIAqLaw3w5vTCGlO1oGsuGyiZATKT4ZOMs659ciMTc pBdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=O6MEO0JJbH7cz1Tl/SAwZ8G+cePN006H4WF8z0ANT+4=; b=zitUVVdzQRr8tR62Xdf3KSNCTLUiSx9tkcISTrXORPtb9VOfZW3fwM3jSwtHoMxH/G JvwxIKbiuM4kmrJ1VduAks275L5VV4xH2FnNcHlf0l8xAW6VUkZVaONVTkHQzx+IJiCK GI9efN8V/8+8AD5JZkaxQLQ7BZG8Lvq+yLiDDxyIeyYYtJr41Bn3McAhhLOV2iLPbD4i pxd2jFUaQENRs8rVsJMqVn/zyb6twpI5Who8AF8Xwxv654rG9hWTn/WlCfZ8Wz6gNoNr 4ZErMmqzA8U1RvDEynBBpoze3ExOyMi1Kno8WBql9z0wNoV9tmC6Yi9ufFd/7r+fAa9T BRGA== X-Gm-Message-State: AJIora8tUnRXtZBCz4rT2SEbeg3kqtYcx9d2aIfmMoPvI0EdOCoL1cyC 9dRoRaCZ7Li9y1V0Ds8mhJXmXg== X-Received: by 2002:a2e:bc0b:0:b0:25a:89a6:8370 with SMTP id b11-20020a2ebc0b000000b0025a89a68370mr18400483ljf.262.1657014383897; Tue, 05 Jul 2022 02:46:23 -0700 (PDT) Received: from localhost (h-85-24-188-65.A463.priv.bahnhof.se. [85.24.188.65]) by smtp.gmail.com with ESMTPSA id d10-20020ac24c8a000000b0048313e26b95sm429857lfl.130.2022.07.05.02.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 02:46:23 -0700 (PDT) Date: Tue, 5 Jul 2022 11:46:22 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Michael Rodin Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, michael@rodin.online, erosca@de.adit-jv.com Subject: Re: [PATCH v2 0/3] Improve error handling in the rcar-vin driver Message-ID: References: <20220628180024.451258-1-mrodin@de.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220628180024.451258-1-mrodin@de.adit-jv.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 Hi Michael, Thanks for your persistent work with this series. On 2022-06-28 20:00:19 +0200, Michael Rodin wrote: > 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. I like this solution as it truly pushes the decision to user-space. What bugs me a little bit is that we don't have a way to communicate errors that we know are unrecoverable (it was for this case the work in this area started) and ones that could be recoverable (the use-case added on top). I would also like to hear what Hans thinks as he had good suggestions for how to handle the cases we know can't be recovers in [4]. > > [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/ 4. https://lore.kernel.org/all/1fddc966-5a23-63b4-185e-c17aa6d65b54@xs4all.nl/ -- Kind Regards, Niklas S?derlund