Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3837925pxv; Mon, 19 Jul 2021 09:57:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhr8aqAHN9sewTM2GceTLuuPjPxfhLrErYWStMCL0bESVBLhOvWiySqZVnyd4MQZGrN0nu X-Received: by 2002:aa7:da49:: with SMTP id w9mr35615070eds.47.1626713835270; Mon, 19 Jul 2021 09:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626713835; cv=none; d=google.com; s=arc-20160816; b=LbT/ihXF0pb9M5osZji7RR+h1a/XNXMwDeOgNDFO/zx7fwnk4t2PPWz0ZdvF9i1+/Y xrv4XOdhBfqozoIb/fx49uTsA9nPNK+LId1rpP+A6XoLRU27R1xwo/HfXYf5h/uC73GJ m4UF9l2V5PIp53Wf9rwT2ft5O+yWYjcz0mk3CY8Ys/5MTO8LUTBIBCNGogtd7QtZcUez MKIQLu2q+x7kTGVVX7UxTiwDIP00Oy51/HnAy60CDviRRdiS+VRcjkAKvnzJuEqQKXRO fRDbqQXNwxSfM6wKSr/0GUOwlff4bQB2BcNvTxFpnPA5Ib/yN/NBe7vIeies5nAkSZgo zc3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EHIrnsFg0TRTvSJTyJV5/dBfLAsW04cngV4TQiVybUQ=; b=WJfgK5cbV1ZiydqRict42hcv9rVrqUWTlnL10m/+jLysxdLgNAJVe6w8rzxwUntfw7 DN14S3EaBoNymAs0LHOpg+Lw1Sn2FG8wqwUIny9fxQlmsj6+fC6cVylabLhJZy6yExXU FjrrW3US9AYzRE8uJUCS2LU6RyavBQTGxQ6aYFwygs6oyifDn3eT9LpVThAQ/tSsaiur v0W6gJCYrwZ2p8GUBP/Zr+yy0maKqI4I5iOyv5KbDr6p0Q60b3yQdjOZB4LxqxFqaDVl 1rJlnsxZCbyM0FTFe+6c15qJc9Q+mkAKnQqmEpeLvANeV4KUiM4MEh0Jy4j8FKlAlbk2 3w5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rvUoonFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si12236466edb.601.2021.07.19.09.56.52; Mon, 19 Jul 2021 09:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rvUoonFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348630AbhGSQGd (ORCPT + 99 others); Mon, 19 Jul 2021 12:06:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:39250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344603AbhGSPGe (ORCPT ); Mon, 19 Jul 2021 11:06:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 629026127C; Mon, 19 Jul 2021 15:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626709626; bh=0WSpC4dOuuA7TizWJx5jNXiXsDXdY7vk7rwBBTqBOu0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rvUoonFFBhkIzmMVKmBFxKfCZBTImsPR4LW5EpflDT76lMoWobOSjBimB5Jy/Tmrn H0U7J3qDNjmqWcneSTioc+o3LpgcOPIENJY++vvKZWzlvHTOXJ4OL/5p4kzAAOBo6c eGAoz2bDn1cjv+MIyOTyPU76EwYB9gkSyadGw4Hs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Carl Philipp Klemm , Ivan Jelincic , Merlijn Wajer , Pavel Machek , Sebastian Reichel , "Sicelo A. Mhlongo" , Tony Lindgren , Lee Jones , Sasha Levin Subject: [PATCH 5.4 035/149] mfd: cpcap: Fix cpcap dmamask not set warnings Date: Mon, 19 Jul 2021 16:52:23 +0200 Message-Id: <20210719144909.703373426@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144901.370365147@linuxfoundation.org> References: <20210719144901.370365147@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit 0b7cbe811ca524295ea43d9a4d73d3427e419c54 ] We have started to get a bunch of pointless dmamask not set warnings that makes the output of dmesg -l err,warn hard to read with many extra warnings: cpcap-regulator cpcap-regulator.0: DMA mask not set cpcap_adc cpcap_adc.0: DMA mask not set cpcap_battery cpcap_battery.0: DMA mask not set cpcap-charger cpcap-charger.0: DMA mask not set cpcap-pwrbutton cpcap-pwrbutton.0: DMA mask not set cpcap-led cpcap-led.0: DMA mask not set cpcap-led cpcap-led.1: DMA mask not set cpcap-led cpcap-led.2: DMA mask not set cpcap-led cpcap-led.3: DMA mask not set cpcap-led cpcap-led.4: DMA mask not set cpcap-rtc cpcap-rtc.0: DMA mask not set cpcap-usb-phy cpcap-usb-phy.0: DMA mask not set This seems to have started with commit 4d8bde883bfb ("OF: Don't set default coherent DMA mask"). We have the parent SPI controller use DMA, while CPCAP driver and it's children do not. For audio, the DMA is handled over I2S bus with the McBSP driver. Cc: Carl Philipp Klemm Cc: Ivan Jelincic Cc: Merlijn Wajer Cc: Pavel Machek Cc: Sebastian Reichel Cc: Sicelo A. Mhlongo Signed-off-by: Tony Lindgren Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/motorola-cpcap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/motorola-cpcap.c b/drivers/mfd/motorola-cpcap.c index 52f38e57cdc1..1ae58c977e1b 100644 --- a/drivers/mfd/motorola-cpcap.c +++ b/drivers/mfd/motorola-cpcap.c @@ -305,6 +305,10 @@ static int cpcap_probe(struct spi_device *spi) if (ret) return ret; + /* Parent SPI controller uses DMA, CPCAP and child devices do not */ + spi->dev.coherent_dma_mask = 0; + spi->dev.dma_mask = &spi->dev.coherent_dma_mask; + return devm_mfd_add_devices(&spi->dev, 0, cpcap_mfd_devices, ARRAY_SIZE(cpcap_mfd_devices), NULL, 0, NULL); } -- 2.30.2