From patchwork Tue Nov 12 06:41:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13871757 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88340D41D5D for ; Tue, 12 Nov 2024 06:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=0wwx46hUc+JITaPM/J9cxfHmkLSgKxq4hLxxMn5dJUo=; b=sZ6iMFfWyqrV5g2cBgLwrjBM2Z boVLv83yMqq87kAahZbmQiJNTpiwrzt4eZVIQkP+HvvKUpEAvL/CzEV8jstxz7FtCYWDI+GoIyJWh kDHZs8HpMMm6ykKiBAd5+1IlMOktdViU8Vyp9AgMpXC8LjjQM+bjkkPt6QG5/pggy8S22e6Z42oV1 fREn1RotNqrbryUN054vpEcvwBGzTHRwAvMJogy9zJHpfmPPUF3beRGDJqwtdR0SXfwpDdv5dtCRa cc+/vyhbxB+xCVTp6tMoQZTztgCXSrEF4O74xePBYFgZZfFc3XRm9YzKc8gEqdk9gJJ9Y5rIqU7An qqfSqxfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tAkeW-00000002MYv-1HkB; Tue, 12 Nov 2024 06:45:28 +0000 Received: from mail-vi1eur05on2071d.outbound.protection.outlook.com ([2a01:111:f403:2613::71d] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tAkbC-00000002M29-2vUX for linux-arm-kernel@lists.infradead.org; Tue, 12 Nov 2024 06:42:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YB9qkRso6H5e0bZBrFPtpZiFeSeuWmAVUM0qBxzY0ldGeh6gBOTbeUVjQ4MJ9aT6QkFU46RzkvJ6UVRexTnXPDLSmpK03S/JxTnXgKfIF+ObPEpbsaY2/eFigHqpHgANdODtwveHwf1QCpiW4VuuMT8tU5GPNQmGFy8EHA/ig+5FE996eaDwe6btGDOvLrSn06CUx3ElfLPQzOXn3WB1jO1xdgZygA+3ZpSduEa9/NTucmRjc6tp1kfapO9zYlwBep2KXVrIQH5dFNFmRzkbRVtxa3QacYMiBgSA68HIiGOgeWz6YhYRH0EaB9R/TXw6jSB9om2KrXYkFYh3jlIj8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0wwx46hUc+JITaPM/J9cxfHmkLSgKxq4hLxxMn5dJUo=; b=eEQUTjDxrAMfvaFiNctK336n0XclwS5wqCNco9dbcnm4mucPWjKu6zEXxLIUCy/XNmgzU/+WWfqUVFXSHWkqbkt8dfeQ1HIl1U0TAy6bozvhUv4sENvqWaxI75ebHEMLND0D6QFcE7whQGwWeEU6X04tmiaIcW+riZvcxvoxdaAxtt72MHXFQEhr5Kf7/7zzbORO3Ylrf/UregmzUR+6QoTsHSJIWPnCHoAiVNP4LbivPtNrP2MBLj8n9oTJ0CSCwUZAZnFRhKtoAIkk7NMQPZ3qurRGjJQbPfl2Elx5TLZ/mZUYpXnUbo3f8ulFUZnEjddMyzCqrRlEHOV/Ra21VQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0wwx46hUc+JITaPM/J9cxfHmkLSgKxq4hLxxMn5dJUo=; b=FDzoeasRNSl0qy6xaS7f+wXcSjY0Ly05m3T8dtKGgiYKciBgX6b95JLmEpLuiOLBSnDBms5X9sEpdY2X8AG+WnobDavQlfebjum8BWWC7I3i0k7AZHQABvExVTyyNVNG6nTT9RbHCTMpeMUKWdjzdmuUZ2cDfFBg2Bp3y7eY9D4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by DU4PR04MB10959.eurprd04.prod.outlook.com (2603:10a6:10:586::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Tue, 12 Nov 2024 06:41:53 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%4]) with mapi id 15.20.8137.027; Tue, 12 Nov 2024 06:41:53 +0000 From: Josua Mayer Subject: [PATCH 0/2] of: add support for value "false" to of_property_read_bool Date: Tue, 12 Nov 2024 08:41:31 +0200 Message-Id: <20241112-am64-overlay-bool-v1-0-b9d1faff444e@solid-run.com> X-B4-Tracking: v=1; b=H4sIAJv4MmcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDQ0Mj3cRcMxPd/LLUopzESt2k/PwcXTODRGPTlERLY+M0cyWgvoKi1LT MCrCZ0bG1tQDqUwsdYwAAAA== X-Change-ID: 20241112-am64-overlay-bool-60a35da933f7 To: Rob Herring , Saravana Kannan , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Josua Mayer , Jon Nettleton , Yazan Shhady , rabeeh@solid-run.com X-Mailer: b4 0.14.2 X-ClientProxiedBy: PA7P264CA0446.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:398::29) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU4PR04MB10959:EE_ X-MS-Office365-Filtering-Correlation-Id: 11d41947-929c-4966-b521-08dd02e5182f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bOCg233Mk5ObxuFQgX4Mf96Zj9CoiWT?= =?utf-8?q?w59Tcm2RyOSfpl91jgcTN6D/g21yAmNXsx+Cy4ECjvf8oEUAtvEMvy3uIj4TX7ebP?= =?utf-8?q?2RjgFA086zu7yR5/tiy9C/onQv+Tqog4UnSxOpxdWEfTTEBwitEzS/+aS06kqXi2Y?= =?utf-8?q?p49QsUbOaB/8JGShq2zuNJgRTTM46oQ6T9dSve8y+VarUR9E6cShVRPA0vP1FLzt6?= =?utf-8?q?/V4mjgXEl8EuvXjk5XxKfm4ZkyU/86mjxdi1i1zAily8eZA+r9weIyUNvjaTHDQ9w?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?q?4F4/GfqpoIf1U6oh2yu0q6FcYm0RtAK2QI5q3dhwqXakarYWykQBaSB4MgQNHTw/3?= =?utf-8?q?1XyU5ru4hUOBabfDpHg8dsbxQ67Iajgtu+4upLaQF+CrJQpe0mhYWWw5CjfjUkwkP?= =?utf-8?q?PKizMZG4T62wu9geSfV7ossN4JIt0DFWBhh/s/isXL8Qs8FcJH0lnQ16amY6WziUO?= =?utf-8?q?VA+WGvL+2oup?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OokW+UwC7wvFhOaMIDXe0dkq2sH8?= =?utf-8?q?LCQwh0D/erWkkeWcTPFC4gu4jzCEb34ZXZhID5dvJ/xpHX72H1dBwjyaRkCwGqxpU?= =?utf-8?q?qGbV2G6YbyAt0wpuuppSE8hbFH4xJAkkCTmysaaDO3JPZb46q4rhT3YGvk61kGmp5?= =?utf-8?q?Uc2/hYOnUTKyy2ikCIgvZnbTs3e8XksGVimVxfsIPMJKRX3bQa7XzPgIb7ErmAygl?= =?utf-8?q?VZHrKh/gHNVnThy9j5swI8L+/mbi271oaNoW6pi2pwq6h15hwCRl4/L3IRc3KBOic?= =?utf-8?q?ItZFS4u28JpXv7Uvw5MXIY0ZFrU18GetUBHc8VZrWoyIjOaSUCIpHPDNKOgdF3tap?= =?utf-8?q?P1R7InkGKTg6IB0Au5qfQvo978fdSNIFFmnTCSAuogyeo47CdFZ/OOIFrIb5DXUow?= =?utf-8?q?AY/fG5xS+GJnyjHH0+UCQo9csqFSYokVRCguprzMJSeCzPShBo3IrGuKQDiZ5h0sa?= =?utf-8?q?Ytq6i9d8VATcTLWBzg7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Iw/GBuDiRtB4duzemhU9yybWDEbsIMA9Q6Y7?= =?utf-8?q?B8wAc6X2KMv6Cw3AR/neXeNvt5k1SWmP6kMPolBTxh6vySnK/g64Okrx5iQzSexWj?= =?utf-8?q?n9/QVVB72sPTmRRwvfIugoh3HXFLf6oHmaDdZqJjzR5KG7yc3QggaXIoweVvy0O1B?= =?utf-8?q?WwQ51111ibpZ?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11d41947-929c-4966-b521-08dd02e5182f X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2024 06:41:53.4511 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WQyLbP71e1xPwPfuVtWhUzEoV8HK9Q72U5Y6/Iu6uI3RJXPTc1k5kJuUvZTU+8JW1wiigW/RTQDD5qkHlgUmtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10959 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241111_224202_788529_D1B0020A X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Boolean type properties are usually considered true if present and false when they do not exist. This works well for many in-tree board dts and existing drivers. When users need to overrride boolean values from included dts, /delete-property/ is recommend. This however does not work in overlays (addons). Geert pointed out [1] that there are several invitations for using strings "true" and "false" on boolean properties: [1], [2], [3]. Add support for a string value "false" to be considered false on boolean properties by changing of_property_read_bool implementation. Affected by this issue is AM642 HummingBoard-T overlay to enable usb-3.1 function. This is an alternative solution to dropping it's disfynctional overlay [1]. [1] https://lore.kernel.org/linux-devicetree/CAMuHMdWY0J7uooeRbUGwjkeCLd2UVyN9dtDWUkg5pJ3sAULdsQ@mail.gmail.com/ [2] Documentation/devicetree/bindings/sound/rt5651.txt [3] Documentation/devicetree/bindings/sound/pcm3060.txt [4] arch/arm/boot/dts/ti/omap/am335x-baltos.dtsi [5] https://lore.kernel.org/linux-devicetree/20241101-am64-hb-fix-overlay-v1-1-080b98b057b6@solid-run.com/ Reported-by: Geert Uytterhoeven Closes: https://lore.kernel.org/linux-devicetree/CAMuHMdXTgpTnJ9U7egC2XjFXXNZ5uiY1O+WxNd6LPJW5Rs5KTw@mail.gmail.com Fixes: bbef42084cc1 ("arm64: dts: ti: hummingboard-t: add overlays for m.2 pci-e and usb-3") Signed-off-by: Josua Mayer Cc: Geert Uytterhoeven Cc: Jon Nettleton Cc: Yazan Shhady Cc: rabeeh@solid-run.com Signed-off-by: Josua Mayer --- Josua Mayer (2): of: add support for value "false" to of_property_read_bool arm64: dts: ti: k3-am642-hummingboard-t-usb3: fix overlay boolean value arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dtso | 2 +- drivers/of/property.c | 2 +- include/linux/of.h | 13 ++++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) --- base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc change-id: 20241112-am64-overlay-bool-60a35da933f7 Best regards,