aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/cio/chsc.c5
-rw-r--r--drivers/s390/cio/css.c9
2 files changed, 12 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index 44d7cc2f9738..1aaddea673e0 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -680,9 +680,10 @@ int chsc_determine_base_channel_path_desc(struct chp_id chpid,
680{ 680{
681 struct chsc_response_struct *chsc_resp; 681 struct chsc_response_struct *chsc_resp;
682 struct chsc_scpd *scpd_area; 682 struct chsc_scpd *scpd_area;
683 unsigned long flags;
683 int ret; 684 int ret;
684 685
685 spin_lock_irq(&chsc_page_lock); 686 spin_lock_irqsave(&chsc_page_lock, flags);
686 scpd_area = chsc_page; 687 scpd_area = chsc_page;
687 ret = chsc_determine_channel_path_desc(chpid, 0, 0, 0, 0, scpd_area); 688 ret = chsc_determine_channel_path_desc(chpid, 0, 0, 0, 0, scpd_area);
688 if (ret) 689 if (ret)
@@ -690,7 +691,7 @@ int chsc_determine_base_channel_path_desc(struct chp_id chpid,
690 chsc_resp = (void *)&scpd_area->response; 691 chsc_resp = (void *)&scpd_area->response;
691 memcpy(desc, &chsc_resp->data, sizeof(*desc)); 692 memcpy(desc, &chsc_resp->data, sizeof(*desc));
692out: 693out:
693 spin_unlock_irq(&chsc_page_lock); 694 spin_unlock_irqrestore(&chsc_page_lock, flags);
694 return ret; 695 return ret;
695} 696}
696 697
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 5e1235c6aba0..771576bb2928 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -1030,7 +1030,16 @@ subsys_initcall_sync(channel_subsystem_init_sync);
1030 1030
1031void channel_subsystem_reinit(void) 1031void channel_subsystem_reinit(void)
1032{ 1032{
1033 struct channel_path *chp;
1034 struct chp_id chpid;
1035
1033 chsc_enable_facility(CHSC_SDA_OC_MSS); 1036 chsc_enable_facility(CHSC_SDA_OC_MSS);
1037 chp_id_for_each(&chpid) {
1038 chp = chpid_to_chp(chpid);
1039 if (!chp)
1040 continue;
1041 chsc_determine_base_channel_path_desc(chpid, &chp->desc);
1042 }
1034} 1043}
1035 1044
1036#ifdef CONFIG_PROC_FS 1045#ifdef CONFIG_PROC_FS