Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2690266pxm; Mon, 28 Feb 2022 04:25:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfwdHLNV0xVHmrOQu50RFmwLsxS4cCwaSA8gsOonp4Ck8KYEirqwjkGtuZD9Yr9+ZuFX8v X-Received: by 2002:a17:90a:4b0d:b0:1bc:f9da:f334 with SMTP id g13-20020a17090a4b0d00b001bcf9daf334mr15316877pjh.75.1646051106183; Mon, 28 Feb 2022 04:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646051106; cv=none; d=google.com; s=arc-20160816; b=Vo195O3kiZMZ12OYElO9/dxeTQxtzA7szovaZTPKqjxBkWZUF8ISxsvAKEU6QENj7m JZ0EPqyUG+e8RBXUt27gLciTKpUk2rptMw9RDFTgG6MFkSYG/Ibf/rKHdS0ODXKGvdqg vX9Syj1dAyx8lbQdzcF48lVbOZ9V59VUHf2vPGYdyIaJVq0vSRQ28TXZXiuX3LEV4tU+ ncrTFMIjeDSoHLHtcuTAhRmJ+TX5sZvfjnDxWqvwnxKzCr2WAOmfRk/N6lvAGxzxU7Y8 q20gPTttQBBKAV+NFUdsCveSMkqVcvtfLYBGpj/BS+22mp4sE6n9DR9vZazSkRyyWiZS WBCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0R1g/497q0dQleECorPMMse003Wri8L14vlThYCB5qU=; b=vdp/Tqf5ZP4jDzrR7gnKB27z+Gf46WGNMXVav5Jo0UgWNeAae/bwGI6RD43OPWIOnV sMEoJ1C68shdhSLSidha52LVJNlhceyMSH14fYn/7kF0IFXi4copO68jf4YMOV8nQK0t FvWk8M++NfKUFbXv6y2AgZi5xgwGBC1INzSX+/ag5nZ2NV76h6z49K3NNDvrISXRJBs4 bDAGvnY/JzgVPN8s/Z5RW/RtbDh+oxb0isYVSicFT4ErUhR+1CcDonWkOQGWw67ru551 MvUGhPSgE1oUC7S63jtwwBuFmYgb+Xx2ZbiTthKBAiaOTmQC7TNpFRNWZK5TaQVJV3x4 kzCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fwIGkks5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a17090a2dca00b001bc5494d8b1si9660474pjm.99.2022.02.28.04.24.51; Mon, 28 Feb 2022 04:25:06 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=fwIGkks5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235907AbiB1Lju (ORCPT + 99 others); Mon, 28 Feb 2022 06:39:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235901AbiB1Ljq (ORCPT ); Mon, 28 Feb 2022 06:39:46 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 353394FC71; Mon, 28 Feb 2022 03:39:07 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id h15so17145415edv.7; Mon, 28 Feb 2022 03:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0R1g/497q0dQleECorPMMse003Wri8L14vlThYCB5qU=; b=fwIGkks5zR/CacLDWsAb6PLTwups60q6KGsyXa5lsUR2GGiprP5uD9R3hdGaLzOzqI eDOTqnlOaMvFQyr5V+jq9ophH+EuxdLDVZDYqWzonNT21QTbBNLXnX2tbfxf+6QsLYwS fl6z/DJg7o7ltAaXzjhI01/ls99OaaGuuEKD8/z6p+gZVrRz6Z+yc9Gh61SmqEtuAV9+ 4bFH+vKk1aGSUQam3SCIY2FaS7kNocom3aZ5v9TfF51nNXTiPnGCWGFXQcFI341koJbB tAIB74jbX0shWE2k31VBvpF/TDtVHSPrpTUxe9/9sfYCyzSVtf9aj/erLlan6tZTbT/8 XsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0R1g/497q0dQleECorPMMse003Wri8L14vlThYCB5qU=; b=o2LRdhqEDLz3703QULMg9ZpEuFn7i3IqA5edL8Gb6BokVSHtMN5jNXG0ZFbsltOfvp nb8zC0bly7Wd6D52zerg95hEU9Xp0U5w1deWcHIplKKdnCrLCJvL8GmaKSom4MoJIyhe x4h3hFlNGNMEiabWrh9OV0kRTq08OJZGras0NacHPTt+AR49dOSQ1A6TuoBFvPIQRTrt +/JSEmE0r0zP0GvKd2WGRjQYUJA3si4pTuiD61KP66SEJxecp72oLgF+0646fEl2ewll Q5aBCH28BbJnZ+S7K/DUxKf9cS7y2buatZ3PPCZU5Sn24KvnLzHEzAO22gI1iDJ26199 zCxQ== X-Gm-Message-State: AOAM531zR+/RwU7BSybGNGvWCmnwXmWTmOzG/kwKAsy8hBG4asMVQqud 5HDXLdvG1CYC5XPLJfiAW2JTMJfH7yYm91ro03U= X-Received: by 2002:a05:6402:17d4:b0:413:2f6b:23c1 with SMTP id s20-20020a05640217d400b004132f6b23c1mr18725886edy.377.1646048345646; Mon, 28 Feb 2022 03:39:05 -0800 (PST) MIME-Version: 1.0 References: <20211126083119.16570-1-kishon@ti.com> <20211126083119.16570-6-kishon@ti.com> In-Reply-To: <20211126083119.16570-6-kishon@ti.com> From: Christian Gmeiner Date: Mon, 28 Feb 2022 12:38:54 +0100 Message-ID: Subject: Re: [PATCH v2 5/5] PCI: keystone: Set DMA mask and coherent DMA mask To: Kishon Vijay Abraham I Cc: Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , linux-pci@vger.kernel.org, LKML , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Hi all. Am So., 28. Nov. 2021 um 18:12 Uhr schrieb Kishon Vijay Abraham I : > > Set DMA mask and coherent DMA mask such to indicate the device > can address the entire address space (32-bit in the case of > K2G and 48-bit in the case of AM654). > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/pci/controller/dwc/pci-keystone.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c > index 73e6626a0d8f..80dbab267f7b 100644 > --- a/drivers/pci/controller/dwc/pci-keystone.c > +++ b/drivers/pci/controller/dwc/pci-keystone.c > @@ -1224,6 +1224,11 @@ static int __init ks_pcie_probe(struct platform_device *pdev) > return ret; > } > > + if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48))) { > + dev_err(dev, "Cannot set DMA mask\n"); > + return -EINVAL; > + } > + > ret = of_property_read_u32(np, "num-lanes", &num_lanes); > if (ret) > num_lanes = 1; > -- > 2.17.1 > Can this single patch (from the whole series) be merged? -- greets -- Christian Gmeiner, MSc https://christian-gmeiner.info/privacypolicy