From patchwork Wed Jul 22 18:16:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6845831 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 5C49CC05AC for ; Wed, 22 Jul 2015 18:18:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91C4F204A7 for ; Wed, 22 Jul 2015 18:18:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2A6320499 for ; Wed, 22 Jul 2015 18:18:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbbGVSSB (ORCPT ); Wed, 22 Jul 2015 14:18:01 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33566 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752743AbbGVSR5 (ORCPT ); Wed, 22 Jul 2015 14:17:57 -0400 Received: by wicmv11 with SMTP id mv11so92407958wic.0 for ; Wed, 22 Jul 2015 11:17:56 -0700 (PDT) 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; bh=m784CR6MXb8jQyD6ArqtnBwg/rRtoc1q/rRQejcc5I0=; b=HLKSN06Mbllqq3Y4CEJTWIForQgs1+A20LMQDB78Lb+HW3D6yJfI9g5sI7W2vCf0+q 8TarynNIvxf/fhGQIcYyFs0tqz3S0P3SdXkCpxjUHdQMJFzD9nkWSSJYcUfQN42JeaJd udOfE2pDQ3IfQblPBz9CSF/FehbY+yL0jxK2K5mifIP9qzkRbZ5Ig+Pwnbopq8424me0 HPQv8vcd4JSgjPen47xZMkZzgFALjHHdNSRc3OLO4cRcB9c53adVbNo7k9xRZvgXFxa8 6r2MYID2C1uKDgDsr4PLx+L8p+gZuedxdaNnzmHXy1zOmrXneFNquxOlMZj810eGlltv haIQ== X-Received: by 10.180.79.10 with SMTP id f10mr44046578wix.1.1437589076783; Wed, 22 Jul 2015 11:17:56 -0700 (PDT) Received: from tipsey.3.home (188.30.183.207.threembb.co.uk. [188.30.183.207]) by smtp.gmail.com with ESMTPSA id ha4sm23219334wib.0.2015.07.22.11.17.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jul 2015 11:17:56 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 13/15] staging: vt6655: always set 32 bit dma mask Date: Wed, 22 Jul 2015 19:16:45 +0100 Message-Id: <1437589007-5479-13-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437589007-5479-1-git-send-email-tvboxspy@gmail.com> References: <1437589007-5479-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 The device is limited to 32 bit address space. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index c82bf48..c97353b 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1747,6 +1747,12 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) return -ENODEV; } + if (dma_set_mask(&pcid->dev, DMA_BIT_MASK(32))) { + dev_err(&pcid->dev, ": Failed to set dma 32 bit mask\n"); + device_free_info(priv); + return -ENODEV; + } + INIT_WORK(&priv->interrupt_work, vnt_interrupt_work); /* do reset */