Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp986827pxk; Mon, 31 Aug 2020 07:00:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIRNlD/yn8uV1ebgVl6UZANkjzxtbN5uDNKnO8ROP/LJ1zQNhkF/Ynfj9soE7F6ZZ1xH+e X-Received: by 2002:aa7:c693:: with SMTP id n19mr1442738edq.101.1598882430518; Mon, 31 Aug 2020 07:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598882430; cv=none; d=google.com; s=arc-20160816; b=atbJZKE/axiTOHLYSFev9avMgk6LCdII1SgRZs2lchdcHWHa1lv4b+8Enn+vbLK9MQ Gn1aRZVpp9k6oTVFhNtrHYiTs/hTXC0X+Nz/KIy6Vb2cGNH2yKtT5XL74BLkqLBk4Ykt 2Gau8umeyR5JELTsaIxwyzFNlyngMH7G+aNe2neZLTyqtL4uewI0qLiiT7h2dOPC5ESM 8hc/ILAJsSmBQpRcNqd9um4ExdCbMqhYSSk2Gt+RqxbYL0eXgqnsopJTdNQAV6x/OSI3 w/TPKsWj7W+JYf1DX7ml7xl4mMjZ3KgbUIPW5403B9Q9gHkAqGs9tG3/YuFIh5cORbZp Gvkg== 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=RuuDfTNFoVt9CoYEPb0RiUxiMchA59TrjVx4jrBc72E=; b=FHiDTJOXfP5ZoGeIEQTbhYWlErR25KKKBpPLkMfoSMOvR9NBo3CPQImczJ5VD1/Ln/ vYRG9Pi15P3218IkXKORPA1klvMpe1lJ8FARx7SLAGopIp7Q36qzOmEQ8yW076i/CyBJ sDIgiwNzAEc/a+mStH7I2+b8yfidbIdI3wsD35GXs7vSY3gF1I0F2ECKIjFimNgrt9DM WQiaZGVdTQ4V3jpBzC1QWNP6RruQ8WtyolkvzJVSaQB2rPWCYoLpE0XXVDiJS3r/ZZpB luleLyj8hAY0S0R6dW7gZVFn65LlRD5IxNLibpFDNVVRgFU1vCYfqIObXdMU29JB4oO0 MCQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ut5tovIE; 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 n15si5425384eje.669.2020.08.31.07.00.06; Mon, 31 Aug 2020 07:00:30 -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=Ut5tovIE; 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 S1726913AbgHaN70 (ORCPT + 99 others); Mon, 31 Aug 2020 09:59:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:48266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbgHaN7V (ORCPT ); Mon, 31 Aug 2020 09:59:21 -0400 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 AD84420936; Mon, 31 Aug 2020 13:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598882361; bh=0ELgDN4DCdbC4neuwarO8uv8nWk+EoaxkCEgogyZFGE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ut5tovIEHzLSBfa4ieSRCaowAFda6fVXnIF6OfQVSDnQjQqD5u3XBE9ipwjTcLPjA 8HyTMoS6pX0snp0m/oY5G0zGSFDaK0RFmCmcf26Dx5DV5v/vOXhZ50i8IQcxHCevvO yx44Yq7XOmt5yi5Id68//MxfeE2QR2wd+C/OynSU= Received: by mail-ed1-f44.google.com with SMTP id w1so1906645edr.3; Mon, 31 Aug 2020 06:59:20 -0700 (PDT) X-Gm-Message-State: AOAM532uKRsAsJ8lS8Ey37CFHZaIxYTNDdHJrcDCCsr70rOTAeBT1ajY s+EEQUOBrKRaZL4UgCBCAqQ6NFZTn8+i58nuA5I= X-Received: by 2002:a50:fd0b:: with SMTP id i11mr1363872eds.298.1598882359253; Mon, 31 Aug 2020 06:59:19 -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> <01bb90db-511d-fbf5-d29a-1fba932f0abf@samsung.com> In-Reply-To: <01bb90db-511d-fbf5-d29a-1fba932f0abf@samsung.com> From: Krzysztof Kozlowski Date: Mon, 31 Aug 2020 15:59:08 +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: Sylwester Nawrocki , 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 15:57, Sylwester Nawrocki wrote: > > On 31.08.2020 12:42, Krzysztof Kozlowski wrote: > > On Mon, 31 Aug 2020 at 12:35, Sylwester Nawrocki wrote: > >> 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? > > Feel free to send the patch, I would prefer to leave that as is though. > Is it really suddenly a problem to use an empty property? The pinctrl > bindings allows it. The bindings scream: arch/arm/boot/dts/exynos4412-odroidx.dt.yaml: camera: pinctrl-0: True is not of type 'array' so either we should model it differently (not as empty array), update the driver to make it optional or change the bindings/dtschema. I'll see how to fix it properly. Best regards, Krzysztof