Skip to content

Commit 2daace7

Browse files
Dong Jia ShiMartin Schwidefsky
authored andcommitted
s390: chp: handle CRW_ERC_INIT for channel-path status change
When channel path is identified as the report source code (RSC) of a CRW, and initialized (CRW_ERC_INIT) is recognized as the error recovery code (ERC) by the channel subsystem, it indicates a "path has come" event. Let's handle this case in chp_process_crw(). Reviewed-by: Sebastian Ott <[email protected]> Signed-off-by: Dong Jia Shi <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent b855629 commit 2daace7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/s390/cio/chp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ static void chp_process_crw(struct crw *crw0, struct crw *crw1,
559559
chpid.id = crw0->rsid;
560560
switch (crw0->erc) {
561561
case CRW_ERC_IPARM: /* Path has come. */
562+
case CRW_ERC_INIT:
562563
if (!chp_is_registered(chpid))
563564
chp_new(chpid);
564565
chsc_chp_online(chpid);

0 commit comments

Comments
 (0)