Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2416859rwn; Fri, 9 Sep 2022 13:26:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VPfpIT/fK11TCk6LzbOhwvxv4S/zAlLb73U9xWDusnCIOCO7h4ImTJljx11oJp7YaRpIO X-Received: by 2002:a17:907:6091:b0:731:37fb:bd9 with SMTP id ht17-20020a170907609100b0073137fb0bd9mr10837364ejc.219.1662755203466; Fri, 09 Sep 2022 13:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662755203; cv=none; d=google.com; s=arc-20160816; b=c/ieMXC6r2b/a7GybdCi77NJsNcBORJTmuR4HDhAUmNnwnhxRfYfm0tio1Ern5g4IW Ueew4Tr6mIrmwZdPJkNhfYcGC2MA0fDfMkRXvZJEFUg1rZf/eGBf5XLiMz9ul8X8VMox PxQGD40Sa5+4d+rwu0ud6Fy1yoITwnEWfuGOV73GvW55GdlXdhsGpV5h6EL9kmQHJDwF G//ZWuvD9XzdtdYO7zRW1JlzxYzKdLIr3fG2LKZIhAUbHhrVSauZeFKV4t1lmxc4A+Oe JOKeSuOg/mMOQJ74IlW3mzExrmV5W5KxGdvZcclWLL967exBw2kRis5LAx46XtQebsrv SEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Y7WwfSNSVFN6DsOTitXYalfVMtQs4BD5nZyMmYc6YaA=; b=qp4uHsaa5NieYn9OK5c36N5+8rvZnZJ/E5NmRYBLvS08I+ebNt8Qf22RTXb5c6fvJ2 Ce4YQVWF6o+8w36byn6/SpEiMq/eDQxs/8TyePGvh5SxQ36v3mNNtCAiD6zXAwXBORoc HkEk+Z1JFZTWfKUg5mnQE3hrk9edNSyh+6zq3mMNhChh/wCSnI3GTcwTl+GaS+eAKHuP /qbq9TAvIx0By5QXUZYLx/8Ml1vFFmZ4DJ71Fl+BUypDMiiM2MupIlvq69G9HxCRnQSk bqxtn10obJJSyFK2Ka0HgbmI+S2wGVin/C8EbgA8Ks/v6+8I1EMZD3TuVohvLqQtNW1g KuBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=byxrOwQK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm28-20020a0564020c9c00b0044ed4c0249csi999466edb.159.2022.09.09.13.26.18; Fri, 09 Sep 2022 13:26:43 -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 header.i=@baikalelectronics.ru header.s=mail header.b=byxrOwQK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbiIITgj (ORCPT + 99 others); Fri, 9 Sep 2022 15:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbiIITgc (ORCPT ); Fri, 9 Sep 2022 15:36:32 -0400 Received: from mail.baikalelectronics.com (mail.baikalelectronics.com [87.245.175.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B23CC2AE33; Fri, 9 Sep 2022 12:36:30 -0700 (PDT) Received: from mail (mail.baikal.int [192.168.51.25]) by mail.baikalelectronics.com (Postfix) with ESMTP id 456C9DBA; Fri, 9 Sep 2022 22:40:18 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.com 456C9DBA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1662752418; bh=Y7WwfSNSVFN6DsOTitXYalfVMtQs4BD5nZyMmYc6YaA=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=byxrOwQKUSaVkjsY4+AShszBhf69GjL1+2IvIB5D3rPggLK/WnHarHbIsqRDb/qJL v65ZQgcyp8TqHRghsBnurbKX4Gkz5K1GLJ1/vw6t+7isZHVguQHRSp4IyyBQuryDax Ux6u2YsIn4Qth1RKZoM0uLNVvwF+i0CBjbn2+vZU= Received: from localhost (192.168.168.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 9 Sep 2022 22:36:29 +0300 From: Serge Semin To: Damien Le Moal , Hans de Goede , Jens Axboe , Hannes Reinecke , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Linus Walleij CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , , Rob Herring Subject: [PATCH v8 01/23] dt-bindings: ata: ahci-platform: Move dma-coherent to sata-common.yaml Date: Fri, 9 Sep 2022 22:35:59 +0300 Message-ID: <20220909193621.17380-2-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220909193621.17380-1-Sergey.Semin@baikalelectronics.ru> References: <20220909193621.17380-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) 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 Seeing doubtfully any SATA device working without embedded DMA engine let's permit the device nodes being equipped with the dma-coherent property in case if the platform is capable of cache-coherent DMAs. As a side-effect we can drop the explicit dma-coherent property definition from the particular device schemas. Currently it concerns the Broadcom SATA AHCI controller only. Signed-off-by: Serge Semin Reviewed-by: Florian Fainelli Reviewed-by: Rob Herring --- Changelog v2: - This is a new patch created after rebasing v1 onto the 5.18-rc3 kernel. Changelog v4: - Move the dma-coherent property to the sata-common.yaml schema instead of removing it. - Remove the Hannes' rb tag. --- Documentation/devicetree/bindings/ata/ahci-platform.yaml | 2 -- Documentation/devicetree/bindings/ata/brcm,sata-brcm.yaml | 2 -- Documentation/devicetree/bindings/ata/sata-common.yaml | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.yaml b/Documentation/devicetree/bindings/ata/ahci-platform.yaml index c146ab8e14e5..9304e4731965 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.yaml +++ b/Documentation/devicetree/bindings/ata/ahci-platform.yaml @@ -87,8 +87,6 @@ properties: description: regulator for AHCI controller - dma-coherent: true - phy-supply: description: regulator for PHY power diff --git a/Documentation/devicetree/bindings/ata/brcm,sata-brcm.yaml b/Documentation/devicetree/bindings/ata/brcm,sata-brcm.yaml index 235a93ac86b0..4ee74df8e58a 100644 --- a/Documentation/devicetree/bindings/ata/brcm,sata-brcm.yaml +++ b/Documentation/devicetree/bindings/ata/brcm,sata-brcm.yaml @@ -41,8 +41,6 @@ properties: interrupts: maxItems: 1 - dma-coherent: true - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/ata/sata-common.yaml b/Documentation/devicetree/bindings/ata/sata-common.yaml index 7ac77b1c5850..cb88d3e25e73 100644 --- a/Documentation/devicetree/bindings/ata/sata-common.yaml +++ b/Documentation/devicetree/bindings/ata/sata-common.yaml @@ -31,6 +31,8 @@ properties: "#size-cells": const: 0 + dma-coherent: true + patternProperties: "^sata-port@[0-9a-e]$": description: | -- 2.37.2