Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp480122rwl; Thu, 30 Mar 2023 20:06:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCQ3zeSb1L6wILsNwWEGSByNs05lYOC1Xo7AXt4pyh2gXyJlDBLglSY4jbLhrSMHu73sY7 X-Received: by 2002:a05:6402:5107:b0:502:ffd:74a0 with SMTP id m7-20020a056402510700b005020ffd74a0mr4800466edd.2.1680231975438; Thu, 30 Mar 2023 20:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680231975; cv=none; d=google.com; s=arc-20160816; b=jnLirixYW9bIC9FO2KfQsBpH6IQuScKNroDvF4jfVrCi0aTL++oRPQ7ONwiLd2O1eA EIH8Tu5X8hR251JvhYu5gyn2MvGOs2Ub/bD8lwZGSazleS9OEnZU5K37xXiQ2KMK8Toh mrkg+5GuyLi+Pv2jfrUsXxmAZobiZM2WB5MgHC3fIop8hDwMJfQsrPLDgicn/sWBwGmn Y3X4xmMH205ta0irD8OcBpgnT0U2Ff4mA3uipD3z4fLIkHpcSwgYm2uX0ByKQGLjEF4n nKAazuld7pW0GL1gYbrRfLSxznomdKPMnKfDz+BUbKMcvGFY79teiKO95tc0KoLjHBQs GVXA== 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=tgWvZk/iYpzKLUB9q2hMoB7/A/zWlAyiQxZw3rH6JH8=; b=fkES558tTKBOZT4I+ZnUY1sNDuqRTLIvBvko0mSXuqZ7XMxfzFAmRlaZCS5pV/zKXy SrKBFCy6vY1ZG1UlYiEKaytN3PyI9Qj8gjOkSuvvfz7r7m6oHBkJrSqRE66BWsaBT919 d0G3RTFwngw92Fv2K4CkALpKl0Etg91JcJgsDEKSJBE8X7fj3uyN4i7msjJqyU5hTjZs 2UK4by/X2JV3GtUvTE2NcC3NQuUVPwg0QHDj9k6J0HN9ww4SWaQyGm9dm0h0suBgJyyj ZwzcIqCL+9C+kJ3k4mafn9oRt9HHXOmJti9T/Q3OgALgNA4mahevvp/3Q5BzFZPl6n28 lBew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nwdcz7Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020aa7d918000000b0049f1f3402f4si1130412edr.87.2023.03.30.20.05.50; Thu, 30 Mar 2023 20:06:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nwdcz7Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjCaDC3 (ORCPT + 99 others); Thu, 30 Mar 2023 23:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbjCaDC1 (ORCPT ); Thu, 30 Mar 2023 23:02:27 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3E0C18F85 for ; Thu, 30 Mar 2023 20:02:17 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so24022572pjt.2 for ; Thu, 30 Mar 2023 20:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680231737; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tgWvZk/iYpzKLUB9q2hMoB7/A/zWlAyiQxZw3rH6JH8=; b=nwdcz7JvfPrKuBBFQbSTVzhnbveNuT0oeykwisT1ina7IqUJiTRcjS2JroFUBNSsmy xC6i4I30tn1w9bVPBxXRrAq0+1KV8vSxunewLOqpms6By0zg2pdO+fvyJiIbv0tWauC7 379VgmdQeQw7CMx+2tJU3li4owlI9njsAI/fQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680231737; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tgWvZk/iYpzKLUB9q2hMoB7/A/zWlAyiQxZw3rH6JH8=; b=HMsLLO8M0ZzByEO04z2WPuDy4WmzvI2rrEWiobktGPmK7AUFIV92RLG3QLn1Z93dia FX17aW74lJZjSyzajhOuqJRL4kfB7rjF7+YjtiyHQ/jfEaRS3n6o7yxjIU/kSIS9o//+ doN1AnpbvpxetFlxIdWI5SYgUnwqKQrBvnwfe7K/WwINZIe+wc6L0zreePVfYalaWhC3 PrK7tH3tatHIxu6SJXy9rNZTGe0FmI5aB+laE70NUrW9YJLuZK0T8YFVYariqEOTDFWu 7B0wP0dqcfcQG5pnPnS22MSYu7h0LDzJgoAzSNW2kWqRJ3lyJ73caK6hDkM8Q8E8atTs J1ug== X-Gm-Message-State: AAQBX9ewuhWyKHCnIyb+hT/HxmyfhsXLR8N3W6qWb2SqvVwoNrbnFSbQ eeko1gC0Vt1v/mmvdl/qvlzLEg== X-Received: by 2002:a17:902:e812:b0:19c:e440:9256 with SMTP id u18-20020a170902e81200b0019ce4409256mr31915039plg.35.1680231737143; Thu, 30 Mar 2023 20:02:17 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:d07:95ff:f44a:71]) by smtp.gmail.com with ESMTPSA id b19-20020a170902d89300b001a072be70desm429750plz.41.2023.03.30.20.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 20:02:16 -0700 (PDT) From: Pin-yen Lin To: Douglas Anderson , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Daniel Vetter , David Airlie , Pin-yen Lin Subject: [PATCH] drm/bridge: ps8640: Use constant sleep time for polling hpd Date: Fri, 31 Mar 2023 11:02:04 +0800 Message-Id: <20230331030204.1179524-1-treapking@chromium.org> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default hpd_wait_us in panel_edp.c is 2 seconds. This makes the sleep time in the polling of _ps8640_wait_hpd_asserted become 200ms. Change it to a constant 20ms to speed up the function. Signed-off-by: Pin-yen Lin --- drivers/gpu/drm/bridge/parade-ps8640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c index b823e55650b1..c3eb45179405 100644 --- a/drivers/gpu/drm/bridge/parade-ps8640.c +++ b/drivers/gpu/drm/bridge/parade-ps8640.c @@ -184,7 +184,7 @@ static int _ps8640_wait_hpd_asserted(struct ps8640 *ps_bridge, unsigned long wai * actually connected to GPIO9). */ ret = regmap_read_poll_timeout(map, PAGE2_GPIO_H, status, - status & PS_GPIO9, wait_us / 10, wait_us); + status & PS_GPIO9, 20000, wait_us); /* * The first time we see HPD go high after a reset we delay an extra -- 2.40.0.348.gf938b09366-goog