Received: by 10.223.185.116 with SMTP id b49csp2357234wrg; Thu, 22 Feb 2018 12:22:42 -0800 (PST) X-Google-Smtp-Source: AH8x225eQvQs+fuPmPhqPpfxFqE+Mj/C98NQ3EoVvOQgVTiXK1eqDWi2mas5Ny70QIL1ZeommcxE X-Received: by 10.99.112.77 with SMTP id a13mr6524504pgn.253.1519330961817; Thu, 22 Feb 2018 12:22:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519330961; cv=none; d=google.com; s=arc-20160816; b=kWxtlbI+H32Vai68U6NIxCdFJIWw+wGBDzG34PG6d2XwfEnNoG0SFin/b3/bfSI/nt qlXmnTSQTKw2vbBBPXfuL1MLH+slF+xRh/iofybxGWQ1vSJqMuS3Zbv9ndHT4dkvHvVB YvdOQOa4SgHymd7lZzQvNm8WFbeBPJBrI2TrOnK8xznTJKXT43/XtulfftdagYh3CJWv alVP57uWYTMDO4+Mt/fEANHUJnVjtggRof/zAboIT3Sk7vz5KywHYw9vxX7qsVptFxy8 n8qPFO3u/HHFsiTj97Aq1yQ+9jOz6JNhGeiC0fxWSoM3Rz+3OYqpkhvTELA3gYeXOnJ6 poIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=TS8usLbpP2Jo9Rg97J6C0GLKCQCy67BsxT/LW9cvAiY=; b=CCxFLHZu6JQDypRQKEwMDlvUunadxnXciqEja6jQHcB5WxGkUwrXqEOBeXaOVQI36H cI9cwmWcK9h/vOpm4AxGjoFc3+gJ6mcwLl/aH5F9sVzv3PdstXvZ0ChgbEnEykHUcNPc 9AvDazOAtEXaiIweTEGRC7gc3MinW5u2+h5657K9591EuNlQ+9efhAk2FcR/qXr8v8ae Fhxh43EFccPykRxavxLPWthWP5kB3NKXxoWhxTpB59sccBsxyhhvnSmn7MgPorApZkU7 5fhIlBbFDvowD7r/pJLs10Yr/aEIPIYBBt/4EXtga3/mIXVHeXsfpoYbmX90ijOVW7Zz H0/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DmpiUHeY; 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 y6si443260pgo.735.2018.02.22.12.22.26; Thu, 22 Feb 2018 12:22:41 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DmpiUHeY; 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 S1751302AbeBVUVp (ORCPT + 99 others); Thu, 22 Feb 2018 15:21:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:48554 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbeBVUVo (ORCPT ); Thu, 22 Feb 2018 15:21:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TS8usLbpP2Jo9Rg97J6C0GLKCQCy67BsxT/LW9cvAiY=; b=DmpiUHeYKu7lPYUb6i02PgVuX 8SqHPL9dqkTbPxZhl2V9Ske2fjT6LbkRmGXWMZtaqPhHXS1sn9efMRe1uNGIcQhB3IxSZiknZUcCt pTbTnAsffT+fO9vzw2c8sYqOgOdKHBpiCGqwsi4Vzl1ewouhudwhisLFs/6E299gZIL15KGOges6S NHp30JPi5/6VxGcBhDQQRa6tLfKgIuqoe660uzqjq/pVWHAva1rEE6Pc5j9mX49Szm/EVUJsxZpOC MU8Epn1YNILDH6yxZnOYzMlRAFDSghb946jcy6w6RnliKshq+mYPoWuPybLy32bLSeDKVX/9RE3Ao pkd12OV6w==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eoxN8-0000C6-Bv; Thu, 22 Feb 2018 20:21:42 +0000 Date: Thu, 22 Feb 2018 12:21:40 -0800 From: Darren Hart To: Jeremy Cline Cc: Mario Limonciello , Andy Shevchenko , LKML , platform-driver-x86@vger.kernel.org, Alex Hung Subject: Re: [PATCH] platform/x86: Only activate tablet mode switch on 2-in-1's Message-ID: <20180222202140.GF19843@fury> References: <1519329522-16919-1-git-send-email-mario.limonciello@dell.com> <01000161bf28670e-bfeaa576-853c-4760-a362-d6abdaa474f1-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01000161bf28670e-bfeaa576-853c-4760-a362-d6abdaa474f1-000000@email.amazonses.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 08:15:51PM +0000, Jeremy Cline wrote: > On Thu, Feb 22, 2018 at 01:58:42PM -0600, Mario Limonciello wrote: > > Some laptops such as the XPS 9360 support the intel-vbtn INT33D6 > > interface but don't initialize the bit that intel-vbtn uses to > > represent switching tablet mode. > > > > By running this only on real 2-in-1's it shouldn't cause false > > positives. > > > > Fixes: 30323fb6d5 ("Support tablet mode switch") > > Reported-by: Jeremy Cline > > Signed-off-by: Mario Limonciello > > --- > > Note: I also moved the code for detecting tablet into it's own > > function. To keep things under 80 lines with if statements was > > making the code very unreadable otherwise. > > ... > > Tested-by: Jeremy Cline Wow, incredible turn around time Mario and Jeremy. Doing some confirmation on my end, and will queue up to Fixes for 4.16 RC cycle. -- Darren Hart VMware Open Source Technology Center