Message ID | 20231024155739.3861342-1-andriy.shevchenko@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2049720vqx; Tue, 24 Oct 2023 09:09:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9NN7ejzKq8VZlRRpZ3Wmzt25n0ICngzLKqg+krvYXPp3hpG8BAm5pq+afYCpBdf7a1VeZ X-Received: by 2002:a17:902:dac9:b0:1c6:bb3:29e6 with SMTP id q9-20020a170902dac900b001c60bb329e6mr10915748plx.16.1698163783712; Tue, 24 Oct 2023 09:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698163783; cv=none; d=google.com; s=arc-20160816; b=OwNZY9kxOiUFcG3FD0qpda/xGU3CB1WbUnKXEimXVMNFcZMTTNOMfUeh3bF66aooHq Lg0gjXd28xYLwfJX9eS+pERX+uuTWLnF4erLsn3Q4K7f9CxK4J9TO508/9r1RRfb+NTE 83oA4v624nA+LJrwAFeVO4HyEEuL6boKDpVEKONDfGlfbBWduqbsLBqacvLR0jzDGd9S 1/1BlgJoSo3F/eQMgwN3NK5ny4lCwDdIC9xeHgIwD67r4zGmH4Ir6IViUQBzFQSJBz+z OcXDO7yIr+J7f6EyD7vBr3q9/0cPSzq5C5KvM8O1SsVwyi21p2I87zderTychj4TMzPS 37Ng== 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=daaCThUstQ6mJB2CZXjoERsr7N69WBg29+ncwwy5Hn8=; fh=4fCGr/vcT8BP5WO1Zwkta5BK+bnwH5aUY2dV04P1PeQ=; b=vJLukls5TJTHj4UQn0EjI06nLrq2Iu/cI/Wy+HTY+hmt3jou8UNaIkX0tCCSx7kgnT fY9ZUppEuHSCL6MCP3CC17AH7EBFEogoQ4iUQK5XXG5gg0n83cJKFO/LRw+Yari6BBzJ 88Ba0M0iTy+Xf86WJq+O+Gbf/fn+CCgyJ8ecB6ODFYQFX6VwWRvVTER4RuXWXp4UIEF7 RmxbgTUfpomNIrZ/lQY/SVGRAt1lCCYy5rHm43lAxAI45M0acqFklxBOYvrV/yhB2Fvy ARFCjPY/tElyA4THJjucXZQswkVxvr7AoXN7fcynzTHu27rSQ7IE956sg/q+yn4xXBkr EEHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A+Yrb5uh; 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bw22-20020a056a02049600b005b74e2e9d56si9271332pgb.385.2023.10.24.09.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 09:09:43 -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=A+Yrb5uh; 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 9494B8027F75; Tue, 24 Oct 2023 09:09:41 -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 S1344086AbjJXQJS (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Tue, 24 Oct 2023 12:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234937AbjJXQJN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Oct 2023 12:09:13 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E25AD7D for <linux-kernel@vger.kernel.org>; Tue, 24 Oct 2023 09:09:11 -0700 (PDT) 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="473328726" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="473328726" 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 <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jani Nikula <jani.nikula@linux.intel.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Hans de Goede <hdegoede@redhat.com> Subject: [rft, PATCH v2 0/7] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO 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 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: <linux-kernel.vger.kernel.org> 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, 24 Oct 2023 09:09:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780653787647102615 X-GMAIL-MSGID: 1780653787647102615 |
Series |
drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO
|
|
Message
Andy Shevchenko
Oct. 24, 2023, 3:57 p.m. UTC
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(-)