From patchwork Tue Oct 24 15:57:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13435058 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E183C00A8F for ; Tue, 24 Oct 2023 16:09:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C50310E3FF; Tue, 24 Oct 2023 16:09:15 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id A18B410E3F7; Tue, 24 Oct 2023 16:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698163751; x=1729699751; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7jqqEWWBGXf6MxxYFo4aSwri3S4nhJtTigEXNG+6fpQ=; b=A+Yrb5uhKl0boBvn/aMXZs7qmeFiuAjKKNdTGlCnYKHwhdS8gxhCqPuj 1SfJbz/3WU29FWQrg2EWCQybRAhPSwwl3zKVb3N3ReOa4T8UW5DQ1FYDs TtgWRJ4KTsTUE5n8MC6Itx64RiHtjwd1UblVy4uZVwPvxdk44s5HbWTq2 STSGC9V0r0dyoNMc/qGLUUewwWTBX/gqtpCHd/4FsGFsVAWqQ+JIWzTJs RIEEn/2sDIEhG6niBfbpXME4kj0uzE/yeSyJci/H8Wx+C4NEG1Rsdpdzq QbdNM2YA9IjJp9uEu/yhxVA4FVBS+/faJy8XeehCL7SXOndRZG08ghXgj Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="473328727" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="473328727" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 08:57:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="708354961" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="708354961" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 24 Oct 2023 08:57:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id EC1F0195; Tue, 24 Oct 2023 18:57:41 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Jani Nikula , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Tue, 24 Oct 2023 18:57:32 +0300 Message-Id: <20231024155739.3861342-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Subject: [Intel-gfx] [rft, PATCH v2 0/7] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans de Goede , Daniel Vetter , Rodrigo Vivi , David Airlie Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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? In v2: - added a few cleanup patches - reworked to use dynamic GPIO lookup tables - converted CHV as well Andy Shevchenko (7): 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_exec() helper drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back drm/i915/iosf: Drop unused APIs drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 260 +++++++------------ drivers/gpu/drm/i915/vlv_sideband.c | 17 -- drivers/gpu/drm/i915/vlv_sideband.h | 3 - 3 files changed, 96 insertions(+), 184 deletions(-)