aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chsc.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-08-28 10:47:02 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 09:44:59 -0400
commit40ff4cc06697e8ba3f8ce93b0592ddbcf70cd444 (patch)
treefde6248c494240b4fbbc449bb3ddd1025ad099f9 /drivers/s390/cio/chsc.c
parent1d1c8f78bed5f8e769757525bd9c2dec69f11a44 (diff)
s390: add scm notification
Detect an scm change notification in store event information. Update affected scm devices and notify their drivers. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc.c')
-rw-r--r--drivers/s390/cio/chsc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index 121865385c05..4d51a7c4eb8b 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -398,6 +398,20 @@ static void chsc_process_sei_chp_config(struct chsc_sei_area *sei_area)
398 } 398 }
399} 399}
400 400
401static void chsc_process_sei_scm_change(struct chsc_sei_area *sei_area)
402{
403 int ret;
404
405 CIO_CRW_EVENT(4, "chsc: scm change notification\n");
406 if (sei_area->rs != 7)
407 return;
408
409 ret = scm_update_information();
410 if (ret)
411 CIO_CRW_EVENT(0, "chsc: updating change notification"
412 " failed (rc=%d).\n", ret);
413}
414
401static void chsc_process_sei(struct chsc_sei_area *sei_area) 415static void chsc_process_sei(struct chsc_sei_area *sei_area)
402{ 416{
403 /* Check if we might have lost some information. */ 417 /* Check if we might have lost some information. */
@@ -419,6 +433,9 @@ static void chsc_process_sei(struct chsc_sei_area *sei_area)
419 case 8: /* channel-path-configuration notification */ 433 case 8: /* channel-path-configuration notification */
420 chsc_process_sei_chp_config(sei_area); 434 chsc_process_sei_chp_config(sei_area);
421 break; 435 break;
436 case 12: /* scm change notification */
437 chsc_process_sei_scm_change(sei_area);
438 break;
422 default: /* other stuff */ 439 default: /* other stuff */
423 CIO_CRW_EVENT(4, "chsc: unhandled sei content code %d\n", 440 CIO_CRW_EVENT(4, "chsc: unhandled sei content code %d\n",
424 sei_area->cc); 441 sei_area->cc);