Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2201897rdh; Tue, 26 Sep 2023 16:17:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGJZo11hPo+I79na+c+TNFMEUk0vOOkjZbuGfZpyA4r47ccOosdpenpf3/D3ll7naXtl6f X-Received: by 2002:a17:902:e88b:b0:1c0:bcbc:d66 with SMTP id w11-20020a170902e88b00b001c0bcbc0d66mr738346plg.7.1695770274834; Tue, 26 Sep 2023 16:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695770274; cv=none; d=google.com; s=arc-20160816; b=SfbEQ8WBG0NPYyK++aC0jDJkfte0FhlNtwQOBxPwkROE0MtNOkIfxkL72meUfL+xgs GI08hGzt8rx7dWu+mMSwdp+BuUmdvRl19y/nnaZcVQ2eT+cjl4XEh/eq3iAOSgYVxuGO 7tpvhedPKcLecMDOrNzPKJaztiMcKfpmV4MoPEQ0fJtwxr6b1E+PV30G7NuC3p0Hdlwo b963SJSiPhmG+5qlvpmV7FXYz2C+R5KYgi+zs+hBi+SDudF4vL2bWjLS2D25AL63692D XZ2elC9TmDOL6zc3KQ4ugZfoIMp9kJMg1+UbwX2u93i248tAE6xitaEJWIGqgt2COS0U dRDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nyvRRRo3SO7iou6uyHr6OouJiZ33lwO+YcCBwoIC2eQ=; fh=weJNFk4nPJgfZSlbMh7Mn0u84ZSCnS7cqmE7/6qiyxs=; b=kP428Uv/iAgOt5PqoA9U1fYvy7kgEA2oE/4LGwpZp0/mWGjCcf9yvbQmoTH/mWEVDw 6Jn2PcTMQtURHTXE6kw+6E/9p7U3RNrmpH93/0VD9zFlJwbqdgivuJpUYuS1zChjx7Ne ucM61uEwgNmUUS6VwbRoD1km+UuvX5ZLtUAnfwt4uplFRPMqKvg9XUft3nISC1wnF18r kgdqHn56NtHUsGoZdtJqKhjKyRaO+e3msBT73tDWlj4O+xcqK9EG4+5sKx5QYJ8EaLEB OF24V2Q/2opJcNnGPs+aDaSsYvUAS4xYnAlLe5V9m8zyPsSPOCssPVkSF0wGPna7BnDO HHEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=beO7wNaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e17-20020a17090301d100b001c0953d0055si14643800plh.262.2023.09.26.16.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 16:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=beO7wNaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 25D9781B212C; Tue, 26 Sep 2023 08:28:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235034AbjIZP25 (ORCPT + 99 others); Tue, 26 Sep 2023 11:28:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235008AbjIZP24 (ORCPT ); Tue, 26 Sep 2023 11:28:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9C6410A; Tue, 26 Sep 2023 08:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695742129; x=1727278129; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Azqz3iO0NkVsfqO6YJVLja8AjJSSDwK3vxTeudwyf+o=; b=beO7wNaVv9z565a3R6IR26p6pp2pHUye3LkEZfNewZPn/umST9Wqi7eM ne3AhJDOndWXvWOgl/CFtq02cC3fmgY63BzG0Dsy/MrA5VrQVhvmhqImy v/mQBrBy3zOoTFmDMyibCQGrna+S9OjPfI67snaPwVf8qgNr+jP1ZCA1j w10sRa5t8X5CXrxE78u5q5kR6daPB57kL+fqsRzIhHpM3DdUA/p7XHT5Z LNNrNOUXJbgo7e2rOQKIibjaURCrvpYiDwIA8R6cWD+VBXEFiLcDJfhN3 cTlnFp9VluZaXmCKt8nix+DRhKTiOne4fQuMXdUwkMmWynhVXrVE+UAwS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="371925709" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="371925709" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:28:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="864439912" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="864439912" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:28:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1ql9zB-00000000eMJ-3BsD; Tue, 26 Sep 2023 18:28:29 +0300 Date: Tue, 26 Sep 2023 18:28:29 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Mika Westerberg , Linus Walleij , Daniel Scally , Hans de Goede , Mark Gross , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFT PATCH 0/4] platform/x86: int3472: don't use gpiod_toggle_active_low() Message-ID: References: <20230926145943.42814-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926145943.42814-1-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 08:28:56 -0700 (PDT) On Tue, Sep 26, 2023 at 04:59:39PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > gpiod_toggle_active_low() is a badly designed API that should have never > been used elsewhere then in the MMC code. And even there we should find > a better solution. > > Replace the uses of it in the int3472 driver with the good old temporary > lookup table trick. This is not very pretty either but it's the lesser > evil. Good jon! I have only style issues, otherwise Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko