From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6904AC2D0A3 for ; Fri, 6 Nov 2020 15:16:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E062D206C1 for ; Fri, 6 Nov 2020 15:16:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="X8Fug+aN"; dkim=temperror (0-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="QzJTEYxo"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="qutC7tx7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E062D206C1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Zncp7oFLZEIEyBasoiG1RatAbvo/8EW2lX8BIwfaifE=; b=X8Fug+aNzovEgea/UARXHscpB 5x77xJPH8+Gwmjf5B7rlf78j/Km1uomUBCXUZTfoi/dKWjmdA8RPg/qfjnLtsFUDlGLWr5YB7EHJU AxCAEjOjoKhFDOeIV+/0OWHPawXwfGbAoslz5TsJOdqZqxjeqQAtZ+Jkk8xUNaCS92vHjac7tr78q wNWRAUdp0DmyLLVF1uStdDQ2rzgcF3o+w08C4zwJ6K+e0BuiXRL6uTpEHFE20ETtwXbzxYVqG/diT nXgnNWjoPVWVXspZ19qXIF+ai/JmsAbgS8eSeqeUEusZtcXgtgF79h6uRTuTzMOhMBmPXUxYh1rmT hAin5hkvg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb3Rz-0002pF-Uk; Fri, 06 Nov 2020 15:14:51 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb3RW-0002ev-EE for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 15:14:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id D246F5806FF; Fri, 6 Nov 2020 10:14:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 06 Nov 2020 10:14:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=0bscza8TyZZzk bqTYGcH14Vv+/I16f52I3QPa0Ug4Ps=; b=QzJTEYxoh38AyRVtbLaamEXft1Pbz yCatY5kvsMJBDj72Qi1/WOI++9d+Xys9P4y65bqFcDuRrj9IeS6H4u5fIFW+6OZM 73PvyOL23Ks4kKRsmrLwm8cc8O3pTHTfOfOUVLv5OGzN+JdERXMxf4VME2cOpseo xPhaGC+FHLPwSeX/2dbYdPITynFc0SBJRI9UMOyw4p8BBx+otQI5YdJ4yCRAasqQ dv3ZP9MMnV1A8ftKKZwf+VxggLMntIuVIIWEu/q3osjuI9ooJFE5qi2gtyBqz/9N 5PTqp11r4k9aRgqURPIvAq4HLgfu8Ze+GT9eEU02IRkd1UYjUW8C4oeUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=0bscza8TyZZzkbqTYGcH14Vv+/I16f52I3QPa0Ug4Ps=; b=qutC7tx7 3VKN5jfH0KYzq6lusXZbGlzBaeTrIuISLqSjgwhhe44jstDOJjMilhInsnLfWZzO F5sqmATs59kqGj5B+KOAmetSiRx0AgYfpLhT9gnksjwuLiyBc+jXZcnPUqrRMQvQ MMHKPAsPKh4yHM8ogTwu/9rIOEkAphulcXM8u4qzNDqR72hHK9dTfCOhOWOtxCk1 L0zbBRY9o41RYhp1zM/stTEHd3d0Nd7mPujjgs1iCVHPmZuFkX5oKcHbSjLBSOtL MIjUfuV//nkDT8QmxnT32wHSz5hzwata742zB8wJ2R5Uq068XoFMQwx5FZdR9j6q IkDDn+nWLGv+2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtledgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepvdekleevfeffkeejhfffueelteelfeduieefheduudfggffhhfffheevveeh hedvnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgepfeenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 5927C306005E; Fri, 6 Nov 2020 10:14:20 -0500 (EST) From: Maxime Ripard To: Daniel Vetter , David Airlie , Christoph Hellwig Subject: [PATCH 5/7] media: sun6i: Remove the MBUS quirks Date: Fri, 6 Nov 2020 16:14:09 +0100 Message-Id: <20201106151411.321743-6-maxime@cerno.tech> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201106151411.321743-1-maxime@cerno.tech> References: <20201106151411.321743-1-maxime@cerno.tech> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_101422_599139_1D44CD22 X-CRM114-Status: GOOD ( 14.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, Hans Verkuil , Jernej Skrabec , Thomas Zimmermann , Maarten Lankhorst , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Kocialkowski , Maxime Ripard , Yong Deng , Mauro Carvalho Chehab , Robin Murphy , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the MBUS quirks are applied by our global notifier, we can remove them from our CSI driver for the A31. Suggested-by: Christoph Hellwig Signed-off-by: Maxime Ripard --- .../media/platform/sunxi/sun6i-csi/sun6i_csi.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index e69e14379fc6..27935f1e9555 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c @@ -881,14 +881,6 @@ static int sun6i_csi_resource_request(struct sun6i_csi_dev *sdev, return 0; } -/* - * PHYS_OFFSET isn't available on all architectures. In order to - * accommodate for COMPILE_TEST, let's define it to something dumb. - */ -#if defined(CONFIG_COMPILE_TEST) && !defined(PHYS_OFFSET) -#define PHYS_OFFSET 0 -#endif - static int sun6i_csi_probe(struct platform_device *pdev) { struct sun6i_csi_dev *sdev; @@ -899,15 +891,6 @@ static int sun6i_csi_probe(struct platform_device *pdev) return -ENOMEM; sdev->dev = &pdev->dev; - /* - * The DMA bus has the memory mapped at 0. - * - * XXX(hch): this has no business in a driver and needs to move - * to the device tree. - */ - ret = dma_direct_set_offset(sdev->dev, PHYS_OFFSET, 0, SZ_4G); - if (ret) - return ret; ret = sun6i_csi_resource_request(sdev, pdev); if (ret) -- 2.28.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel