Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2974129imu; Sun, 9 Dec 2018 14:03:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgMBSK1MOpGwV03m+jZpmQn1Mkt7BimSdOejDmlcBYb2eDdDddk9b7edH1ae+tAYAFk+Pu X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr9722302plq.117.1544393017360; Sun, 09 Dec 2018 14:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544393017; cv=none; d=google.com; s=arc-20160816; b=gifvVChraksqwRngBSV4h++3ZyImptY32Jsvhu25oJbxGAHSGfiRw6x7YBgOpwXavY ByQDSQmfu0djQ9X9CyTU9TCkkyQJOzMXSahs6QE9NHJWP+mRZMyJPctoymaogGkn+XyT Zb3Ixr4pEO+yC3TVKxCJwHdbu3PFDXLzEN+J+GpREkaiyFMAPeoQO4cou0Vv2Taopuri yS+h/fAtGDXs4hJ3o/q8ajLep0i/PDP6uyt6nLAtrH1pO0D8TkGiXEUNr3YSYWypaOZN qWqxqB2TWW56V9euu7daMSml5wRqX+khekTGLHeRClddXMiv3G3ukqsGtHpctsYB1rTw k89w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=v9rPZTBYfCzU54bPxc8Vkjn4yvbqJRgPB8ANa93fxv0=; b=Aa620SVba4L0k7oyYMyryrrnjwIPVOSVhKYLAtjJH0x9pSovR3UvE+8Bua0KmzGTWW y53S2WX2uSPyRGjc6/FJ1HaiIuIC7U/gS2ULhmTlqUOhY05QIGSedn+rkDcAeNKPKKt8 3CAMGQHhjpsRV/DF6F52MgHwlNaibHieVJpQ5x93xsdz/VPqB8sEcfDOzxBNT4rX26jw r7dePghdSH5lBGnnfH8W5kE76f8FYQ6IZyUqWpJm6OctEM5MAS5r6/xSZWWrRf9oMd43 JYZJTWb/ehYN3m2e8NDv0xl+gDOWtChvjaGLoBLX+jo+w88M/hf2HM6gq4l+GiPAwv3A bayw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si8239440plo.59.2018.12.09.14.03.22; Sun, 09 Dec 2018 14:03:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726671AbeLIVzc (ORCPT + 99 others); Sun, 9 Dec 2018 16:55:32 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34822 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbeLIVzO (ORCPT ); Sun, 9 Dec 2018 16:55:14 -0500 Received: from pub.yeoldevic.com ([81.174.156.145] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gW72e-0002pr-5K; Sun, 09 Dec 2018 21:55:12 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gW72d-0003Om-MZ; Sun, 09 Dec 2018 21:55:11 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Guenter Roeck" , "Lee Jones" Date: Sun, 09 Dec 2018 21:50:33 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 142/328] mfd: sm501: Set coherent_dma_mask when creating subdevices In-Reply-To: X-SA-Exim-Connect-IP: 81.174.156.145 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.62-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Guenter Roeck commit 2f606da78230f09cf1a71fde6ee91d0c710fa2b2 upstream. Instantiating the sm501 OHCI subdevice results in a kernel warning. sm501-usb sm501-usb: SM501 OHCI sm501-usb sm501-usb: new USB bus registered, assigned bus number 1 WARNING: CPU: 0 PID: 1 at ./include/linux/dma-mapping.h:516 ohci_init+0x194/0x2d8 Modules linked in: CPU: 0 PID: 1 Comm: swapper Tainted: G W 4.18.0-rc7-00178-g0b5b1f9a78b5 #1 PC is at ohci_init+0x194/0x2d8 PR is at ohci_init+0x168/0x2d8 PC : 8c27844c SP : 8f81dd94 SR : 40008001 TEA : 29613060 R0 : 00000000 R1 : 00000000 R2 : 00000000 R3 : 00000202 R4 : 8fa98b88 R5 : 8c277e68 R6 : 00000000 R7 : 00000000 R8 : 8f965814 R9 : 8c388100 R10 : 8fa98800 R11 : 8fa98928 R12 : 8c48302c R13 : 8fa98920 R14 : 8c48302c MACH: 00000096 MACL: 0000017c GBR : 00000000 PR : 8c278420 Call trace: [<(ptrval)>] usb_add_hcd+0x1e8/0x6ec [<(ptrval)>] _dev_info+0x0/0x54 [<(ptrval)>] arch_local_save_flags+0x0/0x8 [<(ptrval)>] arch_local_irq_restore+0x0/0x24 [<(ptrval)>] ohci_hcd_sm501_drv_probe+0x114/0x2d8 ... Initialize coherent_dma_mask when creating SM501 subdevices to fix the problem. Fixes: b6d6454fdb66f ("mfd: SM501 core driver") Signed-off-by: Guenter Roeck Signed-off-by: Lee Jones Signed-off-by: Ben Hutchings --- drivers/mfd/sm501.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -714,6 +714,7 @@ sm501_create_subdev(struct sm501_devdata smdev->pdev.name = name; smdev->pdev.id = sm->pdev_id; smdev->pdev.dev.parent = sm->dev; + smdev->pdev.dev.coherent_dma_mask = 0xffffffff; if (res_count) { smdev->pdev.resource = (struct resource *)(smdev+1);