* [PATCH] s390/sclp: define commands for storage (un)assignment
@ 2024-06-10 15:10 Alexander Gordeev
2024-06-10 15:28 ` Heiko Carstens
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Gordeev @ 2024-06-10 15:10 UTC (permalink / raw)
To: Heiko Carstens, Vasily Gorbik, Gerald Schaefer, Sumanth Korikkar
Cc: linux-s390
Replace immediate values with SCLP_CMDW_UN|ASSIGN_STORAGE defines.
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
---
drivers/s390/char/sclp_cmd.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index 11c428f4c7cf..9741d849febb 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -29,6 +29,9 @@
#include "sclp.h"
+#define SCLP_CMDW_ASSIGN_STORAGE 0x000d0001
+#define SCLP_CMDW_UNASSIGN_STORAGE 0x000c0001
+
static void sclp_sync_callback(struct sclp_req *req, void *data)
{
struct completion *completion = data;
@@ -223,7 +226,7 @@ static int sclp_assign_storage(u16 rn)
unsigned long long start;
int rc;
- rc = do_assign_storage(0x000d0001, rn);
+ rc = do_assign_storage(SCLP_CMDW_ASSIGN_STORAGE, rn);
if (rc)
return rc;
start = rn2addr(rn);
@@ -233,7 +236,7 @@ static int sclp_assign_storage(u16 rn)
static int sclp_unassign_storage(u16 rn)
{
- return do_assign_storage(0x000c0001, rn);
+ return do_assign_storage(SCLP_CMDW_UNASSIGN_STORAGE, rn);
}
struct attach_storage_sccb {
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s390/sclp: define commands for storage (un)assignment
2024-06-10 15:10 [PATCH] s390/sclp: define commands for storage (un)assignment Alexander Gordeev
@ 2024-06-10 15:28 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2024-06-10 15:28 UTC (permalink / raw)
To: Alexander Gordeev
Cc: Vasily Gorbik, Gerald Schaefer, Sumanth Korikkar, linux-s390
On Mon, Jun 10, 2024 at 05:10:48PM +0200, Alexander Gordeev wrote:
> Replace immediate values with SCLP_CMDW_UN|ASSIGN_STORAGE defines.
>
> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
> ---
> drivers/s390/char/sclp_cmd.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
Acked-by: Heiko Carstens <hca@linux.ibm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-10 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10 15:10 [PATCH] s390/sclp: define commands for storage (un)assignment Alexander Gordeev
2024-06-10 15:28 ` Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox