Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5460143rwb; Mon, 8 Aug 2022 20:28:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XsJtOpm9RydU6xZKw+zomxDOmWyuKEvgMbRLdgtxKpdS+cECSETrC45VlOmiJZGlwgGM6 X-Received: by 2002:aa7:df88:0:b0:43d:3ac0:a33a with SMTP id b8-20020aa7df88000000b0043d3ac0a33amr19548307edy.157.1660015705296; Mon, 08 Aug 2022 20:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660015705; cv=none; d=google.com; s=arc-20160816; b=me8ftrU5Pi2NS9d0WswCTUNrfwqAg7nGL69HcgaMpaMGNs1h+wkHhyje3UKAhjDHwz yIIltZXwPwETKwF4k47ecAc9Qwa6qp9fegYUh3tauILu0++NFIy2y0iccfCH8e8i0Aq0 NFqbNIqpFYK7NG6SJUaDwMG3UqtDFhof4Xk1p77GZ5+zzfM+lpMhCm4PBcJsZueJBT+A WGKa4yL45ugoXKcbEskYFW9T2pE2CV7K+TsvPv/krJHLFiHZu5g64aDcRKE18dX1TEOe n7a/1RQE/Iku8Qs9GVZjgo6LCYFjTBaxCtgta43jSNElg35ahpgqyYpexeipGPi2Sm+P 17pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:feedback-id:dkim-signature:dkim-signature; bh=Na1XoX1/plBEkZMRkmfcwe6ezbcEqTuiz3RXzc8G/lo=; b=09b/jrCuf7XDOs9MIHYxZrGdCqQwDNXhyRGszMMqSTvfn+EDKFkvgSD+5ShrOaRf9/ Dx0Z8EF+doE1aVi510jPE9aGKS+qpq2O6mwFXOYdbB6DpCCo4FP4a4ZFyn9VfDvjmh8C md8YiNXntxeGhVDDbCMCFYubt7R6kA9cAhjFaphp7enFVkJCRmzre7qV/upwqhnrDwyS kVqIGJ6yui1D8UNtT4gkK8VWC8+/aVchfr9J1CbpscjDqJYYboGqYVJui6Pao7CEYnW7 0Mg/NqjHup+6XNSWEb5spO0VpK1JuzOLs32nmE0s2axFDOVpGqoHU3LisjwWEGbXl7sh DpXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm2 header.b=dahsuqSR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=geIR+6yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg2-20020a1709072cc200b0070397358bcbsi1168953ejc.33.2022.08.08.20.27.59; Mon, 08 Aug 2022 20:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm2 header.b=dahsuqSR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=geIR+6yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233122AbiHID1C (ORCPT + 99 others); Mon, 8 Aug 2022 23:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233913AbiHID07 (ORCPT ); Mon, 8 Aug 2022 23:26:59 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E64D1D0EC; Mon, 8 Aug 2022 20:26:58 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7162F5C00DC; Mon, 8 Aug 2022 23:26:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 08 Aug 2022 23:26:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1660015617; x=1660102017; bh=Na1XoX1/pl BEkZMRkmfcwe6ezbcEqTuiz3RXzc8G/lo=; b=dahsuqSRcsgQlzXC4GXJeOIzRM MbXenQKtGPgGRs4sLNMzJlhdveSh212ppuOi2+RuspySiTUu4luk2Ff7l93ri/n/ 3pivHsyiuwQW4FUDxMl9bnWaIe+VZGye1BZe4B8XtJ2cEXiekzP7rU8a1oWwAYmW 1Lqr1iM/OzuDRdLDFUfmYB5XRucOz9lfZxSy82to7QgurdPs4WBHRxl+JttZPa72 e6jUDnxVmELoH+YFv+Wkv4tpSZsBNxXXVQwfppLSAzNwU9060/w/c1R08LG9rsYU HYNHJQW3TrdyQtd7Ifen2vr9VntYfleQZe2FzquqBx4W4M5K95qQehoqio3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660015617; x=1660102017; bh=Na1XoX1/plBEkZMRkmfcwe6ezbcE qTuiz3RXzc8G/lo=; b=geIR+6yznXYUBqDt2RJImro+xBsTJPP5Vf7XF1Aw2vkJ FMP+U9jE9VSxGGP/qIgjMSO3zXJSXxBvpCJ03aJD8PoYK574KeBcwFp18Zd4t85C p2TdI0I1OudbO/OWHwibSLLKNTpefwuSCpM9K9Oxh5YfXcUraQIxD41lhbiiVbRD j3nOMACr6MeDUDSbby3A6b1+KOZyzKCGqb0qtMBk8qeYUfg/Fm9dWB5Wp8WCR6Lx Uvix9YlYvbF3OKFfhmcSJmP2qmt6XeWD4m8qeYuG2njku2oC5rsQTCtR6BpypgFL OUivVHdN3osvPREHUT2oUhNQzPp8uo7PQLRXGE6lMw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdefledgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhuffvvefkjghfofggtgesthdtredtredtvdenucfhrhhomhepnfhukhgv ucflohhnvghsuceolhhukhgvsehljhhonhgvshdruggvvheqnecuggftrfgrthhtvghrnh epvddvgeeltdehfeeijefgveegfeeihfdtveetfeetudfhvedtfeeltefhteegledunecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhukhgvse hljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Aug 2022 23:26:52 -0400 (EDT) Date: Tue, 09 Aug 2022 15:26:39 +1200 From: Luke Jones Subject: Re: [PATCH v2 2/2] asus-wmi: Add support for ROG X13 tablet mode To: Andy Shevchenko Cc: Hans de Goede , Mark Gross , Platform Driver , Linux Kernel Mailing List Message-Id: In-Reply-To: References: <20220808031132.10075-1-luke@ljones.dev> <20220808031132.10075-3-luke@ljones.dev> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, > >> - { KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip >> action */ >> + { KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */ > > Have maintainers asked you about this? Otherwise it is irrelevant > change. > Fixed > ... > >> + pr_err("This device has lid-flip-rog quirk >> but got ENODEV checking it. This is a bug."); > > dev_err() ? Okay, changed here and in previous patch to match it. So that I'm clearer on dev_err(), this doesn't do something like exit the module does it? It's just a more detailed error print? > >> +static void lid_flip_rog_tablet_mode_get_state(struct asus_wmi >> *asus) >> +{ >> + int result = asus_wmi_get_devstate_simple(asus, >> ASUS_WMI_DEVID_LID_FLIP_ROG); >> + >> + if (result >= 0) { > > First of all, it's better to decouple assignment and definition, and > move assignment closer to its user. This is usual pattern. > I don't fully understand why you would want the separation given how short these two blocks are (I'll change in this and previous patch of course, I just don't personally understand it). Cheers, Luke. >