Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp472702yba; Wed, 15 May 2019 04:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR88eZ/GtlyBRLwESsuUX7xJLvvDnJ0aQutLaos2oUncRuRNB85qbpsl+27N6VsPXd+yTB X-Received: by 2002:a63:1460:: with SMTP id 32mr43809449pgu.319.1557920717601; Wed, 15 May 2019 04:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920717; cv=none; d=google.com; s=arc-20160816; b=sDs0xNylUJ8WPI1gU68cI4gknyzOrh+PjnlkUx9BQeXjW5oEl9Mv2txXxYyoADCXfZ vYFkRQqwpLAtq2YCNyAgGCw8W2y8gZXaS2WCZameh6adktJzNXYPWptP0pBgZSOCE0ZS 2Ohe7H9G3TMWmtzdbIIT4U6fyKvRqWzPVKvU2dQOF0h+N5D0tvh6AS3khvWCxgdWdgYW T4JUn/ayvUyTvKgVhORkHA2bL+nczZR0I1KNqlUidARw36G0t7IxeTXeCQGdx9sNbejj SjB8y2uLaLicd/Gw0AUzKBtRtcWvXNjuLMvWkLwXBBC9BGy1ZNDhfXun+OgopBHs5WBC mUpA== 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=C5QS9JxVs/pZfTCdgUbS+vJEN6wb3hh6/TY1AAw9e44=; b=QRRCfpj4FjVlp1JuPWB1/3emeimzKXmk6sKRrWiJVYvy+eJlpEyUplOKyRlkvns6bn FDlYj71SPMNcxHDuErLFuK2lO41nhalIl9hJs8zHSuo3U5zBTK+MdbjBajPlAJ/HjODA qF39i81xX0j/NWYhy8IXNPchWFUV7fKorv+4bmiFuS+NHNiEvOYS3VAljUmVvqO5Pezf 7yKEkVX1mAApNckPLp27RRddd1Oyo6YUKKx/XowAFbRwOobfmu/FbLGcVEZHqAkvGEHL 6LvNIYs0VdcXKqx0ubPq37XvKLcyf0dIzdqJ0g1TUDHL9FZ5KxFXxAnrrsuqKw8oS3Zs vzvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dzC8uRnl; 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 a69si1549403pla.178.2019.05.15.04.45.02; Wed, 15 May 2019 04:45:17 -0700 (PDT) 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=dzC8uRnl; 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 S1731741AbfEOL07 (ORCPT + 99 others); Wed, 15 May 2019 07:26:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:37804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730953AbfEOL0z (ORCPT ); Wed, 15 May 2019 07:26:55 -0400 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 839F820843; Wed, 15 May 2019 11:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919615; bh=Rw5aZz2Yzs6QVR9aXm4MlXZDJk78bhm1T0dAQyRCfG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dzC8uRnlOIQRiP2/byw3Mk0gC89TbGMQFwFjJ2dtAs20PKTNcAQ10DDp1O3WH0CeY OAkhV3MlSbe+nBf0nQpoxAg9MoGsnf9kdwdyevZEx/kITtSkQKvru6cxcbMkmBzU/W QN4GqXSi0y0KUVI+iwLKBpqnwMjReWhGAvBUIZ88= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pepijn de Vos , Mario Limonciello , =?UTF-8?q?Pali=20Roh=C3=A1r?= , "Darren Hart (VMware)" Subject: [PATCH 5.0 004/137] platform/x86: dell-laptop: fix rfkill functionality Date: Wed, 15 May 2019 12:54:45 +0200 Message-Id: <20190515090652.501909486@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@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: Mario Limonciello commit 6cc13c28da5beee0f706db6450e190709700b34a upstream. When converting the driver two arguments were transposed leading to rfkill not working. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=201427 Reported-by: Pepijn de Vos Fixes: 549b49 ("platform/x86: dell-smbios: Introduce dispatcher for SMM calls") Signed-off-by: Mario Limonciello Acked-by: Pali Rohár Cc: # 4.14.x Signed-off-by: Darren Hart (VMware) Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/dell-laptop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -531,7 +531,7 @@ static void dell_rfkill_query(struct rfk return; } - dell_fill_request(&buffer, 0, 0x2, 0, 0); + dell_fill_request(&buffer, 0x2, 0, 0, 0); ret = dell_send_request(&buffer, CLASS_INFO, SELECT_RFKILL); hwswitch = buffer.output[1]; @@ -562,7 +562,7 @@ static int dell_debugfs_show(struct seq_ return ret; status = buffer.output[1]; - dell_fill_request(&buffer, 0, 0x2, 0, 0); + dell_fill_request(&buffer, 0x2, 0, 0, 0); hwswitch_ret = dell_send_request(&buffer, CLASS_INFO, SELECT_RFKILL); if (hwswitch_ret) return hwswitch_ret; @@ -647,7 +647,7 @@ static void dell_update_rfkill(struct wo if (ret != 0) return; - dell_fill_request(&buffer, 0, 0x2, 0, 0); + dell_fill_request(&buffer, 0x2, 0, 0, 0); ret = dell_send_request(&buffer, CLASS_INFO, SELECT_RFKILL); if (ret == 0 && (status & BIT(0)))