Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp406695imn; Thu, 28 Jul 2022 04:33:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sokTf/VZyDrWRkS80MfZnoZTzclfTCa1NvDIjzCxyaIDay0PubHGjEDnEePCzR5Mi3cNRv X-Received: by 2002:a17:902:8505:b0:16c:cf05:dc59 with SMTP id bj5-20020a170902850500b0016ccf05dc59mr26208533plb.125.1659007999480; Thu, 28 Jul 2022 04:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659007999; cv=none; d=google.com; s=arc-20160816; b=pR4g3JkAmh7e7UXHHbumpIBPKO+4joEWoN9R61MHPGZkzePjmaaX25QJurqr6QpB8O 3Gf7TxWftFMPlUq55YnLn5x4oW+GTIvsjyqJ7WJ0SI3HcVNlQCOf7+lj/Lyfokf4rzVx r6WX/syFSASLU6C/Q2PHOCvCMG/viMkpu5myHHtVofFcpp0D/Tj0iKqkwP3ZpXouEnJO Ts7WhA9QozBvl6MPVK5gMF5Fs4pTQEQZ/Pkn/yz36gdlg2iHOIyf51nRDBHSF0ZYOGmh Aww5WpqWs77zxH9T+wl2sNKAhX6uIDZz1P25pGV23gW2kpEHXQq5GooZXvNWzzSUUJ9H m35Q== 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=lftDM8bVxbb6i7gbnpPybwAsln7Ng23i+K1fZlPSI1c=; b=oN2EXlAt2aWwj7jmnhTh8YxblvvyLLrlPKqymjonoFnsTX1vsIRzgBM3ZpIlKdRubf nnRRXUlVJPsd0FvdEt07vpJdglS5yyQ9eXfHKt9kUbrETrzYik0RaBBQE92f6K/mPEQC zT8VLSaefKY3ul6IkQgBIzxr69AeH/fhOymjwCAIZEfa1mJ5Dl9Eu+uOgueb6M4qUbHu gyaxwdGldEA7o3twy/p68SQ/OuNjgaYxM25+dzATAA4mx6OVPGHN3rJCR1vsezh+WUc5 angaMNnpuSJNjqR2yBi6bbR5CenZiE4UatUvpyQ8UJxub4Xt7sgpYiUX4kSb9XuflQge Ri7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=fn1EtL0O; 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 m25-20020a635819000000b0040cf7280474si904582pgb.75.2022.07.28.04.33.04; Thu, 28 Jul 2022 04:33:19 -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=fn1EtL0O; 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 S235305AbiG1LTS (ORCPT + 99 others); Thu, 28 Jul 2022 07:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234498AbiG1LTQ (ORCPT ); Thu, 28 Jul 2022 07:19:16 -0400 Received: from mail.baikalelectronics.com (unknown [87.245.175.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCD1466BA2; Thu, 28 Jul 2022 04:19:13 -0700 (PDT) Received: from mail (mail.baikal.int [192.168.51.25]) by mail.baikalelectronics.com (Postfix) with ESMTP id EEF7716CF; Thu, 28 Jul 2022 14:21:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.com EEF7716CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1659007296; bh=lftDM8bVxbb6i7gbnpPybwAsln7Ng23i+K1fZlPSI1c=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=fn1EtL0OtZEtECdBqKaVboNrYkpOGG797U6l789I/pzRL1NYFh8N/OgLuMl1kQG+x 2T2Qh1Xqcy5QE/0S0U7/dbor0w2DnKBDPh2OlfIgxv60AZDnCDZBwfkCs/zGJ4aMUE virR/uyoWGooRumBGtpl0lRCklYzusAZ/h6c/CPE= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 28 Jul 2022 14:19:11 +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 RESEND v6 01/23] dt-bindings: ata: ahci-platform: Move dma-coherent to sata-common.yaml Date: Thu, 28 Jul 2022 14:18:42 +0300 Message-ID: <20220728111905.12427-2-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220728111905.12427-1-Sergey.Semin@baikalelectronics.ru> References: <20220728111905.12427-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,T_SPF_PERMERROR 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.35.1