Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8418144ybl; Thu, 16 Jan 2020 16:29:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwIs6weTO23tPny6PQkauFJCdBSAZeeupOSr73o/AJIebPWWnKAfaAu+LgvpkB91GIa/2tU X-Received: by 2002:aca:c08b:: with SMTP id q133mr1437607oif.46.1579220982025; Thu, 16 Jan 2020 16:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579220982; cv=none; d=google.com; s=arc-20160816; b=yI7+WrWA6+x2T6iStynLvVruhdyZgTQPlh8xJdZJhz9nHJZQ10Z5eqAojZhkBhuoeP +DDYZGaMqtE7TyrH9fhwbLlWuhDZsVNZiQOMgzqwPymPHIpJndGMTM1vfP6dRBzeFrJT wz5N0d5BMi3WxV+t93GBuTNJdNdw9ZSdnRGZhz03XQL6Ehvlu193MZ6WrTH9qQNXfQbD BCUNP9iYuySgTWvLN8fu86OfIrXiMspz+ERBnmdDFMXwhZxPtX6d8NobhtMO5DM+yUv6 AAHq6q+nGZvg6wG/SEvjjRCyTnUzrZ0XuRlMxTBtnukKFiMCuvddQGIKY8JiCmqyFozQ JDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7PAxXyuYIUJR8enzDAvRWEXdMTt61FmMbucN8s+MEas=; b=Wh6piPX7ORhiR+689UXf/k2byovCFu0YC4cx21PEbLzQlnBI9TOLuHhbIy/QlXVSm/ KDfcTM4JEip5rdvJB/rBUUF1UiqbxbkbFgd5jSYYd3cGSn8WCmemnC1ckakrvCbTpY3s 0EE3LFHweEdpXbLk/y8x+V4tqIvRFLf8akH0accIZsi0FttUoDJR/knwR2SJhDwB3NQi XcszLjGGRiL/JqxVeFS/hPdo2kU1rHrswC4XHYG8yaqsq811cBwc6ccLd2BvgikXNvIn yJYRuNMJ3m9BnX0gjooVUSlb4z5fPD7e6CP8sbcffC+JGaERRBkz9Hr6CznDFnppU6rc XFjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lfT57ydR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si12427727oig.88.2020.01.16.16.29.30; Thu, 16 Jan 2020 16:29:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lfT57ydR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389886AbgAPXVM (ORCPT + 99 others); Thu, 16 Jan 2020 18:21:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:48180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733270AbgAPXVK (ORCPT ); Thu, 16 Jan 2020 18:21:10 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8ACC2072B; Thu, 16 Jan 2020 23:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579216870; bh=iwbzRoMlWNxTx6ctffmQh4iUTa8eAHWNn/VOMT8iP6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfT57ydR/bUHwQb5Xh8XkyhsHcSIQOQjQsDVY/V6ghcfkynmMm6QN2X/qIOBbIMTv 82rKapmrHcaekyRLLuMxG85kCUDkZHnv6UB4C/4Az+2gdEx9sBczVLI62x/xQSrR1i cQhwZYEzFWsak5vjQ4tyUki3EtE6SApbQbLbXNB4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Wiedmann , "David S. Miller" Subject: [PATCH 5.4 037/203] s390/qeth: fix initialization on old HW Date: Fri, 17 Jan 2020 00:15:54 +0100 Message-Id: <20200116231747.356660900@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julian Wiedmann commit 0b698c838e84149b690c7e979f78cccb6f8aa4b9 upstream. I stumbled over an old OSA model that claims to support DIAG_ASSIST, but then rejects the cmd to query its DIAG capabilities. In the old code this was ok, as the returned raw error code was > 0. Now that we translate the raw codes to errnos, the "rc < 0" causes us to fail the initialization of the device. The fix is trivial: don't bail out when the DIAG query fails. Such an error is not critical, we can still use the device (with a slightly reduced set of features). Fixes: 742d4d40831d ("s390/qeth: convert remaining legacy cmd callbacks") Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/s390/net/qeth_core_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -4968,10 +4968,8 @@ retriable: } if (qeth_adp_supported(card, IPA_SETADP_SET_DIAG_ASSIST)) { rc = qeth_query_setdiagass(card); - if (rc < 0) { + if (rc) QETH_CARD_TEXT_(card, 2, "8err%d", rc); - goto out; - } } return 0; out: