[PATCH 5/5] Use /sys/devices/lcs instead of /sys/devices/cu3088 (#561816).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The kernel change is in place and the cu3088 sysfs path is going away at
some point.  For CTC and LCS devices, we need to use the
/sys/devices/lcs path.
---
 loader/linuxrc.s390 |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 47a769f..6a8d2c2 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -607,7 +607,7 @@ function set_device_online() {
     local sysnettype
     case "${NETTYPE}" in
         qeth) sysnettype=${NETTYPE} ;;
-        lcs|ctc) sysnettype=cu3088 ;;
+        lcs|ctc) sysnettype=lcs ;;
     esac
     if ! [ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ]; then
         echo $"Sysfs path to set device online does not exist."
@@ -804,7 +804,7 @@ function rollback_config() {
             local sysnettype
             case "${NETTYPE}" in
                 qeth) sysnettype=${NETTYPE} ;;
-                lcs|ctc) sysnettype=cu3088 ;;
+                lcs|ctc) sysnettype=lcs ;;
             esac
             [ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ] && \
                 sysecho /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online "0"
@@ -1362,9 +1362,9 @@ function handle_subchannels() {
                 fi
                 ;;
             ctc|lcs)
-                if [ -f /sys/devices/cu3088/$SCH_R_DEVBUSID/type ]; then
+                if [ -f /sys/devices/lcs/$SCH_R_DEVBUSID/type ]; then
                     local type
-                    read type < /sys/devices/cu3088/$SCH_R_DEVBUSID/type
+                    read type < /sys/devices/lcs/$SCH_R_DEVBUSID/type
                     [ "$type" = "CTC/A" ] && \
                         type="channel-to-channel adapter (CTC/A)"
                     echo $"Detected: $type"
@@ -1721,7 +1721,7 @@ function syntax_check_ctcprot() {
 
 function handle_ctcprot() {
     [ -n "$CTCPROT" ] || return 0
-    if sysecho /sys/devices/cu3088/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then
+    if sysecho /sys/devices/lcs/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then
         return 0
     fi
     echo $"Could not configure CTC protocol $CTCPROT for $SUBCHANNELS"
@@ -1775,7 +1775,7 @@ function syntax_check_lcs_portno() {
 
 function handle_lcs_portno() {
     [ -n "$PORTNAME" ] || return 0
-    if sysecho /sys/devices/cu3088/$SCH_R_DEVBUSID/portno "$PORTNAME"; then
+    if sysecho /sys/devices/lcs/$SCH_R_DEVBUSID/portno "$PORTNAME"; then
         return 0
     fi
     echo $"Could not configure relative port number $PORTNAME for $SUBCHANNELS"
-- 
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux