From patchwork Thu Apr 20 15:06:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13218903 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 3C220C77B72 for ; Thu, 20 Apr 2023 15:07:33 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=B46d9vEDSvY93u0Bb0gsqzpy/4CovHFBeixxXTyfLS0=; b=POeN7/dkycw4Z1 JIItP8EvlEeRZ1BSUoRxIrvpb20EGImT+h0V40idqyZ9oG22bSgpSXz6uEJYkyN3fG6SUlcHE58Qo aIyh8Y+Q2O5bqPlh40t8Jyc2ooBmdp8FZXKX53ACuLeJPRVUpQ5HANYdYnZlc9s3D+XpTxUOIH199 AUX5CtDmdyYDHPXIi6O/tdBqghGxv+VLpQ1Pw4gEdP1UGnQB9k3NA6sIHJz/g3bBafBKbNpdz0Zt0 Jprt6r7cBDZw7pdHwciDv0Qg8osM9iUQq+XEPg603S1hCpZbezVmWSW+qOpEU5gucUyK8aFx1/6ze n8SxqnShQ1O+qWDI6sag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppVrj-008N9F-1x; Thu, 20 Apr 2023 15:06:31 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppVrf-008N7X-2c for linux-arm-kernel@lists.infradead.org; Thu, 20 Apr 2023 15:06:29 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AEFB91480; Thu, 20 Apr 2023 08:07:07 -0700 (PDT) Received: from e103737-lin.cambridge.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3BA873F6C4; Thu, 20 Apr 2023 08:06:23 -0700 (PDT) From: Sudeep Holla Subject: [PATCH v2 0/3] firmware: arm_ffa: Some fixes for v6.4 Date: Thu, 20 Apr 2023 16:06:00 +0100 Message-Id: <20230419-ffa_fixes_6-4-v2-0-d9108e43a176@arm.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANlUQWQC/3WNQQ6CMBBFr2K6dkxbAcGV9zCEDGUqk0gxHSQaw t0t7F2+//PyFiUUmURdD4uKNLPwGBLY40G5HsODgLvEymp71pmpwHtsPH9ImgIycN4idv6Sdzp XyWlRCNqIwfWb9eTwlmZAmShu9yvS7qbvXifuWaYxfvf6bLb1X2g2oMGUpSEqiqry5oZxOLlxU PW6rj/ph/LIxwAAAA== To: linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , Marc Bonnici , Jens Wiklander , Lucian Paul-Trifu X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1165; i=sudeep.holla@arm.com; h=from:subject:message-id; bh=wLrz5CzrOSMMGFsCzYjeoRPEHocNKJmIxUTb+pz5J64=; b=owEBbQKS/ZANAwAIAQBBurwxfuKYAcsmYgBkQVTu4dUjQuT+XmfXTa5argNRhe2V/yqhPnkVY oTLmkufvNSJAjMEAAEIAB0WIQS6ceUSBvMeskPdk+EAQbq8MX7imAUCZEFU7gAKCRAAQbq8MX7i mIadD/wNjOV9x+OTcujQf+RAx+2cli9Eww/wNwyQJCljKB6nTN4Vmvv09KjZ6dQRdGlCOlKIkwv uWRvPAE2EBgTg0ei6uIQ8n0FCq83tuPUtcJZRzSZxA2fNP9CLAoZtTv+C33nEHlhlEWRNIOcrmA is5ICfKviEkR9latxo0k5RgMk9egTWEwYojIyT9mNzJRwHItGlc38PGtfJANogt0SN1I4/4myHW co86CSbRhfUjr+bHe7h3utSgVXiBHv0y29EVd+zJB/gGsXIl50d5qh0t3RSQ/M9qh4N925Xo+cV 5f5JmE4QWwS6BKU3lPNmbs8/sn+eRX/8son3P/6aE+/v/gzKOD8YB/+ZHanB+URivjCH5Br7B5E 5SH18oED2/RS+bPreIMMMIv6bGhkARvOAlQQSfvzMShpgAUalZhMW5437EaV7XjfPJZCHvecaEX fSvo/XlNDfRFTC6nwJ9r8S7AieDNHtSP92h8Hs4eKQfEUVA2g7V/RMZ5A5i5wEkGIjhK7WWQdXt OzuVSzYAtN3auPNMRrBgbhWHAouumkeNpyVCkE+AObHTcU09kydf29KmxjTxdzBYKfEnj7NryW/ dxxcAj1QjUVBXMOoW1Wh7IUnasL7cqesMEN9bTJwqoEzfix5V1h87CS0fOIXNYGWkB6roUKx3pY SDj3n+NZ9wottHA== X-Developer-Key: i=sudeep.holla@arm.com; a=openpgp; fpr=7360A21742ADF5A11767C1C139CFD4755FE2D5B4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230420_080627_919273_3752C8CB X-CRM114-Status: GOOD ( 10.28 ) 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 This series has assorted set of 3 fixes to the issues reported recently. Signed-off-by: Sudeep Holla --- Changes in v2: - Remove the usage of index to the partition information table as FFA device id as that is possible only if the core driver adds the device but ideally since it is exported ffa_device_register() can be called from anywhere and the ID must be generated within it to avoid collision. - Used IDA for device ID allocation - Link to v1: https://lore.kernel.org/r/20230419-ffa_fixes_6-4-v1-0-1881ee6699f1@arm.com --- Sudeep Holla (3): firmware: arm_ffa: Check if ffa_driver remove is present before executing firmware: arm_ffa: Fix usage of partition info get count flag firmware: arm_ffa: Fix FFA device names for logical partitions drivers/firmware/arm_ffa/bus.c | 19 +++++++++++++++---- drivers/firmware/arm_ffa/driver.c | 3 ++- include/linux/arm_ffa.h | 1 + 3 files changed, 18 insertions(+), 5 deletions(-) --- base-commit: cb0856346a60fe3eb837ba5e73588a41f81ac05f change-id: 20230419-ffa_fixes_6-4-cf2aadf75d05 Best regards,