From patchwork Mon Dec 24 06:03:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wei_wang@realsil.com.cn X-Patchwork-Id: 1908061 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A5CE7E00D8 for ; Mon, 24 Dec 2012 06:04:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840Ab2LXGEP (ORCPT ); Mon, 24 Dec 2012 01:04:15 -0500 Received: from rtits2.realtek.com ([60.250.210.242]:50328 "EHLO rtits2.realtek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801Ab2LXGEG (ORCPT ); Mon, 24 Dec 2012 01:04:06 -0500 X-SpamFilter-By: BOX Solutions SpamTrap 5.19 with qID qBO63UB9029345, This message is released by code: ctaloc0852 Received: from RSEX1.realsil.com.cn (RSFS1.realsil.com.cn [172.29.17.2] (may be forged)) by rtits2.realtek.com (8.14.5/2.19/5.24) with ESMTP id qBO63UB9029345; Mon, 24 Dec 2012 14:03:30 +0800 Received: from localhost (172.29.41.8) by RSEX1.realsil.com.cn (172.29.17.2) with Microsoft SMTP Server id 8.3.213.0; Mon, 24 Dec 2012 14:03:31 +0800 From: To: , CC: , , , , , , , Wei WANG Subject: [PATCH 3/7] MFD:rtsx: Declare that the DMA address limitation is 32bit explicitly Date: Mon, 24 Dec 2012 14:03:30 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Wei WANG Signed-off-by: Wei WANG --- drivers/mfd/rtsx_pcr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index fa2c2bc..2ee6be5 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -1084,6 +1084,10 @@ static int __devinit rtsx_pci_probe(struct pci_dev *pcidev, pci_set_master(pcidev); synchronize_irq(pcr->irq); + ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); + if (ret < 0) + goto disable_irq; + ret = rtsx_pci_init_chip(pcr); if (ret < 0) goto disable_irq;