From patchwork Thu Nov 5 14:45:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320633 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp509662ilc; Thu, 5 Nov 2020 06:52:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA6jhhc25hG7+40M5hpm78x1M1Hjht/LMQNBSxGOxkgW5PiaRu/juIPa/P5hWrg4dNblGG X-Received: by 2002:a17:90a:fb90:: with SMTP id cp16mr2746423pjb.232.1604587959162; Thu, 05 Nov 2020 06:52:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604587959; cv=none; d=google.com; s=arc-20160816; b=uwpJhcuDuA5c/KaZb7vvscdweATBG8VAPhbA2yBITm+yyut8ibj0i1sej4Wm5z4ofd C6Uw98qvGGyDFAMlOaJtt9fJ2as7Qvn1oazy2OR1reuHhdxghY5FXCJIuATIgWL4K3h5 vFxpHvzF+h7HHWB1cGJ/GyA8bzSPK4b/T/s6Zkvn/OWry2iLrHwcSj/JCSqV9/95ndkF DpdExMJMfqmQyqTJ7P92ahX3f0aLnqtn58nO1A2pRfXlQmWqXPwTeIdVYS034cOZ/gF9 gH8dH35SuyskdvoSYkmPxu4zVCplfX1WrE4PelvYg8BtcSMnKzh9n/8alNDYx6h8beUW Ya+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=lzAZro4PTV5bAveIvr3EbvHTz/W+E82YqB0mf7wxm80=; b=ZGq3Olo4O091sf9QlxCPqyeQku9nzKBQU/rbymdYnCkeCUjciZ0fUZxIKCasybsaYU OTnHIjLW4amlwoq/cncccclNwLOePnDQXh3YimbpiABB+bYMAetrgPkJFs9jhzOgkFVp gDPO1axwf1Ey7WFgSIHyc9GHw1ZVGfLApFufyXu7ZLzgySZvqUtxUfSWm12/pqeX9yQR jmOYiBOLSRAcQ2Cp2FpXOeMqbNsT3YnqDetmLWmQpgy1rXFvJSkQPJLhYP9J/fn+erLR Py1yniRDrSc3DeH0LWiH6UqY1pGgwsAkLMfpqUSlTrUUvXTfHLej+/A/m4Unn5E9deQ5 tz7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GMWyFQ8D; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id n1si1864609pfq.82.2020.11.05.06.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GMWyFQ8D; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F126B6ED9E; Thu, 5 Nov 2020 14:52:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id F05476ED9C for ; Thu, 5 Nov 2020 14:52:30 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id w1so2105157wrm.4 for ; Thu, 05 Nov 2020 06:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rDbLk2JBRogslz/zoVgvVt10s2+/czAleqnbZF2PqCo=; b=GMWyFQ8DSD9byB9lddD/NyUUDqnEAbCbwAp0QAL61+0zBB45uUHwL8q4EDB8BuAAPn LQ577k4iflbvlAV0dzpguwoJ66yfIQ/YL0JdHZsm228lZVGpFv9vCCtjKk0Uu4QgBGIY n31UkVlb0RTvBCsfV1BL3t72WjAUYYUAasCYzceDyKYsl51RKexB49kUHCpteFFyKmnx /1z7S6EQgCudi7WRWd8ZXIl7NCwoqHJ1LbAT/tABZGCvU2bOmnckTynv0+WMyKHoFMph 4fgVEyqsunNnBgJnRD9zNsJTwPCyrbL614n1ajhMjj52Q4uu5i6z3pq1NWixK4gt9xet KzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rDbLk2JBRogslz/zoVgvVt10s2+/czAleqnbZF2PqCo=; b=qUeQIXRTswOzs5u+7fSruBsVimy+i1sPmAPwswTXals+DqTHwBGp+tABg6dsn+Un/t Ht5xJRQKqjnd9JWCSdbJHTQ8UivQ+gI7w4UhYMWLQ0idz06U0qryEX+NgCBudutoO/8D wLuOcKNTBevLE/b/EujOVlKgMbTTzS8lWK6BL9PGAqWXp3ileDnwvXpxBOvK6CbrxRzt 0TM/3W4N7BjYDEAZ1181hMG7wDOZ/q8/ff+dj/5EhHROEuRCNCtMiENCj8gSSnJ03dJl j4i6nYIxbc/MQxB6onoc8lNG8m70o1uahB3XvkF2OZ1GJxGlu5K4/GWfkf8/gFuCR4sV IeDg== X-Gm-Message-State: AOAM5310Xlr/GXkZ2Uo/BFyBJhs1h4VuzpDWMmHWNsjUJEduhUA8VwUa JOthMZpAjoS03+CUfITlZKhReQ== X-Received: by 2002:adf:e94b:: with SMTP id m11mr3380925wrn.35.1604587949674; Thu, 05 Nov 2020 06:52:29 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id f5sm2631243wmh.16.2020.11.05.06.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/19] gpu: drm: bridge: analogix: analogix_dp_reg: Remove unused function 'analogix_dp_write_byte_to_dpcd' Date: Thu, 5 Nov 2020 14:45:10 +0000 Message-Id: <20201105144517.1826692-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201105144517.1826692-1-lee.jones@linaro.org> References: <20201105144517.1826692-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jernej Skrabec , Jingoo Han , Jonas Karlman , David Airlie , Neil Armstrong , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrzej Hajda , Jason Yan , Laurent Pinchart , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:571:5: warning: no previous prototype for ‘analogix_dp_write_byte_to_dpcd’ [-Wmissing-prototypes] Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Cc: David Airlie Cc: Daniel Vetter Cc: Jason Yan Cc: Sam Ravnborg Cc: Jingoo Han Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../gpu/drm/bridge/analogix/analogix_dp_reg.c | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c index fafb4b492ea04..9ce45c757f8c8 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c @@ -568,50 +568,6 @@ static int analogix_dp_start_aux_transaction(struct analogix_dp_device *dp) return retval; } -int analogix_dp_write_byte_to_dpcd(struct analogix_dp_device *dp, - unsigned int reg_addr, - unsigned char data) -{ - u32 reg; - int i; - int retval; - - for (i = 0; i < 3; i++) { - /* Clear AUX CH data buffer */ - reg = BUF_CLR; - writel(reg, dp->reg_base + ANALOGIX_DP_BUFFER_DATA_CTL); - - /* Select DPCD device address */ - reg = AUX_ADDR_7_0(reg_addr); - writel(reg, dp->reg_base + ANALOGIX_DP_AUX_ADDR_7_0); - reg = AUX_ADDR_15_8(reg_addr); - writel(reg, dp->reg_base + ANALOGIX_DP_AUX_ADDR_15_8); - reg = AUX_ADDR_19_16(reg_addr); - writel(reg, dp->reg_base + ANALOGIX_DP_AUX_ADDR_19_16); - - /* Write data buffer */ - reg = (unsigned int)data; - writel(reg, dp->reg_base + ANALOGIX_DP_BUF_DATA_0); - - /* - * Set DisplayPort transaction and write 1 byte - * If bit 3 is 1, DisplayPort transaction. - * If Bit 3 is 0, I2C transaction. - */ - reg = AUX_TX_COMM_DP_TRANSACTION | AUX_TX_COMM_WRITE; - writel(reg, dp->reg_base + ANALOGIX_DP_AUX_CH_CTL_1); - - /* Start AUX transaction */ - retval = analogix_dp_start_aux_transaction(dp); - if (retval == 0) - break; - - dev_dbg(dp->dev, "%s: Aux Transaction fail!\n", __func__); - } - - return retval; -} - void analogix_dp_set_link_bandwidth(struct analogix_dp_device *dp, u32 bwtype) { u32 reg;