From patchwork Thu Apr 26 06:41:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Xiong" X-Patchwork-Id: 155169 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 939AAB6FAF for ; Thu, 26 Apr 2012 16:55:26 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754708Ab2DZGmQ (ORCPT ); Thu, 26 Apr 2012 02:42:16 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:52442 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754634Ab2DZGmN (ORCPT ); Thu, 26 Apr 2012 02:42:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=xiong@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1335422533; x=1366958533; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=jSlSyulhE7/IvrhLBmbYC0BDCaA1YQw7BN4DngU3djI=; b=yT8AYA0JUYI3P0+M6el9JZgC3JF9jzfAJgMORfdZ0/snJ9KpwU8iyw/C a6oXxSy4qpDJxbE4Uqst4b3HWnZk4uhxj2PKVGwlx3Tlk+2k2zkk4Xvkf zABmoRDo968MJ8ltRP97CA87jTS/AqAmFy5ar/5Q5w8HMaY0yqgbUPzf4 k=; X-IronPort-AV: E=McAfee;i="5400,1158,6692"; a="182791996" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine02.qualcomm.com with ESMTP; 25 Apr 2012 23:42:13 -0700 X-IronPort-AV: E=Sophos;i="4.75,484,1330934400"; d="scan'208";a="241388905" Received: from nasanexhc08.na.qualcomm.com ([172.30.39.7]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/AES128-SHA; 25 Apr 2012 23:42:13 -0700 Received: from qcmail1.qualcomm.com (172.30.39.5) by qcmail1.qualcomm.com (172.30.39.7) with Microsoft SMTP Server (TLS) id 14.2.283.3; Wed, 25 Apr 2012 23:42:12 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 26 Apr 2012 14:42:07 +0800 From: xiong To: , , CC: , , xiong Subject: [PATCH 10/10] atl1c: add flag of PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG Date: Thu, 26 Apr 2012 14:41:01 +0800 Message-ID: <1335422461-16588-3-git-send-email-xiong@qca.qualcomm.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1335422461-16588-1-git-send-email-xiong@qca.qualcomm.com> References: <1335422461-16588-1-git-send-email-xiong@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [172.30.39.5] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org supported devices all have one issue that msi interrupt doesn't assert if pci command register bit (PCI_COMMAND_INTX_DISABLE) is set. that bit should be effect only for INTx style interrupt. Signed-off-by: xiong Tested-by: Liu David --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 25b7b00..07b6018 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -2434,6 +2434,7 @@ static int __devinit atl1c_probe(struct pci_dev *pdev, dev_err(&pdev->dev, "cannot map device registers\n"); goto err_ioremap; } + pdev->dev_flags |= PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG; /* init mii data */ adapter->mii.dev = netdev;