Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25348423rwd; Sun, 2 Jul 2023 15:49:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBojNpjZhWRZuMRJADjpAbsHjIaorxt1yEf9vrhVaTCpZ0WQXasMuT0QtnsEJpzq+rtEvc X-Received: by 2002:a17:90a:1947:b0:263:9e:d4f5 with SMTP id 7-20020a17090a194700b00263009ed4f5mr9595153pjh.19.1688338186709; Sun, 02 Jul 2023 15:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688338186; cv=none; d=google.com; s=arc-20160816; b=roilAaqz7BlMPALVR5d/+Vu/Iva50NQtNPH+pu8iO6XzM2rrmfqiW1RpNwfcpymjlw Ib+uPSdQ/fM9SNFD1YaaDTL96KlkoaOjwXL2zFQ43cF4PzMjNs0glK7dc95a1MxNdHhI GNScDdwkaKeJiDb4gMKuTNUI7E82cfw+3WBmY4REtMeuZlP2nhAGFcLYmdRSxWK5rq2K 4SfTD5/YS1w+UpYTLZGi6HoFcRj9tm6IGHpUS+asNnadnMFAiqVBQeqytDWvwHo44sD3 NJ0dHnHcKirShEf8lXoh8A5QnH0sHU0tFr0MJqNVadd7JUjVzci4yd1M4IvM8EWyH74N PKHQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GwAg/fgt9pzNylAREXyqdp/+U971ZDChF5hj0Mm3Too=; fh=RuUtcKcrDtS3voG3gBFolEZSQgPPr0LpN/+9y+J+doA=; b=Dssr1wBEWRwmbvNkSAuDoo4YFK1r5PASqlmHjot30VCnkI6E04f44r/VPn6tuaUl1c cazbpUoAIKAPS/Kf9t+/pkqZF0UNRkfr2XIvbekJtYkl1XqPCf4HLvo2WgLEv+CZTPgs 2J1F4/xtwVLD8aEGJD0f1vWsjkS8SegPDKDBzkCUpsb56XkhDUyOqV/ZYKQ1U11Gl/aq iGKFHy8G1KjKGBnOAThO9eoj1rbwOLdRm85bLA0GdpUMB8CqWWv3AjzKbkmvlg7gWzST 2lKP8Gr/UEwJHf+behsr4u4Eu6io/Le/XjeEOwhcXxoE4XfJTlTrIBPr0Y6qzFh5D5DJ 1SgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=TUj6tKE2; 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 d11-20020a17090a628b00b0026308f709e6si12232944pjj.113.2023.07.02.15.49.32; Sun, 02 Jul 2023 15:49:46 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=TUj6tKE2; 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 S229889AbjGBW2H (ORCPT + 99 others); Sun, 2 Jul 2023 18:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjGBW2G (ORCPT ); Sun, 2 Jul 2023 18:28:06 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF3FCE48; Sun, 2 Jul 2023 15:28:04 -0700 (PDT) Received: from pendragon.ideasonboard.com (85-160-45-219.reb.o2.cz [85.160.45.219]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E252A6DE; Mon, 3 Jul 2023 00:27:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688336840; bh=XkF0zOHhROpAoFlaqmgLQgzZVdldtalFw4OSvXP0aN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TUj6tKE2Gjdwo+OIwF6bQ1z30sDPB8Em+YpmNP2RWdeacN6uGeCpsD9ps7UF5774g u+dD78HhOMaRjjoTVtxxOLSx8bnybning+dFX5gWQyb+Pi+32cqf833QF5/4MwJPQO 5J3rO7JURTZxleXoSfFIaGE+ssletB8gUNcN6BlU= Date: Mon, 3 Jul 2023 01:28:03 +0300 From: Laurent Pinchart To: Sakari Ailus Cc: Jean-Michel Hautbois , dave.stevenson@raspberrypi.com, devicetree@vger.kernel.org, kernel-list@raspberrypi.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, lukasz@jany.st, mchehab@kernel.org, naush@raspberrypi.com, robh@kernel.org, tomi.valkeinen@ideasonboard.com, bcm-kernel-feedback-list@broadcom.com, stefan.wahren@i2se.com Subject: Re: [PATCH v5 04/11] media: bcm2835-unicam: Add support for CCP2/CSI2 camera interface Message-ID: <20230702222803.GF9285@pendragon.ideasonboard.com> References: <20220208155027.891055-1-jeanmichel.hautbois@ideasonboard.com> <20220208155027.891055-5-jeanmichel.hautbois@ideasonboard.com> <20230702152356.GA16995@pendragon.ideasonboard.com> <20230702214505.GB16995@pendragon.ideasonboard.com> <20230702214711.GC16995@pendragon.ideasonboard.com> <20230702220138.GE9285@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Sun, Jul 02, 2023 at 10:20:29PM +0000, Sakari Ailus wrote: > On Mon, Jul 03, 2023 at 01:01:38AM +0300, Laurent Pinchart wrote: > > > > > > > > If the hardware doesn't support lane remapping for CCP2, then that should > > > > > > > > be reflected in DT bindings, i.e. data-lanes isn't relevant. There's no > > > > > > > > need to check that here. > > > > > > > > > > > > > > Should the above check for CSI-2 be dropped as well then ? > > > > > > > > > > > > Same for CSI-2, too: if there's nothing to configure there (lane remapping) > > > > > > there's no need to validate that part of the DT either. > > > > > > > > > > OK, I'll drop that. > > > > > > > > Actually, I'm wondering if it would make sense to tell the parsing > > > > functions whether lane reordering is supported or not. The checks could > > > > then be moved to the framework. What do you think ? > > > > > > I'm not sure how useful this check would be in the first place: if you have > > > hardware that can reorder the lanes, the framework doesn't know what to > > > check there (if anything) and otherwise there's little point in the > > > entire check. > > > > Isn't it good to tell users that something is wrong instead of accepting > > the invalid configuration and let them wonder why the device isn't > > working ? Users in this case would be system integrators, not end > > users, but we have lots of debugging information in the kernel aimed for > > them already. > > In which of the two cases above the framework could do something useful > there? For devices where you can reorder the lanes or for those where you > can't? For devices where you can't, to detect DT that reorders lanes. -- Regards, Laurent Pinchart