Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3140980rdb; Thu, 16 Nov 2023 00:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfPnpRQFaw5gd+o4U1a4zBfOvjFlmippMLPEYNBP6HpBECnRveO+vXEMLw/xiDI/gb9Cf0 X-Received: by 2002:a17:903:188:b0:1cc:636f:f37c with SMTP id z8-20020a170903018800b001cc636ff37cmr8098829plg.13.1700125111299; Thu, 16 Nov 2023 00:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700125111; cv=none; d=google.com; s=arc-20160816; b=RPqc1Gq01/gprwAgVe8aoyEsxiRoo8xLxxP0jiLmRGzJjG0DHEfr3qnmGvwgCsobzX /+MmWloViy+INmZCEC2ftkK5RIIy6n0o4V5fGzjB92tLzoxG41ftoVTznrAM38dPy5yN 94+NvObykn850FoOFWfXMsdNYYKK2DwoCGzLE25u/r29zgPgN/3FZCFP1bYre51ACcRf 9jqfwRNFFJqLE2iVxN6C2NtCo8A4uzYy1L+n8NW9uMuhmEw1RZY/a7CfgHGwAfX5GM/A F825nOanl4adQJ89ylNSV1O2gBbTVWOL28k6zbOKEIeZiJFf4VWe8rTJlAvN74uFVcfo Yj3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lzR95smyeeh/FiV11pRQQl93svK/jp4ut938ur2cfQs=; fh=8EJBqU/wO64omHW2BiMoiJUaZ+zeUu+VKt0OGa5u3ao=; b=xLHQhnY5mmLA2yL3Hd1hEPBAlpUhgfrTQAUJF9HCr41Wc4CFXOtvx4FjukPoTrpeWM o8gR+My8hW7fIWmLp3QXg3ee6RddHuCR9IdeVaEAfN6g62Ia8uzaYItnA/GibIrCnCBZ EqhuwQZK6/LZZygwfgzLNeb0ZNyyDHP/hUIFlUifdix6t+RD8eKgTeoGJsRLTcjPfbSK mM+TiVD285qxBn3u6ujuSXPK3G1MAupCF6b70oPI0g9l3mMryBAm10BQdkmGVNRoDZhX sNKjnu+UbN311OrNweRLtS3o1AcE3nTzwWu+7qQb2AxEjBG5n3g6v8R6J7dxC7KQw7EF 05lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E7VX5Y16; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d2-20020a170902cec200b001c07bac13d0si12123817plg.383.2023.11.16.00.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 00:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E7VX5Y16; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 985B68025DC7; Thu, 16 Nov 2023 00:58:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbjKPI6Q (ORCPT + 99 others); Thu, 16 Nov 2023 03:58:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjKPI6P (ORCPT ); Thu, 16 Nov 2023 03:58:15 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0740CA1 for ; Thu, 16 Nov 2023 00:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700125091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lzR95smyeeh/FiV11pRQQl93svK/jp4ut938ur2cfQs=; b=E7VX5Y16lWuy9+OZjcjepIinHnPyIAgtLkpUnhwqydD0ciKehLoDh1rQjOSrHbpunfYzOt c7TWcBqVno9/nTwBtL2Wd3R5wnz72ktdBiUTVw7De1sFURw/h+M8oJAmfl5iQhzpG/hIwj pdd1FN2bs8eMfe3mjNx/n+HinggweVc= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-218-mktYOBE6O8SM0vqJ2zonUA-1; Thu, 16 Nov 2023 03:58:09 -0500 X-MC-Unique: mktYOBE6O8SM0vqJ2zonUA-1 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-53dfe3af1b9so400676a12.1 for ; Thu, 16 Nov 2023 00:58:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700125088; x=1700729888; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lzR95smyeeh/FiV11pRQQl93svK/jp4ut938ur2cfQs=; b=ZBdykD6fpNMnz6plV+kRjk9+yhwp8nQqgVz0jRPn6ZF+IUrQToQ93MUfe6i3pK6T5d V3J1tSTITF7sqtBJ9EszD30mMgNSf2cm8zEgTuqn+6UNIZ6OjhsInYDEArjyW4jdoDDN ks02Fooi2Ga0v2m0cDiYfda+2nR6YnsPaMIqPQbinlWIf2XePVLdhQhBSNQPptdGHXCv uotrNbriCcGs8/YqZyOMXYZ9gJCYCuL7aqMzu8zxW3VZuyVDoOZv4N1a+Lt0WYOreJwX kVzz4puqYopMCe2BNJ2xijvskRR+4BgfgjNBCzwm1upCTlSQwVc96KTA2GCVMjM+cCCO xwXw== X-Gm-Message-State: AOJu0YyaBkv9oQKOQmlq94kwvrV0FPnbqFxVH8ZQwDrXp2H7+TsHZoYi +K6uuxKsO83sLmm7CgnBPCaod17MyhSlsmkyvZA1h+Kk8RjprSDloC+g8SIwiCvdUXg9Zx3kehn iaPzaLPrIeX7uYfLkDOZGYE2u X-Received: by 2002:aa7:d4c2:0:b0:543:9670:7ee8 with SMTP id t2-20020aa7d4c2000000b0054396707ee8mr11227124edr.14.1700125088222; Thu, 16 Nov 2023 00:58:08 -0800 (PST) X-Received: by 2002:aa7:d4c2:0:b0:543:9670:7ee8 with SMTP id t2-20020aa7d4c2000000b0054396707ee8mr11227112edr.14.1700125087921; Thu, 16 Nov 2023 00:58:07 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id v6-20020a056402174600b00530a9488623sm7474432edx.46.2023.11.16.00.58.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Nov 2023 00:58:07 -0800 (PST) Message-ID: Date: Thu, 16 Nov 2023 09:58:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [rft, PATCH v4 00/16] drm/i915/dsi: 4th attempt to get rid of IOSF GPIO To: Andy Shevchenko , Jani Nikula , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter References: <20231103201831.1037416-1-andriy.shevchenko@linux.intel.com> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20231103201831.1037416-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 00:58:28 -0800 (PST) Hi, On 11/3/23 21:18, Andy Shevchenko wrote: > DSI code for VBT has a set of ugly GPIO hacks, one of which is direct > talking to GPIO IP behind the actual driver's back. A second attempt > to fix that is here. > > If I understood correctly, my approach should work in the similar way as > the current IOSF GPIO. > > Hans, I believe you have some devices that use this piece of code, > is it possible to give a test run on (one of) them? Ok, this now has been testen on both a BYT and a CHT device which actually use GPIO controls in their MIPI sequences so this series is: Tested-by: Hans de Goede And the code of the entire series also looks good to me: Reviewed-by: Hans de Goede for the series. Regards, Hans > In v4: > - fixed compile time errors in patch 14 (Hans, LKP) > - fixed cover letter Subject > - added patch 15 (as suggested by Ville) > - added Ack tag (Jani) > > In v3: > - incorporated series by Jani > - incorporated couple of precursor patches by Hans > - added Rb tag for used to be first three patches (Andi) > - rebased on top of the above changes > - fixed indexing for multi-community devices, such as Cherry View > > In v2: > - added a few cleanup patches > - reworked to use dynamic GPIO lookup tables > - converted CHV as well > > Andy Shevchenko (9): > drm/i915/dsi: Replace while(1) with one with clear exit condition > drm/i915/dsi: Get rid of redundant 'else' > drm/i915/dsi: Replace check with a (missing) MIPI sequence name > drm/i915/dsi: Extract common soc_gpio_set_value() helper > drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back > drm/i915/dsi: Prepare soc_gpio_set_value() to distinguish GPIO > communities > drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back > drm/i915/dsi: Combine checks in mipi_exec_gpio() > drm/i915/iosf: Drop unused APIs > > Hans de Goede (2): > drm/i915/dsi: Remove GPIO lookup table at the end of > intel_dsi_vbt_gpio_init() > drm/i915/dsi: Fix wrong initial value for GPIOs in > bxt_gpio_set_value() > > Jani Nikula (5): > drm/i915/dsi: assume BXT gpio works for non-native GPIO > drm/i915/dsi: switch mipi_exec_gpio() from dev_priv to i915 > drm/i915/dsi: clarify GPIO exec sequence > drm/i915/dsi: rename platform specific *_exec_gpio() to > *_gpio_set_value() > drm/i915/dsi: bxt/icl GPIO set value do not need gpio source > > drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 355 +++++++------------ > drivers/gpu/drm/i915/vlv_sideband.c | 17 - > drivers/gpu/drm/i915/vlv_sideband.h | 3 - > 3 files changed, 136 insertions(+), 239 deletions(-) >