Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3577821rdg; Tue, 17 Oct 2023 22:11:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjBAU82iiGQ/eOoobyZV7aZUBLuD82tE+JkHGLLlhewpdivLJl02P0/gh/AvZ+mulHCaq1 X-Received: by 2002:a05:6871:5222:b0:1e9:8e22:24c6 with SMTP id ht34-20020a056871522200b001e98e2224c6mr5336542oac.44.1697605878669; Tue, 17 Oct 2023 22:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697605878; cv=none; d=google.com; s=arc-20160816; b=VjV7PMAQkVveOIqF3BNHWafoyBtNLmA+YRs+/eju7Ln9wt53xVxvAZUERi2rMuihez F8II/qlJ+PL+VBWY/UUIMfygiq0ffTNCkv0gqbzZlJID3OLZIhV5KDEr2N7V772GcDkb saoPYLc1lBSFGoCdm7epPzhEcC7zIDkXD8wRC72AtsuCeaUHKqRoDUE+nfNO1w5ktf14 vobOQe0vYOfKBWPD98Ea8NaNa8CxyqR2NmlISzSe2hqb9n/uJakuGvqaUv63EHmgV/oT 0NMm6lBR1ZPFqCtAUAnTiZSaYjE6C2m37CDvTe4wy4PEv2kO9brkSVjpZUM02d5rqzoC av0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A2IZd+NVGT0lJfW0bQEevcRR2QlizUAhdXz9m9/Kc1o=; fh=W9Apx1mxfI4Sn4Tfu/ApINr5FKslMaF8Hy7vCgvNWsQ=; b=M6r54LIB+xijfR2XYLSCMCsPE4nYaBmy8/BRlawhkm/+Ls2vXZfLvpqU44pO3/g8Gv R9STo0cszZqVElCguSm7ulbjVHttzih9JUKVbvoHzkGiptqpOd7tSFrCw1V7VjL6BtS3 +1ZjVmVVmRXsLkVrH7tAVsq0EICnsf8IJhfA4ZASuZC4cProR5snAQ2biPeiTe6umF6a PIWq3SRlhaS8PQ9jto85mczI3qdR5c+enrxFkqhKz3z24dOxHDfom4aOKav5u8YYduMl et7sBgaa7sWWkArw4ENUVc1SjBGOnnP8fqGAJ24pRUwnaUpjQeT+ZFLmyVg7dfaYtriI g3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KLeApTb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e2-20020a656782000000b00573fdbc93c0si1408412pgr.892.2023.10.17.22.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 22:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KLeApTb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 77E628145968; Tue, 17 Oct 2023 22:11:16 -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 S229606AbjJRFLL (ORCPT + 99 others); Wed, 18 Oct 2023 01:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjJRFLJ (ORCPT ); Wed, 18 Oct 2023 01:11:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C48C6 for ; Tue, 17 Oct 2023 22:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697605863; x=1729141863; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=z7l4GsviViNEBuJ4IMZVmWkLqK9g+LDQfyA0te/LnCI=; b=KLeApTb+HeVhET07mRBS0H9aAD+FjaHmCrI91UjevG/dQItzZP3mXPsF 6Pa9vEmgTEiOabuxKw2GbgyCdLKm24SPO1WZ3ehkhuJJjBRNUz7BZfWUM m39oqjaiDAp303JrNyxaDxbHJOzEqW2SVWvpGwbikXW/xmW26DQIMv2zi 5aeNPtzZnLTwjDOPGSjrUpZrOi+MJRXNrIYd14gGC32emsrNYRSo38qnh d7UI44HiO+X8/grZzDf6+coc14sQGlF/hxAV0tqMMkP0Ck9UUSnua20EI KddfPpjMLRyxN0X6zuZTfZEVfqQ6RpHr/JdiluFcfmxPYk3Ruai1tBoXY A==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="389815360" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="389815360" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 22:11:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="900180602" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="900180602" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 17 Oct 2023 22:08:56 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 7BCB4130; Wed, 18 Oct 2023 08:10:58 +0300 (EEST) From: Andy Shevchenko To: Jani Nikula , Andy Shevchenko , 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 , Hans de Goede Subject: [rft, PATCH v1 0/2] drm/i915/dsi: An attempt to get rid of IOSF GPIO on VLV Date: Wed, 18 Oct 2023 08:10:50 +0300 Message-Id: <20231018051052.1328852-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, 17 Oct 2023 22:11:16 -0700 (PDT) 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. An 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? Andy Shevchenko (2): drm/i915/dsi: Extract common soc_gpio_exec() helper drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 150 +++++++------------ 1 file changed, 58 insertions(+), 92 deletions(-) -- 2.40.0.1.gaa8946217a0b