From patchwork Fri Jan 5 17:22:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Stanner X-Patchwork-Id: 13512414 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 A8D43C3DA6E for ; Fri, 5 Jan 2024 17:23:54 +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=1qT32//G+dXA72pY+sb6Qf4unxdlvPdPIjNxhRkpwE0=; b=bsGUa8mK9WzqHp Gdl89kSkVmAz2mCTi4Vp6s5HC/700VYBB0gyZCT0CUq3t6YOgrFD4OD65LnKHK8PEi/cRU4Y9olit Wg3F7I8UyTq4CWQFYRuhXywc561AVHKSiEAmdK0P8lgJOQSewxgaHs3XrwNGQcF7o1nk7SKjn2kBS dCUkS13/KR0ODKgv/d+Gpohn2EyWlhIQcCvcs34s2OECajDle+giwgyVRk+ziqQcW4Chkn8gRjB1R qm9FIHCO4YfqtCLv4b1ytq21MBNLUw/VM7YYO2FLGCBVeWJLastWMuh/xCK49/KmuXzgZlsNVg0ux odPSGCVgDUK277rSrcQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLnui-00HOy8-08; Fri, 05 Jan 2024 17:23:20 +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 1rLnuf-00HOxI-1Y for linux-arm-kernel@lists.infradead.org; Fri, 05 Jan 2024 17:23:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704475393; 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=dtJeN7TACSQgao0vuoZrL+Z3Hkf2IquMRY0Uvyl8X9k=; b=T+QvxHKOCZH1DeLo7deDeLqzSzoqj2slD/lmPRYpQFO/KmiKjSVVOoZ5reWKx6DLpL38Me nUbHW3m2Y08NX+5wyEz/DCyT/YM06HW6fus6L6TOY1ZaYmKAQccbhTGgxlXsmpmfjFAj2K ITlEa8F2/hdIU55tiF/CRS2dLawTfcA= Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-28-kcvjYFW8Nj23dkysyx31Ow-1; Fri, 05 Jan 2024 12:23:12 -0500 X-MC-Unique: kcvjYFW8Nj23dkysyx31Ow-1 Received: by mail-oo1-f69.google.com with SMTP id 006d021491bc7-59430ae1ff1so430809eaf.0 for ; Fri, 05 Jan 2024 09:23:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704475391; x=1705080191; 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=dtJeN7TACSQgao0vuoZrL+Z3Hkf2IquMRY0Uvyl8X9k=; b=TL95aMRpf3QBtNFcU8zPIr6GnYaJdJCoKxAKt39/eQYfg2YSyWCcbvyjg+3oei847b TByWYDqFkKzHcEUkz69SaJ2tOS2ZY9Vcei2M6Ovdf+JU8BLh7pP3x3ocG5/uUxJXx3p7 kfD1vWOKUkxY4N7AfQWCptD22rZxZJ5jKz7W4m4TgyI6ZphxG3V9yqS7Eh71hWrWO1fd TeLZnQ79F8rgNxq6N81kpP43DByyzoxbJlmrYyhelL9xrUEdmVP6X/PiNrw+2ISBTjWZ 4RUtj7gXM5cfmpWfmMwAhoXumpYgqcXH5IJ873Gzk/fCDw0SBQbJgTAWS+QhBaBpWf4P T/7Q== X-Gm-Message-State: AOJu0YwrxEqPCOl1teW6BBc0aNaQb9aZn++iaRezdr5oIVG9x80lvwFA XCEzTsQ+CkjUo+22wgBvcEH5SDDqiw16icKWok/3MMLoOBr82T+5dFxPhkXXfKQvEngIl7bb4eH 66KAZvjH3KixvSXab20dVafP1XFHLIr+BhaZx0Uo+a0E= X-Received: by 2002:a05:6358:998a:b0:175:31db:191f with SMTP id j10-20020a056358998a00b0017531db191fmr5533035rwb.3.1704475391340; Fri, 05 Jan 2024 09:23:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4W7UoEYVL25ZiTJPqQ+3iKgSUjpmhQaKfboSvX00EKet2J7PxO9VXhFiFvETA35RWG0dxOw== X-Received: by 2002:a05:6358:998a:b0:175:31db:191f with SMTP id j10-20020a056358998a00b0017531db191fmr5533001rwb.3.1704475390938; Fri, 05 Jan 2024 09:23:10 -0800 (PST) Received: from pstanner-thinkpadt14sgen1.remote.csb ([2001:9e8:32d1:a900:227b:d2ff:fe26:2a7a]) by smtp.gmail.com with ESMTPSA id t22-20020ac865d6000000b004282c862fccsm884750qto.57.2024.01.05.09.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 09:23:10 -0800 (PST) From: Philipp Stanner To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Laurentiu Palcu , Lucas Stach , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Mark Brown , Takashi Iwai , David Gow , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Philipp Stanner Subject: [PATCH 0/2] platform_device: add new devres function Date: Fri, 5 Jan 2024 18:22:17 +0100 Message-ID: <20240105172218.42457-2-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-20240105_092317_612162_A0201F7D X-CRM114-Status: GOOD ( 12.58 ) 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 Patch #1 adds a new devres function that I found could be useful for the driver dcss in drm. Patch #2 makes that driver use the new function. I compiled this successfully but unfortunately don't have the hardware to test it for dcss. So you might want to have a closer look. Greetings, P. Philipp Stanner (2): platform_device: add devres function region-reqs drm/dcss: request memory region drivers/base/platform.c | 37 +++++++++++++++++++++++++++++ drivers/gpu/drm/imx/dcss/dcss-dev.c | 8 +++---- include/linux/platform_device.h | 2 ++ 3 files changed, 43 insertions(+), 4 deletions(-)