Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4667093pxk; Wed, 30 Sep 2020 08:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6AgGb1ULPtReXS70ZRBbLiy1cqc4ydtxa6EK5H2++QBNsJEtE+ruAh/2HzxFwIuVglPL9 X-Received: by 2002:a50:8524:: with SMTP id 33mr3546224edr.123.1601480424014; Wed, 30 Sep 2020 08:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601480424; cv=none; d=google.com; s=arc-20160816; b=HAR/KET2SBMwI+fXqBioutzLPqJnbgDCEhcKKnzdww9JT2uGeq/5UvhxA90JSIz5p9 CWf6LGWXV636bIOXWHofG+yI32R4DsUrx4mKA8aV1H5ochR7Tj7pGYjNz4Mr8NoED2Io 8lUUP8ETpYvSxu4wPiQxclBZKK52N7C2DfGVlHYN+niB/tOqZetYzAtkWsVxGhWV6iP2 l8fkgnFYuHqXznBJibiwbgFUARlJObFQM9w+gwxNEqiLSdXVkRe2cfBPUV/t2MMPI1wM t7v/Lb+7F2NLNQNmqrzYo8FCpklxVuAnEJxb0V04DY+DpTWqgDjnhlQh53wYT9RA8VqM /Xrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PSR7JL4HaqO9swLj/T2R0uAkZr/feSQH9xlHyklOXq0=; b=MYsrBGzG9q+Dcw2F6MmzqlqA+TkctwwCIznfr0Yz+a7UmjIShtXE5UoU+K0FFBrNRo +v/n8riUQ0/FVsf2SObfUpm1XkWGGKSnkkz2squCBUjhlb0YS5e6d/9Ntxp/MSrwf7Wh 9M5JwETi8WTcLRi97ECiDjHhub98KtB9JPuKGmV04Uq0vw6mGOs8yhYI3V8VSqcZtbgi gngqjpI9qs7oercUsHxFsUJ7ISeY4AbHDy5kwNPXF1OLeCgBw7OB8gGkqx84zZfiy1vs r75PvGcFsrJYid3yC8X+wWRjQ1wes9i/+PpfE2nObcM2Oxyw4EvyxLxRtHTnd1a0zsgN SnyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v6H4Mqgp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si1468312ejl.253.2020.09.30.08.40.00; Wed, 30 Sep 2020 08:40:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v6H4Mqgp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbgI3PiZ (ORCPT + 99 others); Wed, 30 Sep 2020 11:38:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:57578 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727681AbgI3PiZ (ORCPT ); Wed, 30 Sep 2020 11:38:25 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08UFcBCJ044316; Wed, 30 Sep 2020 10:38:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601480291; bh=PSR7JL4HaqO9swLj/T2R0uAkZr/feSQH9xlHyklOXq0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=v6H4Mqgp1rcMScwogwDvuziNOsCKmWylPBQntd0350gRLEfI06U3GLIcuG6FBV0bt h/QIxsOfb0geKs/5UdbvSqSUh8vTV7FAIkIXhZk0ZaJOcy8VQ4bp7rAJfbbcDE6mgV V4Sv2PNk5yiuWO4u/RnbhL1PmoKokaGgdDc433gk= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08UFcBcj028621 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 10:38:11 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 30 Sep 2020 10:38:10 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 30 Sep 2020 10:38:10 -0500 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08UFZLZf033254; Wed, 30 Sep 2020 10:38:06 -0500 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jonathan Corbet , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Jon Mason , Dave Jiang , Allen Hubbe , Tom Joseph , Rob Herring CC: Greg Kroah-Hartman , , , , Subject: [PATCH v7 16/18] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge Date: Wed, 30 Sep 2020 21:05:17 +0530 Message-ID: <20200930153519.7282-17-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200930153519.7282-1-kishon@ti.com> References: <20200930153519.7282-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index b7bf3f863d79..8230ced503e3 100644 --- a/drivers/ntb/test/ntb_tool.c +++ b/drivers/ntb/test/ntb_tool.c @@ -1638,6 +1638,7 @@ static int tool_probe(struct ntb_client *self, struct ntb_dev *ntb) tool_setup_dbgfs(tc); + ntb_link_enable(ntb, NTB_SPEED_AUTO, NTB_WIDTH_AUTO); return 0; err_clear_mws: -- 2.17.1