Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3888922pxv; Mon, 19 Jul 2021 11:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz07QaZxukADATNKUlsjOCA7dk0BAQoUjc1DrcsoQCCWaD2EjZyKLo3tfz1UlgDzc7XujzU X-Received: by 2002:a92:cac5:: with SMTP id m5mr17896645ilq.112.1626718289382; Mon, 19 Jul 2021 11:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626718289; cv=none; d=google.com; s=arc-20160816; b=QkKTPt6kLKmLgplJchpj2duWK7ThsEWWSlhQ5mL6yGpT89xvEDOI94v2cnPRNCJRAb dSBcem7EPqhY7Iytp73EJIP095lkqcgxDu49bHL52gwDpAMU9fYb1E2OvjwyEtBLPI5O Z7EqFVrc9rqdicwuBkJsSBQlO0YVfuuikESET7akD18njibGD79mz7+3e1q/HwoG2Qb9 dPwoiljDh5RIEJjJlVrbH7IqjR6SIXYE+6KYqtgOR5nyfBQiUubPZPYzRidBA5Ya4sn/ ylkeZvs3BpUxt6mRM25V6mPwkdo0M6TvKVlA7I+tftX5xFSuNDMuPPsH42eIQF/6EHp9 ieMg== 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=O8ZCznx7MfMmh42O2ZcbDrVw4EbVPOsiiwqIH4Wg2dE=; b=J1pWwFEuqjRb82nyvt7KEQco94MMu/BPNZsPgFTntY187zmI4A0Q+SQHMjZoBP5FAG uIJisKA4lzZdPQKzMB2WOhUfgvkZMuG1k9VZinPJUpvC4O6oNduP0BQMgRTpMsWyEFri corgXln2hqjWP+NTKx98QL7yRHLX9/t6g7z9HFmBqXGg6UzrbST5mMUgFuv16YnhTVB4 sL14v9EU5ZzEwfD5DLir+9vj04cDjWpFmM4ok33cHCH1pWV3hX0G185rYfA3NXntbJwC f4PWo2FgbhYGQgqw3yS3vAQjlnkCrIQqVj4l3PAUOE3RhJtBck1V5zfOwpq48F+Y/aY9 KPuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nh2Sb+3R; 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 x99si10293260jah.122.2021.07.19.11.11.18; Mon, 19 Jul 2021 11:11:29 -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=Nh2Sb+3R; 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 S1380359AbhGSR2F (ORCPT + 99 others); Mon, 19 Jul 2021 13:28:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:45328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348423AbhGSPns (ORCPT ); Mon, 19 Jul 2021 11:43:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8D0561355; Mon, 19 Jul 2021 16:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626711758; bh=qGZ/XPXWZNsgiZS33sYC3mAXAM5fqIhgEEX1RPAfsW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nh2Sb+3R5/rdQeYtXjv2cPN++h8A4AzGh09kWzTkBMTRnKNkKnYLEIHFjQ0sQ483j cAcumuGQncFnbB9oljNGK/j9EBcyJ4mPW5MQ2cDuA6ntpsAaIGyRxwTJj5Slvdw9F4 oLLHGbFkLQH9tL1vAhGJNB0gsF7gqB4Zc1bcmDg0= 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.12 078/292] mfd: cpcap: Fix cpcap dmamask not set warnings Date: Mon, 19 Jul 2021 16:52:20 +0200 Message-Id: <20210719144945.088453122@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.514164272@linuxfoundation.org> References: <20210719144942.514164272@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 30d82bfe5b02..6fb206da2729 100644 --- a/drivers/mfd/motorola-cpcap.c +++ b/drivers/mfd/motorola-cpcap.c @@ -327,6 +327,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