Commit 60e4dac1 authored by Peter Oberparleiter's avatar Peter Oberparleiter Committed by Martin Schwidefsky
Browse files

[S390] cio: fix repeat setting of cdev parent association

sch_create_and_recog_new_device() associates a parent subchannel
with its ccw device child even though this is already done by
the subsequently called io_subchannel_recog(). Also make sure
io_subchannel_recog() sets the association under lock.
Signed-off-by: default avatarPeter Oberparleiter <>
Signed-off-by: default avatarMartin Schwidefsky <>
parent 48e4c385
......@@ -888,9 +888,6 @@ static void sch_create_and_recog_new_device(struct subchannel *sch)
sch_set_cdev(sch, cdev);
/* Start recognition for the new ccw device. */
if (io_subchannel_recog(cdev, sch)) {
......@@ -1107,7 +1104,6 @@ io_subchannel_recog(struct ccw_device *cdev, struct subchannel *sch)
int rc;
struct ccw_device_private *priv;
sch_set_cdev(sch, cdev);
cdev->ccwlock = sch->lock;
/* Init private data. */
......@@ -1125,6 +1121,7 @@ io_subchannel_recog(struct ccw_device *cdev, struct subchannel *sch)
/* Start async. device sensing. */
sch_set_cdev(sch, cdev);
rc = ccw_device_recognition(cdev);
if (rc) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment