Message ID | 20231224183242.1675372-10-Frank.Li@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp74529dyb; Sun, 24 Dec 2023 10:35:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEW1HRevD2lKNARHKmcS8QuKuh3lXMlPITI0FobRO4SaIPdgLy9hVtjLuVaN874TzIstnvy X-Received: by 2002:a05:6808:3995:b0:3ba:fcd:a995 with SMTP id gq21-20020a056808399500b003ba0fcda995mr6322356oib.41.1703442952626; Sun, 24 Dec 2023 10:35:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703442952; cv=pass; d=google.com; s=arc-20160816; b=RuWwmMIpGhdHfP5te2v4pp5/Uo7qNy2NoIiYIbmuh9AKB1Ro7OBbQVT63tG4yGlYBe Z7uJl5xZFL14i11X/A8BUkT6F+RVYax829vlijTOfU2IlDtP/hq99EdcpAzQXtTaOLmW 66vJ6rGZ9+hR+K+qnMgtum+MdCOQCrlYony/Ca9Xrfz5RIH73G62nclVlGUy3cI0tUqU /o69WjJrdkjwoYYLEz7CXCeNBXG484jySi2FFTU+3QXEkyXfjLPQz/IP5rsI8vZxgEwp S/bBSPS0LjHQE21gMt31PrfZDF/QzTozroCiG7lbmxhHH7GZA9DtaKNyEZdf7cqnndnP NLFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=DwGNcVVm9dRFaWrWACS5+4/Jv6HAxqd0aWPvzjOpLIE=; fh=492Ek0Vpabbqz4y1lk9p/Id6JH5wlBXcD/z8VK8wbWM=; b=atlA2HjzN87Uy7J397E7zbae13cleTMoed6dOd7oEXri+TWom4jxpjN4C5V43kSAfQ vuskWPKJU1zItK7e9/HpyW7mzQbVVdzDOnzt7/WqLauwOZpIdeWr3slSxzIWf1+qTtvY wOKBFPTOLgs7uptwWz1fodpfOSeARICL0xDGc0+nX0pS0hT/6o9wgCkLZGTQWN2hVuAD Ob0V2NDIp6oHJZuBU3t4fImQtNCznX2gX08tMAtuHkft6g0ms1uPa+IUnVCgM+kSFxTk C4kn7WiY0YXwYjfUgHsIaIbh8Dy+2Wu1X7juEjL758RlcXvPyONdAQ8eqiwwO9It6Fv3 6iAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="GbUjiP/C"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r13-20020aa79ecd000000b006d9b8feeee4si558584pfq.249.2023.12.24.10.35.52 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 10:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="GbUjiP/C"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10793-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5BE55281E74 for <ouuuleilei@gmail.com>; Sun, 24 Dec 2023 18:35:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C72215EBB; Sun, 24 Dec 2023 18:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GbUjiP/C" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDEEEE572; Sun, 24 Dec 2023 18:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I5bF4DEAwBu+DX+/tqEUnK0TlA3g1w3paxRPB6EtOAa2+udM6tRjGcW/6Cz8yQk9keTX2MgAtH3F46cgp+IuCQCFw7OKPZ14wM+p9Ju5z6jvyAJZ4i9m7DqcTdXKpwlVgDndyYoYC4xUEYARH29/UWdvsEWqQHYgtutBIRIiBclbAqyKNzOUxHjLOQSjcdt35e+RX3oLGpmFX+zWN7J3oTSqVyA6ENl1JvIN+i9S3lqpWMeTLIyaLKglN2zHqUVWqN7PjOaXFPsTH2CGW1L1U5W3vk3GyQrprtRwMvrRztKxGDz9iXBEj/jXvq/Td57HiaSmnGiUvRCZGo9bQG8pBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=DwGNcVVm9dRFaWrWACS5+4/Jv6HAxqd0aWPvzjOpLIE=; b=mlpbKulOXiPMrlukQb9yLWBOdEYGiKCgdZU03EYoCK+hM7DkP2LYELAA/gprTuJs4yejSY9P4rCiy/n8aIKXEmEaT/04j92QOs1Cm96Lg01OtQITOZRDpYUjqnibH6fzjpeTi8N6wQ21m6+hAA3Etj4k2AWmUEpIn7gkvQCQrOfriiOaP30TafpiSd6l+AneTtHCMqUfQAcM1Qf34fEpwDNjgJYaGHcOD3amHnh4rvM9ieuIr4hVP2J+00FFcVKJT7nzlLm6s3vg7XvQXEkc+2fCVpmRA0Ck9FLyOmJ74m+w0PgSUFvp7I1Nnni7dFEyt06SW0UfCEv5D5IkObpbAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DwGNcVVm9dRFaWrWACS5+4/Jv6HAxqd0aWPvzjOpLIE=; b=GbUjiP/CRd6WOzlDOvntdopat3uGtTKMlHfzJ/UAHf1qSVf44i4dTbSyDvDpkqcrQAbC5CvYo2PZWZJKjDI5IHVejjGrE7kFjix0PhuAqB2q3nVqaiRHO9U8u/wwkHL8BnhwwG8ajf2QrLEQlu4oUgvMm9nOyUE+fEQIMQZs67k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS5PR04MB10020.eurprd04.prod.outlook.com (2603:10a6:20b:682::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Sun, 24 Dec 2023 18:33:49 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%7]) with mapi id 15.20.7113.026; Sun, 24 Dec 2023 18:33:49 +0000 From: Frank Li <Frank.Li@nxp.com> To: krzysztof.kozlowski@linaro.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, helgaas@kernel.org, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, manivannan.sadhasivam@linaro.org, robh@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v6 09/16] dt-bindings: imx6q-pcie: Clean up irrationality clocks check Date: Sun, 24 Dec 2023 13:32:35 -0500 Message-Id: <20231224183242.1675372-10-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231224183242.1675372-1-Frank.Li@nxp.com> References: <20231224183242.1675372-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0169.namprd03.prod.outlook.com (2603:10b6:a03:338::24) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB10020:EE_ X-MS-Office365-Filtering-Correlation-Id: 8bd999f8-13b0-49ae-107a-08dc04aedef7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fBPOTqvr1QskLGfFmBlQsx8d00hBSH5PJoAAiEfln/hrTdnEZdDBJ5WXiAFqGXpiMe+lJ8cvO/bfDHrpkm1RIAZyvpobgIU9dE07Yieu6aktT3Lpmxy2RQrKA2lNF4XBUvQzaeVk2qp4ZVcnPhiR51rtuku5IiFmn7t6ohzwJfmONBMX+b5z3UZRyJyL8QY3CR5nTDA7hExmEbqNinle+/e/a63wMs2koqOhK16hEyEogBu7h/1L6P8FFVefyQdc7TDCZ0NzMNWFe/PIwsHcfEkKO44LoosHFz5OfDvhgJ9OLXxJa7fMA2na6QchorEBA9zpMScO0OeVC9dafmp8Rpu6ZO15QAmowXP37ANiyzXcmKtej8NBtHcCSPbmNPS2TLgX2kWLrp8hnoI3Z5dvJS/yaz5OwDo/8cfbtQSwtWuRPgfKllugOQfyX74IABIDVdkV53xD41v0WZNwo5jqdAiww3OO850UclSyOpJ7onW7t6DXLM35EtXm4KCDubXjXtjttX0LrnKtDJecawGrY2SCUH04c80tmk9mOIIBa/txzWoSwEZq8c3ATc8YAgpCaWV0j7ycHkwkMsAIWoMsgqelDImQp71ub5byDVuPZVVyaPmqhGtoXZY6APUFFjcoWQk5e1SWQ1hjn4AwUSQ+yw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(366004)(346002)(376002)(136003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(38350700005)(41300700001)(86362001)(26005)(36756003)(2616005)(1076003)(83380400001)(38100700002)(52116002)(478600001)(6916009)(316002)(66476007)(6666004)(66946007)(66556008)(6512007)(6506007)(8676002)(8936002)(7416002)(5660300002)(2906002)(4326008)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mSjiI2tarp9sQ0IcxlsqsQM/VJwvE43kcxtaFuxSt9eoMIFd2Twy1UqZF0jVgx80kr+oxHL5d1jTrEb3jWFITj8Qw9DhGmiKDRa6LNTHNmvwptTCQ8vEI/rtCe35nqmc9dRpgwNs+gFSQaaKX3qcYOflVG+t/sJnFbhhRjU9RDnLXptcAiZbqycgw8qZCSan1Y6RmOGOUySIZShSc8wLgr78VmVJVvWa906cY4q4KGkngJjrpTNXgPHEFDYNYqq6o/z0Z0guLCAby3tWN1u6hnZiJHjW61mZovjfuImxirIF4LramVKsT8ui7WQLIbEm+JoKTQsdHkKWnlbdT6XDx4PAGbdYpseyKDwdMUi5CwL8dL0lBw9tUTWnqy4FHNuxu8wQtQCJVLboA4ETxYrGU1DMJYr+zNLnfpIac7v9MZ5e0jokHat4xtW8UwAzVYw9ewmDszBi2CF6n0z9nRNFYUAE8VlF6jdtQkI6SuW3/lxxrCK2x9ulrXVPsqhoodiMpICUN5ZJJdwc37wsZpDtc7iF9l3T4OYTmesNzsK7TFA81QGcyJjRKzNRXPV1QAqepZPAJGCKHEZcYeAd5LseotvIfKR24kRu9rEliWqfQeJPDg2UyQDEDIRYDma90hhIbySQMzpRou/0ZWKwi5jCjYGnmmSegd1QFp9TpoyPGzodmhfuOUZIAHdTBwWHAolh/AXaSuH4XFTe1xgfN+dY4rc3vjLUcaEJYJw5/A2Sd8BL9PV6jWvpvqx1FbV/ySKqsHo/Vg9yNS7lkooaD+RGimQ/p99r9slzJpqaUMTp5PZCFN7vDcmn/hIQjNPFxDIM3SNLbOLJVwAm3LfJuyJwHdPoWbdBflYgjApnPGZbBn+pm0WsTW2Y/JkfLxEn9nld3n7bABG+46ZfOvN8Y5NWYHFcw1nCm9NB9Anbwst9Q5IO1DNAirVPd5rw93MkFti+JYYnB7Q6NVsina5B2hDfHoKA1mdvlKusw482D8KPFf7cnDGypUfLf6uo+MMBt/QjLpfzTPz8Uag3S7XbOP9aTi2H4/nnRGNcrZfD/4alI6+AX8JCwYsyaHrYI7n79XSYF7JNY+yU8D33uzgiDK0JS+xCXP/3Tb5VbRtBgC9/u5B1CrOVW33zFOmzrj4MSJXNR4oSv6drgzLKsF5/pJbVl1cdYHovVWI18NkyMdRjMa/DJAdXapNWHLFmRSZRjjFJWczeIeysk6jt1NlrlLnR6MOSkGDPqXsquDzT85JxWGLcE1mGT2DhGxw565lpRi773O/D6YxvlDhlYC9FdtH5DPUOfjtF/kql9JsdryJxH+jWZ9Y984egTDFBqGISC5mqjxNt5orLOJKgfRRcMyA0e7/1YdLR+fL6NtDBXhg99A/pAt5ljiczqgIygMKW1yu2rp3qGYt7leyWNKI/iCc6hhz0NjL7dFQBqD+ANNiy10YWd3Fnr0n7zserP5bpGQD+aIzc7Qnw0T6HhakHs5P67lca1qt3j+QL20muC29OQPMJ5eFeEv2DBykUsM9ut17/bhGf//zzvgR1MIomoQ0b2J+29ChP10EGkA3PZ3fgkqE= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bd999f8-13b0-49ae-107a-08dc04aedef7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2023 18:33:49.2835 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bbDiBuEK1YvC7EE4VLFTQbP4/tETqV720gyecPmmCJTcGuLzccBVAz2ID8nIV8WBoRBc5J5rI9tFW40lGKMZWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10020 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786189397047520777 X-GMAIL-MSGID: 1786189397047520777 |
Series |
PCI: imx6: Clean up and add imx95 pci support
|
|
Commit Message
Frank Li
Dec. 24, 2023, 6:32 p.m. UTC
There are clocks and clock-names restriction for difference compatible string. So needn't irrationality check again for clock's miniItems and maxItems. In fsl,imx6q-pcie-ep.yaml if: enum: fsl,imx8mq-pcie-ep then: ... clocks: clock-names: ... else: ... clocks: clock-names: ... In fsl,imx6q-pcie.yaml. There are 7 compatible string. Each one already have clock check logic. if: enum: <compatible string> then: ... clocks: clock-names: ... Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Frank Li <Frank.Li@nxp.com> --- Notes: Change from v5 to v6 - rewrite git commit message and explain why remove it safely. - Add Rob's Ack Change from v1 to v4 - new patch at v4 .../bindings/pci/fsl,imx6q-pcie-common.yaml | 16 ---------------- 1 file changed, 16 deletions(-)
Comments
On 24/12/2023 19:32, Frank Li wrote: > There are clocks and clock-names restriction for difference compatible > string. So needn't irrationality check again for clock's miniItems and > maxItems. > > In fsl,imx6q-pcie-ep.yaml It is enough to say that bindings referencing this file already define these constraints for each of the variants, so the if:else: is redundant. Two lines instead of ~20. > ... > > Acked-by: Rob Herring <robh@kernel.org> How did you get it? Please point me to the lore link. This patch appeared in v5 and there was no response from Rob, AFAIK. Best regards, Krzysztof
On 25/12/2023 20:05, Krzysztof Kozlowski wrote: > On 24/12/2023 19:32, Frank Li wrote: >> There are clocks and clock-names restriction for difference compatible >> string. So needn't irrationality check again for clock's miniItems and >> maxItems. >> >> In fsl,imx6q-pcie-ep.yaml > > It is enough to say that bindings referencing this file already define > these constraints for each of the variants, so the if:else: is redundant. > > Two lines instead of ~20. > >> ... >> >> Acked-by: Rob Herring <robh@kernel.org> > > How did you get it? Please point me to the lore link. This patch > appeared in v5 and there was no response from Rob, AFAIK. Ah, this patch was added at v4 and Rob acked that one. It's fine then, but you still could narrow the commit msg, if there is going to be a resend. Please write informative but concise messages. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml index 8f39b4e6e8491..a284a27c5e873 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-common.yaml @@ -150,22 +150,6 @@ allOf: - {} - const: pcie_phy - const: pcie_aux - - if: - properties: - compatible: - not: - contains: - enum: - - fsl,imx6sx-pcie - - fsl,imx8mq-pcie - - fsl,imx6sx-pcie-ep - - fsl,imx8mq-pcie-ep - then: - properties: - clocks: - maxItems: 3 - clock-names: - maxItems: 3 - if: properties: