Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp872511pxk; Mon, 31 Aug 2020 03:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3cO1cafpCsl05zoXIQxDWR7LV9X9clhGDiUNtZO70aQdGmqxsylgYUZs5ehjmDMQ179wx X-Received: by 2002:a50:99d6:: with SMTP id n22mr604706edb.265.1598870637036; Mon, 31 Aug 2020 03:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598870637; cv=none; d=google.com; s=arc-20160816; b=qw+lVDi90Aot2IL5RzO4oemrwm7IQxtKcx9WVFMOA/93P8WadCAv92zC2EvRRLsJoC 81+4tP+RRQbGz3cUqH7hLp9ijZYxWt+/BK4G0WZfvlNMZkOTFC/tz+Ee+Db+nnIH7wMx lzTluAO7l1c7S+hy6B33dcXbUk2GcEe8+l37RivvzqwbUZqF+PjaKm7n58+Hc9U1q83D 9+ZkN+V6PeonIv7zj0TI9pP3AA2vmu95kiBLe6k3W3M05HMcsKxTuIwPvzcLfQwjQkcx LqkQv9sEFbL5yMbDuyrf0b/qwcxTFqQrnnXTIJ10V0W3+SDjXu5HtYQP4Y4PYIPineXN nbuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rPv/m66PqBGfFixFz+zy9QNS1SRamYvcZOF02KNwMKk=; b=TuaROEtC11iA34ClnEm8dLcbc/4HRja3IiqFdwmhd4Roo+LF3hPPsCwBhdaEHnM7Vp D1Yq6AhGSP6LIzrlwdkbPx4Ob6Q3FCf4oBgaqnTkofIQHSfvE3w2SSbXVBk8+8o84doP hCfxs//S3Ap7VVc6DXTFS+jc1/eVay8Zl/2A5bLJxLdLO7QgPa3R4oF5DXoeGPPqVpRK je7NEe3ms3V8Ub2ZT8AjqrIcxzmjYflktg0cekPjzlAIxUYrKajVew1lWwE1xnTMbppN uf+rfpG5DqYXiltxHJnT/U3ZhMGcqUlGwVrFBH1DFuJDeXvcRiXILDDvHb3VE1hck+ns KIGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sZ7OU0Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si5656493eja.499.2020.08.31.03.43.32; Mon, 31 Aug 2020 03:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sZ7OU0Xo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbgHaKmw (ORCPT + 99 others); Mon, 31 Aug 2020 06:42:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:40474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbgHaKmu (ORCPT ); Mon, 31 Aug 2020 06:42:50 -0400 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0CF32098B; Mon, 31 Aug 2020 10:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598870570; bh=Ln4rslb3Qsf+jYORwga2CatpNCzcbpYy/Pfp93sjrw4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sZ7OU0XojCp1IV3YBbtZTQRSx2suJ/BI4B3xU1Dp75rSwSUEq9Z+5VOSBBlpyiVsh BeccjOU83nQjGeOnUH6plZqG409HyITYDcMZ9Mvfrj7SD08/f82sxq2Jy6C+xi+xNi CCo7EtL+aD/WMTrR6Lg5NcXVaPbL+LLcPaAzmN6Q= Received: by mail-ed1-f52.google.com with SMTP id w1so1325914edr.3; Mon, 31 Aug 2020 03:42:49 -0700 (PDT) X-Gm-Message-State: AOAM530tgRyPuAu/45z6G23Fn+YcEFHfwFTNLZFXxjVgBcklD/csOa8V /+GlYM99sKahOzJo43oN+ACwvkbVfnNJrK8vLoU= X-Received: by 2002:a05:6402:ca7:: with SMTP id cn7mr578907edb.143.1598870568303; Mon, 31 Aug 2020 03:42:48 -0700 (PDT) MIME-Version: 1.0 References: <20200830135200.24304-1-krzk@kernel.org> <20200830135200.24304-23-krzk@kernel.org> <96651e85-c27f-3167-7b41-2ea051c25c65@kernel.org> In-Reply-To: <96651e85-c27f-3167-7b41-2ea051c25c65@kernel.org> From: Krzysztof Kozlowski Date: Mon, 31 Aug 2020 12:42:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 23/33] ARM: dts: exynos: Remove empty camera pinctrl configuration in Odroid X/U3 To: Sylwester Nawrocki Cc: Marek Szyprowski , Rob Herring , Kukjin Kim , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Denis GNUtoo Carikli , Simon Shields , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2020 at 12:35, Sylwester Nawrocki wrote: > > Hi, > > On 8/31/20 10:38, Krzysztof Kozlowski wrote: > > On Mon, 31 Aug 2020 at 10:31, Marek Szyprowski wrote: > >> On 30.08.2020 15:51, Krzysztof Kozlowski wrote: > >>> The camera's pinctrl configuration is simply empty and not effective. > >>> Remove it to fix dtbs_check warning: > >>> > >>> arch/arm/boot/dts/exynos4412-odroidx.dt.yaml: camera: pinctrl-0: True is not of type 'array' > >>> > >>> Signed-off-by: Krzysztof Kozlowski > >> > >> I think that this was intentional to properly enable support for > >> mem-2-mem mode in Exynos4-IS (FIMC), but I'm not sure what are the > >> default values if no pinctrl properties are provided. Sylwester, could > >> you comment? > > > > Indeed it could be intentional... I see now errors: > > [ 33.752203] s5p-fimc-md soc:camera: Failed to get pinctrl: -19 > > > > I wonder why getting an empty pinctrl is needed... maybe the driver > > should accept missing pinctrl? > > It might have been better to have the pinctrl properties optional, as there > might be boards without the image sensor attached and FIMC could still be > used in memory-to-memory mode, as Marek pointed out. But it seems too late > now to change that. The binding defines the pinctrl properties as required > (Documentation/devicetree/bindings/media/samsung-fimc.txt) and we need to > keep them in dtses. You can always make a required property optional and it is not a break of ABI. The other way around would be a break. Why then not changing the driver to accept optional pinctrl? Best regards, Krzysztof