Cover Letter Detail
Show a cover letter.
GET /api/1.2/covers/2233834/?format=api
{ "id": 2233834, "url": "http://patchwork.ozlabs.org/api/1.2/covers/2233834/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pwm/cover/20260506220012.855173-1-dakr@kernel.org/", "project": { "id": 38, "url": "http://patchwork.ozlabs.org/api/1.2/projects/38/?format=api", "name": "Linux PWM development", "link_name": "linux-pwm", "list_id": "linux-pwm.vger.kernel.org", "list_email": "linux-pwm@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260506220012.855173-1-dakr@kernel.org>", "list_archive_url": null, "date": "2026-05-06T21:58:32", "name": "[0/3] rust: devres: add DevresLt for ForLt-aware device resource access", "submitter": { "id": 89037, "url": "http://patchwork.ozlabs.org/api/1.2/people/89037/?format=api", "name": "Danilo Krummrich", "email": "dakr@kernel.org" }, "mbox": "http://patchwork.ozlabs.org/project/linux-pwm/cover/20260506220012.855173-1-dakr@kernel.org/mbox/", "series": [ { "id": 503078, "url": "http://patchwork.ozlabs.org/api/1.2/series/503078/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pwm/list/?series=503078", "date": "2026-05-06T21:58:33", "name": "rust: devres: add DevresLt for ForLt-aware device resource access", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/503078/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2233834/comments/", "headers": { "Return-Path": "\n <linux-pwm+bounces-8820-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-pwm@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=r7ZPn4Zu;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pwm+bounces-8820-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"r7ZPn4Zu\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9q9C1gPjz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 08:01:51 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 0858C3025C6F\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 6 May 2026 22:00:37 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0F42D3B47D9;\n\tWed, 6 May 2026 22:00:34 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id DC54735B631;\n\tWed, 6 May 2026 22:00:33 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 5551DC2BCB2;\n\tWed, 6 May 2026 22:00:27 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778104834; cv=none;\n b=gbkYvQJQvnpy2ZRRz5svyGm8eRW2Lr2mSriaHMX5I8b3/WVZJVX7bXbDH2RFuf/4D/gkloiWleUDkfspIhq7L99L3u/Phd1E+lUkSFC0a1Oho4Joom1XJqdaxjP62jbXe5MXmTIbw25KT74QsFLLOIwbEqNX0rUy2UKQufI3r0g=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778104834; c=relaxed/simple;\n\tbh=nCyApNb8RKn1veEhbH+LihTl9SHcYNeSopAO0tq8/OA=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=Jck5wFznS4xhqP+1jmUdatgGAeXyILu9E0ZFlHNOPBJBubmL/b1yU17CUgCSRhF8t0yxfeEejP2uv3rzLwiZhLEmMBSrt/Y+5F6S5UrjrWzsAXbG+AZNYRF78l3BlzmwyMM/7uONSScfk153eM9fKhZMF3SNH8UoYUqMDZ01Cko=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=r7ZPn4Zu; arc=none smtp.client-ip=10.30.226.201", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1778104833;\n\tbh=nCyApNb8RKn1veEhbH+LihTl9SHcYNeSopAO0tq8/OA=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=r7ZPn4ZuEfXPGPabAtTXrwgZPsqXmXckRw4t6mO2USweTSvl2RUftL8wUqYiaHVc6\n\t F/74M2nXgVwWrb4IB2kr1wJJsahWu+Ra4QxGTmk+dtcJrNUKk26S7ai3T5XMW4QO0e\n\t /jmtBfR4JNscZOtjsINOTk345VDwTVWgpTzwrbAFE29tbdw9uLDIThLfSGSDGJx3pY\n\t aOCD+Klzh2O7/VerE10AIB/YF/JAJSMjbRfhLQDnq1AR9Hw/utzMFw+u+w998uKBS+\n\t 0FbEMPMpM346TySODIGrcOnm+hDCujKBflOD/B+Vkwqp83Nh1h48gH7aSEOIvVJf68\n\t c/8Ui70hgF0KQ==", "From": "Danilo Krummrich <dakr@kernel.org>", "To": "gregkh@linuxfoundation.org,\n\trafael@kernel.org,\n\tacourbot@nvidia.com,\n\taliceryhl@google.com,\n\tdavid.m.ertman@intel.com,\n\tira.weiny@intel.com,\n\tleon@kernel.org,\n\tviresh.kumar@linaro.org,\n\tm.wilczynski@samsung.com,\n\tukleinek@kernel.org,\n\tbhelgaas@google.com,\n\tkwilczynski@kernel.org,\n\tabdiel.janulgue@gmail.com,\n\trobin.murphy@arm.com,\n\tmarkus.probst@posteo.de,\n\tojeda@kernel.org,\n\tboqun@kernel.org,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tigor.korotin@linux.dev,\n\tdaniel.almeida@collabora.com", "Cc": "driver-core@lists.linux.dev,\n\tlinux-kernel@vger.kernel.org,\n\tnova-gpu@lists.linux.dev,\n\tdri-devel@lists.freedesktop.org,\n\tlinux-pm@vger.kernel.org,\n\tlinux-pwm@vger.kernel.org,\n\tlinux-pci@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tDanilo Krummrich <dakr@kernel.org>", "Subject": "[PATCH 0/3] rust: devres: add DevresLt for ForLt-aware device\n resource access", "Date": "Wed, 6 May 2026 23:58:32 +0200", "Message-ID": "<20260506220012.855173-1-dakr@kernel.org>", "X-Mailer": "git-send-email 2.54.0", "Precedence": "bulk", "X-Mailing-List": "linux-pwm@vger.kernel.org", "List-Id": "<linux-pwm.vger.kernel.org>", "List-Subscribe": "<mailto:linux-pwm+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-pwm+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Devres<T> stores resources as T and hands out &'bound T from its access\nmethods. For lifetime-parameterized types like Bar<'bound, SIZE> that\nare transmuted to 'static for storage, the synthetic 'static leaks to\ncallers -- any method on the stored type that surfaces its lifetime\nparameter would yield a &'static reference, which is unsound.\n\nThis series adds DevresLt<F: ForLt>, a thin wrapper around\nDevres<F::Of<'static>> that applies ForLt::cast_ref in all access paths\nto shorten the stored 'static back to the caller's borrow lifetime.\nDevres<T: Send> remains unchanged for static resource types.\n\nAlso implement ForLt for Bar, IoMem and ExclusiveIoMem, and their\ninto_devres() methods to return DevresLt instead of plain Devres.\nProvide convenience type aliases DevresBar, DevresIoMem and\nDevresExclusiveIoMem.\n\nThis series depends on [1].\n\n[1] https://lore.kernel.org/driver-core/20260506215113.851360-1-dakr@kernel.org/\n\nDanilo Krummrich (3):\n rust: devres: add DevresLt for ForLt-aware device resource access\n rust: pci: return DevresLt from Bar::into_devres()\n rust: io: mem: return DevresLt from\n IoMem/ExclusiveIoMem::into_devres()\n\n drivers/pwm/pwm_th1520.rs | 5 +-\n rust/kernel/devres.rs | 97 ++++++++++++++++++++++++++++++++++++---\n rust/kernel/io/mem.rs | 55 ++++++++++++++++------\n rust/kernel/pci.rs | 1 +\n rust/kernel/pci/io.rs | 30 ++++++++----\n 5 files changed, 155 insertions(+), 33 deletions(-)" }