Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1147090pxv; Fri, 9 Jul 2021 19:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4UlvRAIoWUFtM1bsiOv66og7zoxeYcdSxG9O/dnIFwlcZxx9HsPZmHrkdqKAt5+qBUaOq X-Received: by 2002:a50:9faf:: with SMTP id c44mr2717350edf.197.1625884245369; Fri, 09 Jul 2021 19:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884245; cv=none; d=google.com; s=arc-20160816; b=FIWpIrSobLbK2CSTJVGvCR6a1z1vGLFgXoliyZ7Ykgjb68e1qgsAngE1dBp9cwjW2b eQO8f6T/Er9BWnMHHba4t6JFf3BjVU1GTYleYEGKGlj1nFYHFih6Vufs1P814qrA/3MI c0qEc+QiIuW8H53pJJH0r0RtsB96a7cH0at+Ih2n+ZLIHChBKrI8iRyAdAf9V7/KvmMf RqWjZ9Ul76PE0CixbrUev4gdbkxuHdtPZtI4rCNTrWAnSI6EQPAkZ1SJEuonPQKyPbAW Ywz9Zsqxf+eoUuP3SNf7bkzwPDvbDnTdS2MmUBMLciYjg00oEGQsT61/MS4s9od1H1fI 4Sxg== 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=0QHmqoLVrAlAXdILOkyZUTG8DmVVpdBGJdumz6Ez74dUsh161VxumEATANIWX0o67u SbF+L1GRhqK4ktNyspvCOoeLQ5jPfOUci1fLwkVI/cCMM2Po+Gqs3j9vaegfyIj1bx/R HPcUuljZohSNn3K38zuVGSNQfXc/hWumEfHPKJylul7a/11nnClzY79P67rOlJOwil/S Rpe4f2ww2pVu7a8hxltOKQ22asUsn0RMmQ4/kb1AWGjNA8d/fQLTJ98EsgPQR8UPR7PR 86uLGL5SlnD5APnGamuiWri3GKSIHvLvhQNdnVdkK/zn6ImJo2Y7iIBj/egQOAIWIfSn F+RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XeX45Vo+; 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 g8si10074624eds.273.2021.07.09.19.30.21; Fri, 09 Jul 2021 19:30:45 -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=XeX45Vo+; 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 S233527AbhGJCcO (ORCPT + 99 others); Fri, 9 Jul 2021 22:32:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:42484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234120AbhGJC3I (ORCPT ); Fri, 9 Jul 2021 22:29:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A76C7613B7; Sat, 10 Jul 2021 02:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883928; bh=qGZ/XPXWZNsgiZS33sYC3mAXAM5fqIhgEEX1RPAfsW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XeX45Vo++SJOmYGbozG7rxI0cGEIIj4GEViFa/nRslZUsCCWx285zeNUwPlIK45xW kFUobjnDiRso54bs2UCRQl4d+FLvtWoUIytGoXpxrjTctBvtVkpPbPos9qFWsAw6Tl kBdDXZ8sSOEVa/+6SWmAsAutyEqEwtALwffHZicsFUiUQthGf/4t7nyey+Pl5HmcEg zLgM+aYNkOGnFBpiZ4hO8ZhddAmK+VVtG5VMlI16IOH5RhLLpNE3OvX0xPHmGcK3P7 uw7S0M2MDVen0bEeOSVKEhHmP7cSqNp8qvYifY6UPcAyLRb5UPwHjTHgzqrX+UF1Ry 0KCUx7m1iU9yw== 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.10 45/93] mfd: cpcap: Fix cpcap dmamask not set warnings Date: Fri, 9 Jul 2021 22:23:39 -0400 Message-Id: <20210710022428.3169839-45-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-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