Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp564576rwj; Thu, 22 Dec 2022 11:19:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsYP4yrrTFY7CCznlFZFi/B1/IHEbXxZnCp2w5mGwqgEysbG70MtJEI8n4mMEOaKty+abEe X-Received: by 2002:a05:6a21:3a45:b0:9d:efbe:e607 with SMTP id zu5-20020a056a213a4500b0009defbee607mr8904299pzb.35.1671736782805; Thu, 22 Dec 2022 11:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671736782; cv=none; d=google.com; s=arc-20160816; b=zdnCEMTjGNv9TYIstnFnYm15hVBDaV2vhmg1DtjnqyzAxa+vukt1HuVPkN44vDtwnm xft5wxt+IW99AIvczwtQB3fzXDV1PMGlmL5JHJBrJfCG50vPxFLBgS7v0RIMRkZrOw1k V5eLDwPEKKyiZ3Ls2rKge4a2szty+qlSH9TrwNb8aCwqRqaSy17Bkx7ZEP0Xx+Tbl8wS NWNdR9BG79DDTVMQdeCZOr/JLuFBiC2StNrWwgdWQ7zr0RBMAiKAcn5RvqY1f2a6jsGR mjfxzFSX4JoqR18Xgi2QTjhGzs5FeFwwFeU+rxQTVDHVxBqFYKKPBp/cpr8r02yDD2/Z QyfA== 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=MCpIvJwRHl2v4L/ZOyFtefuYv3gwHd6nRi/XXGQgJ4g=; b=EosLOB5PWoyGNr2+cfhvNZUzVhnXmwcYmG9CywIB+8jV4GCxguhhZuvHogbNp+FYpR zDVyuDcdQ7Fd1XDlko9Qdm66xhcSj81f1oqaMgyBUjiJqoqaT+3RT53N9S7ARwn2gCW+ Yi/n5nMAkhUbrWB4p5GEwiPPl3oCdIs3RFtrQY6bDc+I62zXpsOI+GsZujOYXE0I+5WF FZxtC9pLVR8f4KjDR5m8crhKQWnPzpLxk9zFuNB6ysVSuw5XycFgGZ2Ov+Kb5R4hndMV 5r7UmIEei8aWBJbcxeHHnAayoWUsuZsRjdlGa8JTIlivS5UgWeXpezU+IbtpQ4YAYnt9 Zjrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=e4std9e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170903120700b001747ed48ee8si1375424plh.150.2022.12.22.11.19.34; Thu, 22 Dec 2022 11:19:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=e4std9e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235329AbiLVTPd (ORCPT + 68 others); Thu, 22 Dec 2022 14:15:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235394AbiLVTP0 (ORCPT ); Thu, 22 Dec 2022 14:15:26 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECAA228E31; Thu, 22 Dec 2022 11:15:25 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3f:d076:4da6:b729:f032:ed0a]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 49B6E89F; Thu, 22 Dec 2022 20:15:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671736524; bh=ZVkLGUNPuXKW9TCCk2CvFJa796G8cO0C9Y1XT9ye/iw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e4std9e1LWG4Z+fh4/ZeD7HFUx10A7JSRR2HuymdcZYROvVfrwjbticYFHytoJJnp vNfowK277ndSn0PNfBxt3BOKF4jjGA0NIPpvfXar9wSqXQpowknm4mdOB1HwIqU7n/ 8Bn5vQv1ia7ly4RIZLI2fiu0hwoHCIO/Q+CsRF3w= From: Umang Jain To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , Adrien Thierry , Stefan Wahren , Florian Fainelli , Dan Carpenter , Nicolas Saenz Julienne , Phil Elwell , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v2 2/4] staging: vchiq: Do not assign default dma_mask explicitly Date: Fri, 23 Dec 2022 00:44:58 +0530 Message-Id: <20221222191500.515795-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221222191500.515795-1-umang.jain@ideasonboard.com> References: <20221222191500.515795-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vchiq driver assigns DMA_BIT_MASK(32) to the child platform devices it registers. By default, platform_device_register_* helpers assign DMA_BIT_MASK(32) dma_mask to the platform devices it registers. It is unnecessary to define it explicitly in struct platform_device_info hence, drop this explicit dma_mask assignment. This will help simplying the vchiq_register_child() going forwards. No functional changes intended in this patch. Signed-off-by: Umang Jain --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index fc7ea7ba97b2..3c4766375daa 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -1774,7 +1774,6 @@ vchiq_register_child(struct platform_device *pdev, const char *name) pdevinfo.parent = &pdev->dev; pdevinfo.name = name; pdevinfo.id = PLATFORM_DEVID_NONE; - pdevinfo.dma_mask = DMA_BIT_MASK(32); child = platform_device_register_full(&pdevinfo); if (IS_ERR(child)) { -- 2.38.1