From patchwork Tue Jan 9 10:20:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Stanner X-Patchwork-Id: 13514728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67C96C46CD2 for ; Tue, 9 Jan 2024 10:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5v/7/WSDuThPWQRQ9FHQ7LdIgAt+1Ez3JfPLN+BB8IU=; b=X10YvpAJjdrzcv mrWjZHLp9Lvk1i8cq2J3J/wed1V2YSjfSW7Bl1sZpGxzMofP0qLe2iZ0DDtzZfIW4+bYn0+1/kykj 27yV+LUXgymUKs9amRk3mkHqbkAG7GkotCmC37rd3D0mxodeOH0/FbIQNWR0nXj4SZEDq/uYWIQiY wakpCRGB1X/yhJIQ5DTUqE+lRC0nRnm01GTBwZQDZRI0kX5kAx9kpLN+hjwa7jHt+2sRwUKpjE20t 0KPygJP3mPyI6bMqOieyigaPCPLxGLVBGkFanwzVxnq4wWBC4wmOsvtBsu7x3B4yoRbr9ZE1Cjrpg FSicuuBAyLe5p0oiPUrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rN9E0-007bks-2Z; Tue, 09 Jan 2024 10:20:48 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rN9Dx-007bjt-2w for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 10:20:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704795644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8SIIXck5uwYvwPpJnTFzb6gmOuEum/JO9/k2N35WTjM=; b=UmG85CJ24W7LNNgH8PQnxEUoWhCNZsg1ZS85ebT0PXIVyU9xdWVHkRZ73SFldK8Q3OzNJD +zmJTsR0w03OYyPvVDubEHPMkVk9Hau7HybhqNWTGVTBMEYBPWfdx8bvmLOW9VkMxBD30Z Rl/V8ofwrbkWKi67UNUl9YALt4OVFFc= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-444-J7RGndZgPmOrTpJfeUVnpQ-1; Tue, 09 Jan 2024 05:20:43 -0500 X-MC-Unique: J7RGndZgPmOrTpJfeUVnpQ-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-7815b7f7a78so69182085a.0 for ; Tue, 09 Jan 2024 02:20:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704795643; x=1705400443; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8SIIXck5uwYvwPpJnTFzb6gmOuEum/JO9/k2N35WTjM=; b=QU7KXBZ33Kl4YysKYyssa3/QMiEGwObJkRRiiUtb/Z56rR9CvhTfOmACG8FI5Qb7el tZlJBK5G76+IYKKxCkpaZHkrnLElCcxfg5vP965bxRzbpssh+HpVYuX3WwlGLhms2YTM t08IndbOdMVIDA+Jo5pWahMvm+4eJIuh0ctRIyDgY72c1IWWr4ME8oxz5QeD4GXg3p0L B3lgGaKqk04ahycEWmOAIq2om79Hw0ilyY2wF+WSVyuvMLz/JFjopolssG1HXZYZ6Wzj 6dLhi58QbWGM3yGjoAe6fI9nxpAWoXBNzYq9hzRHjsz/AZ2NABkZKk6q3idhArQvy+Mi IgCg== X-Gm-Message-State: AOJu0Yy41QXcPz6+3KbUlJCpHkjwCWphVoLfXQsASJ2og53OKJvxYahd Tq7TUk5rtllKS3iEndmPeZg17XIyQ180fCjqgcSWou6yqGh9Iqvx5YHNyePUkZN38XVDoFAcfxl mwFxH5/JFvkBzJxrn/kpeNRTIuZhysCTfRKe2PYG2Bc0= X-Received: by 2002:a05:620a:410a:b0:783:1077:714d with SMTP id j10-20020a05620a410a00b007831077714dmr10128960qko.7.1704795642797; Tue, 09 Jan 2024 02:20:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGm98LGFsI95VtFsTojt3ky3TV9lUFR+SqWmfn+hfcm+azOazpPki9dG32RlcMzB3+1Pr17LA== X-Received: by 2002:a05:620a:410a:b0:783:1077:714d with SMTP id j10-20020a05620a410a00b007831077714dmr10128942qko.7.1704795642563; Tue, 09 Jan 2024 02:20:42 -0800 (PST) Received: from pstanner-thinkpadt14sgen1.remote.csb (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id m24-20020ae9e018000000b00783217607d6sm679695qkk.115.2024.01.09.02.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:20:42 -0800 (PST) From: Philipp Stanner To: Laurentiu Palcu , Lucas Stach , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: NXP Linux Team , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Philipp Stanner Subject: [PATCH v2 0/2] drm/imx/dcss: implement region request and devres Date: Tue, 9 Jan 2024 11:20:30 +0100 Message-ID: <20240109102032.16165-1-pstanner@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_022046_208528_43C50C58 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org dcss currently does not request its memory resource. This series adds that request with devres. As we're at it, it also ports all the ioremaps and associated allocations to devres. I can build this, but I don't have the hardware available to test it. So you might want to have a closer look. P. Philipp Stanner (2): drm/dcss: request memory region drm/imx/dcss: have all init functions use devres drivers/gpu/drm/imx/dcss/dcss-blkctl.c | 14 +++----------- drivers/gpu/drm/imx/dcss/dcss-ctxld.c | 15 ++++----------- drivers/gpu/drm/imx/dcss/dcss-dev.c | 18 +++++++++--------- drivers/gpu/drm/imx/dcss/dcss-dpr.c | 25 ++++++------------------- drivers/gpu/drm/imx/dcss/dcss-drv.c | 12 +++--------- drivers/gpu/drm/imx/dcss/dcss-dtg.c | 23 ++++------------------- drivers/gpu/drm/imx/dcss/dcss-scaler.c | 22 ++++------------------ drivers/gpu/drm/imx/dcss/dcss-ss.c | 11 +++-------- 8 files changed, 36 insertions(+), 104 deletions(-)