Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1144790pxv; Fri, 9 Jul 2021 19:26:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhc+9W+E4MyvRY4RrKnH9HLne2to924tN4zT4BTiZknx0PlXocm96SFANQbLq+XyfVDX9G X-Received: by 2002:a17:906:33d0:: with SMTP id w16mr21750450eja.376.1625883959990; Fri, 09 Jul 2021 19:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883959; cv=none; d=google.com; s=arc-20160816; b=pTt1/2Be3hB1OYC4itKNkbK2r/Knw8HhrIomdpsBo4uOlWYCaOvO+eHfd8ebr2t6ba 5pFCIu7d0X5bPkPcuwPEdLgbshsxN8XruvxSx/bTdoUt2lUqPD/iyLwfv1nxVy+TOtVq VC8onl7tWbnmlh+JB9EKdphQ8MuO7afc74JRvVS0zUM1/S45WxoXNjJWtC+OM/9P1Y6u SxRZAeZT/SO9q9A1c9Hohrk4gvDDllXjYJAAKdamVlnDclbiLVSPHrd7xvN8oHakgQRl 6rv5zKJZbHgvvQzUktGN0Oj9lAtbj1HRb4vXGB1tFAKK7AmQ9gat1cWa5uwb2X15cJQa VEtA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O8ZCznx7MfMmh42O2ZcbDrVw4EbVPOsiiwqIH4Wg2dE=; b=Mz66d/dkz4j9SQcXBod9N+1iF5jo0TM2asSm2O7jXNiR3gLGO5FGRtgWyjsC+dQJr/ hSaFOKb74SD+ZgqTwbeT1GjZHk793PY5o7ue5UGMs5p+6PSbIl+Y8/Rq0YzoS+J5Ko6Z H7CHgI+H7h1EhdtEsYoJkpklXWzpFe+ClXW5UDCjEYEWoxaTPTgmWdJ17hL+h6cxLMSY hHIpYGWBS7FL/nNkayZVqrsui/Ss9l4wELIpTiDWwGJHKjJ0bzIthu1eLB7jlDNDn+wv /aTTYyBfhctjZoZsPMmJD7l6UiE2bsxRSnz1MJa/vcIu2zCw+Ag/zlByRLL260R+7ZF7 XeIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pp7TFt1A; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he34si8779874ejc.713.2021.07.09.19.25.37; Fri, 09 Jul 2021 19:25:59 -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=@kernel.org header.s=k20201202 header.b=pp7TFt1A; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233439AbhGJC0p (ORCPT + 99 others); Fri, 9 Jul 2021 22:26:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:43064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232381AbhGJCZp (ORCPT ); Fri, 9 Jul 2021 22:25:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 791F7613F7; Sat, 10 Jul 2021 02:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883780; bh=qGZ/XPXWZNsgiZS33sYC3mAXAM5fqIhgEEX1RPAfsW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pp7TFt1AoJ8YHn19hqBR3ZPJExBsRokqSGlO0GJf8yCqjoulK3QrvCXsPQVwi37Qs DuaXydeiswhoLa+Ix/WmKEpOH4FJjbg2W/t/H8cNI7O3HF2KqRFZeHk6VV2ktx3qHQ +DH0AsoazMmm5UNI6wa766h6l/gayAfFc/GdnncFb+x1aI+m1VCCTT9OYYpXXu9+Qt ac98uPOVSTUvT1HKeo/qMK/UxdPETp1ZNLFCzJQhh5afPKpGxkzmu3yFcff30I344E 1wB/mPnNeUOt02gvGifs17nOuHQVL0gJv0/xe6bJnjW1x2JTjpi17HdChGVAHqqL6K 7lUjwGJaURZmg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tony Lindgren , Carl Philipp Klemm , Ivan Jelincic , Merlijn Wajer , Pavel Machek , Sebastian Reichel , "Sicelo A . Mhlongo" , Lee Jones , Sasha Levin Subject: [PATCH AUTOSEL 5.12 048/104] mfd: cpcap: Fix cpcap dmamask not set warnings Date: Fri, 9 Jul 2021 22:21:00 -0400 Message-Id: <20210710022156.3168825-48-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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