From patchwork Mon Jan 26 17:06:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 5711431 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51508C058D for ; Mon, 26 Jan 2015 17:06:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E6872013A for ; Mon, 26 Jan 2015 17:06:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6524200E8 for ; Mon, 26 Jan 2015 17:06:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756237AbbAZRGM (ORCPT ); Mon, 26 Jan 2015 12:06:12 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:48758 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756200AbbAZRGL (ORCPT ); Mon, 26 Jan 2015 12:06:11 -0500 Received: by mail-we0-f173.google.com with SMTP id w62so10270468wes.4 for ; Mon, 26 Jan 2015 09:06:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=oq4XlkHzXPPSAcySvsDsg5HvH8f3ivfBnOJg/WwCP5s=; b=QTOQ1dUb5XCKOTzKCYxvHGtzObtxhViB/s0Luzy7qW+hvBO6+JEXCUf3qqAf+wv3v2 vckHxj/l7mtE21OslXlDkfIYMpe6zmWLjngfjxns94SfX35LaNpzeNgVOLPDlNXssDxB oyWygCCWYfj6Z7b8rTsLddOSU5YEHjugYVG3Tn5X6Cpti0Wck7Oes/DhTC3lBnKISbSZ v7DrDWpUmjNDnnwwqXN4xjlmoLQXB2xlU5cYIHsqqObFttG4/PmfuIZuHBQPyICOejYG 2HPbrl4kRQYUSxuQeEhw9t83ILKXsEV0Zguw2uEBmXRtEgBDPrwR1qlNs7lgtULRc7k5 8wCA== X-Received: by 10.194.203.104 with SMTP id kp8mr46428869wjc.103.1422291970329; Mon, 26 Jan 2015 09:06:10 -0800 (PST) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id dz10sm14707212wib.17.2015.01.26.09.06.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 09:06:09 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: Matt Porter , Alexandre Bounine , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 2/5] rapidio/tsi721: use PCI define for max read request size Date: Mon, 26 Jan 2015 18:06:02 +0100 Message-Id: <1422291962-12374-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1422291922-12324-1-git-send-email-zajec5@gmail.com> References: <1422291922-12324-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Rafa? Mi?ecki Acked-by: Alexandre Bounine --- drivers/rapidio/devices/tsi721.c | 2 +- drivers/rapidio/devices/tsi721.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c index 8bcfecd..eeca70d 100644 --- a/drivers/rapidio/devices/tsi721.c +++ b/drivers/rapidio/devices/tsi721.c @@ -2430,7 +2430,7 @@ static int tsi721_probe(struct pci_dev *pdev, pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_READRQ | PCI_EXP_DEVCTL_RELAX_EN | PCI_EXP_DEVCTL_NOSNOOP_EN, - 0x2 << MAX_READ_REQUEST_SZ_SHIFT); + PCI_EXP_DEVCTL_READRQ_512B); /* Adjust PCIe completion timeout. */ pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2); diff --git a/drivers/rapidio/devices/tsi721.h b/drivers/rapidio/devices/tsi721.h index a7b4268..9d25025 100644 --- a/drivers/rapidio/devices/tsi721.h +++ b/drivers/rapidio/devices/tsi721.h @@ -72,8 +72,6 @@ #define TSI721_MSIXPBA_OFFSET 0x2a000 #define TSI721_PCIECFG_EPCTL 0x400 -#define MAX_READ_REQUEST_SZ_SHIFT 12 - /* * Event Management Registers */