Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bc4e965 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky
Browse files

[S390] css: update subchannel descriptor



Update the subchannel descriptor if we receive a
"Installed parameters modified" crw.

Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 1de3447a
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -618,6 +618,7 @@ EXPORT_SYMBOL_GPL(css_schedule_reprobe);
static void css_process_crw(struct crw *crw0, struct crw *crw1, int overflow)
static void css_process_crw(struct crw *crw0, struct crw *crw1, int overflow)
{
{
	struct subchannel_id mchk_schid;
	struct subchannel_id mchk_schid;
	struct subchannel *sch;


	if (overflow) {
	if (overflow) {
		css_schedule_eval_all();
		css_schedule_eval_all();
@@ -637,6 +638,13 @@ static void css_process_crw(struct crw *crw0, struct crw *crw1, int overflow)
	if (crw1)
	if (crw1)
		mchk_schid.ssid = (crw1->rsid >> 4) & 3;
		mchk_schid.ssid = (crw1->rsid >> 4) & 3;


	if (crw0->erc == CRW_ERC_PMOD) {
		sch = get_subchannel_by_schid(mchk_schid);
		if (sch) {
			css_update_ssd_info(sch);
			put_device(&sch->dev);
		}
	}
	/*
	/*
	 * Since we are always presented with IPI in the CRW, we have to
	 * Since we are always presented with IPI in the CRW, we have to
	 * use stsch() to find out if the subchannel in question has come
	 * use stsch() to find out if the subchannel in question has come