All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cristian Marussi <cristian.marussi@arm.com>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	 Cristian Marussi <cristian.marussi@arm.com>
Subject: [PATCH 1/6] firmware: arm_ffa: Add missing rwlock_init()
Date: Mon, 08 Jan 2024 12:34:11 +0000	[thread overview]
Message-ID: <20240108-ffa_fixes_6-8-v1-1-75bf7035bc50@arm.com> (raw)
In-Reply-To: <20240108-ffa_fixes_6-8-v1-0-75bf7035bc50@arm.com>

Add missing rwlock initialization.

Fixes: 0184450b8b1e ("firmware: arm_ffa: Add schedule receiver callback mechanism")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
 drivers/firmware/arm_ffa/driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
index 6146b2927d5c..ed1d6a24934e 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -1226,6 +1226,7 @@ static void ffa_setup_partitions(void)
 			ffa_device_unregister(ffa_dev);
 			continue;
 		}
+		rwlock_init(&info->rw_lock);
 		xa_store(&drv_info->partition_info, tpbuf->id, info, GFP_KERNEL);
 	}
 	drv_info->partition_count = count;

-- 
2.34.1


WARNING: multiple messages have this Message-ID (diff)
From: Cristian Marussi <cristian.marussi@arm.com>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	 Cristian Marussi <cristian.marussi@arm.com>
Subject: [PATCH 1/6] firmware: arm_ffa: Add missing rwlock_init()
Date: Mon, 08 Jan 2024 12:34:11 +0000	[thread overview]
Message-ID: <20240108-ffa_fixes_6-8-v1-1-75bf7035bc50@arm.com> (raw)
In-Reply-To: <20240108-ffa_fixes_6-8-v1-0-75bf7035bc50@arm.com>

Add missing rwlock initialization.

Fixes: 0184450b8b1e ("firmware: arm_ffa: Add schedule receiver callback mechanism")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
 drivers/firmware/arm_ffa/driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
index 6146b2927d5c..ed1d6a24934e 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -1226,6 +1226,7 @@ static void ffa_setup_partitions(void)
 			ffa_device_unregister(ffa_dev);
 			continue;
 		}
+		rwlock_init(&info->rw_lock);
 		xa_store(&drv_info->partition_info, tpbuf->id, info, GFP_KERNEL);
 	}
 	drv_info->partition_count = count;

-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-01-08 12:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-08 12:34 [PATCH 0/6] Misc FFA fixes around init Cristian Marussi
2024-01-08 12:34 ` Cristian Marussi
2024-01-08 12:34 ` Cristian Marussi [this message]
2024-01-08 12:34   ` [PATCH 1/6] firmware: arm_ffa: Add missing rwlock_init() Cristian Marussi
2024-01-08 12:34 ` [PATCH 2/6] firmware: arm_ffa: Add missing host rwlock_init() Cristian Marussi
2024-01-08 12:34   ` Cristian Marussi
2024-01-08 12:34 ` [PATCH 3/6] firmware: arm_ffa: Check xa_load() return value Cristian Marussi
2024-01-08 12:34   ` Cristian Marussi
2024-01-08 12:34 ` [PATCH 4/6] firmware: arm_ffa: Simplify ffa_partitions_cleanup() Cristian Marussi
2024-01-08 12:34   ` Cristian Marussi
2024-01-08 12:34 ` [PATCH 5/6] firmware: arm_ffa: Use xa_insert() and check for result Cristian Marussi
2024-01-08 12:34   ` Cristian Marussi
2024-01-08 12:34 ` [PATCH 6/6] firmware: arm_ffa: Handle partitions setup failures Cristian Marussi
2024-01-08 12:34   ` Cristian Marussi
2024-01-22 14:41 ` [PATCH 0/6] Misc FFA fixes around init Sudeep Holla
2024-01-22 14:41   ` Sudeep Holla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240108-ffa_fixes_6-8-v1-1-75bf7035bc50@arm.com \
    --to=cristian.marussi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sudeep.holla@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.