Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp285330img; Thu, 21 Mar 2019 20:32:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYqsV2SYGzsBPIXaq5iSQxXlNSgq5orR6jEfdLG82ifAP1AmHzoBhYK2YIJlhD0hgQNpeD X-Received: by 2002:a63:5415:: with SMTP id i21mr6728079pgb.106.1553225547724; Thu, 21 Mar 2019 20:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553225547; cv=none; d=google.com; s=arc-20160816; b=wqGaB1LlifaZFslQCy4DsYNC3Exofn5elNUafa2H+fGw7vbb1Hx9LO8MhdZm0pOLHi SKR5eEv8DoDDPnP/9E6IFPvOwVybauTsPSqcp7zox4j/IQUGEhxVpxGF8bsOpbzaUeYb QN7wJ5UPXIEPkxlo95oRwh8iQT5yUieIOy8e5itlPTJo+Tg2rhYhJxHMFKeaQjQ7eltN Uezn2fMXxDaIKaFYpj7tzLMKf/WUTZ3fwONFqB/a6uQ18cB4yANjWTjkvSRGA9XBiK1G mAUAzcorfGgf9iAWihh2/2xIrjsHn9S+IgaPVGmPE1FTPSI/YmzdcmK0er8dOz0BPBLF JPtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7PFJY4F1JUiusPvb41BXA5uI1ZQU6Bw5nPmkYpdoAqw=; b=f8WM3xZlO0HXlPq2RwIUWLayGkN2MvzxHtKR06C9aJHFb8nfpsToiDwxZ1cCbutu+Q BEJzMsfCaFNQYAvDR3b5GnLC639VyY3742JF9ym6ctfZz5R0XyCFZQvei/LUAb3PsL7k ClEQ8Eq7aDGRC+/y7ESpej65WrmxnbHpiJHv8tAwF14oJCL1Sj5QPeLnuVdxuthLrRbu p7cK+Zyryfa2pBDONX+3g4yGhRN45jrB+x+0bPzQ0vXH+KUY73a4vOYiKau1F0nsweLb Zmfa3dFa5XSgZuwElvJYS1QdPxNrZ/iUjHyU25l+a/WsZqVxABot82QGOirhKHMqhhP4 HNgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=beI7DWud; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si2027948pll.207.2019.03.21.20.32.13; Thu, 21 Mar 2019 20:32:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=beI7DWud; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbfCVD33 (ORCPT + 99 others); Thu, 21 Mar 2019 23:29:29 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33093 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727595AbfCVD30 (ORCPT ); Thu, 21 Mar 2019 23:29:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id i19so551096pfd.0 for ; Thu, 21 Mar 2019 20:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7PFJY4F1JUiusPvb41BXA5uI1ZQU6Bw5nPmkYpdoAqw=; b=beI7DWud71DA6lHK2sfCfBxEzaQkDTb+DKgOvFNOmDRvcg04uCeIC1LSzmImP9qmV1 FTax5uV2vwgp2AKc7mr/rRTyeoHkIOwYgQGHiApXRX4mXsnP33v/Us6vjWoz0Wa4OMrG gZMm5T5S6qSKI+zwnCVxRSN3sLl39UG9IVLl26WJK2/pbUFOsFPsBsWNmRYYDxPU0GKi creyIAyL7BTtTwhdL5JIsugVIQMoqT8tnlUmfaPTkK21GYtkG/8ixM+s135nGG7JvVRi oQHSh5ILR0MSlU5SMXID/TcrKFuPeevyh17bggKAZlaFE8HA7fYmXt4caiCQvfqhkEzH 3NyQ== 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=7PFJY4F1JUiusPvb41BXA5uI1ZQU6Bw5nPmkYpdoAqw=; b=YtDEU6z8cvUUK7eCndpjLab1vnNteA6uaPEBrB8dlXfepfWBxaSOykauBf2gzjuzA+ 8FODbk1GXiXCw2+Q4ba3QmljXGPavMlLfZjKjpRj4pePzxLd/EfdPi97gR5eS5d8XgNe wjD4rqoOgIbIsY2Yvhr2LQRts7SAaJwhM/kX5MJhJN672i7niHLPhBmRAUyNvk+OIuTK LjSSUY96y8U/X8eeC2PNMXW2bylWbWLsOVQaiPrl9BL3WHSDhSjccPoziSQbceEPxXI3 tyq2X8iXzFhohM8XuRoAfkngXzzaj/BFWKLHTL10FPtw8SgH0jJRUhLm5Uz4KZuqqIP2 FOPg== X-Gm-Message-State: APjAAAUO4cEQrUOV27UgtILdPEF1klzXov+OeJuAOdhBsZ1W+CsboJP3 EwrGX2vHrxh9AWhB9JRfgpPFjshOimc= X-Received: by 2002:a63:f556:: with SMTP id e22mr6766222pgk.321.1553225365202; Thu, 21 Mar 2019 20:29:25 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id o76sm16154476pfa.156.2019.03.21.20.29.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 20:29:24 -0700 (PDT) From: Andrey Smirnov To: dri-devel@lists.freedesktop.org Cc: Andrey Smirnov , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Tomi Valkeinen , Andrey Gusakov , Philipp Zabel , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v2 08/15] drm/bridge: tc358767: Increase AUX transfer length limit Date: Thu, 21 Mar 2019 20:28:54 -0700 Message-Id: <20190322032901.12045-9-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190322032901.12045-1-andrew.smirnov@gmail.com> References: <20190322032901.12045-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 apperas to be too low. However only up to 15-bytes seem to be actually supported and trying to use 16-byte transfers results in transfers failing sporadically (with bogus status in case of I2C transfers), so limit it to 15. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Chris Healy Cc: Lucas Stach Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org --- drivers/gpu/drm/bridge/tc358767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 21374565585d..8adaac5ca271 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -358,7 +358,7 @@ static ssize_t tc_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) { struct tc_data *tc = aux_to_tc(aux); - size_t size = min_t(size_t, 8, msg->size); + size_t size = min_t(size_t, DP_AUX_MAX_PAYLOAD_BYTES - 1, msg->size); u8 request = msg->request & ~DP_AUX_I2C_MOT; int ret; -- 2.20.1