Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6401456ybi; Wed, 5 Jun 2019 00:08:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMijRxIGQyE3Ipzrk/J6zxqDJjvJ56mum3/FNojHD+GFH8u96ic+Np+p1dlfSiurqVc+TC X-Received: by 2002:a65:6495:: with SMTP id e21mr2397100pgv.383.1559718492990; Wed, 05 Jun 2019 00:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559718492; cv=none; d=google.com; s=arc-20160816; b=YrTEMLMem37gfxRu8CwcTXzUGIqbgITESc081XYuvRN6B9/3n/epuFnrE1UtBHy7zB PKA+l+JCV/vMOF1ifDwpkBiHKCCvLnGMrfdwHfN7mPsIkgwF3jIHGKZFpdzDuFd8/EKj Nj8QmItUD3XId+uUVbqIw1vHlnK/gKKTNVx1ASbKOrjS3oPEC28iSpWDvJpFuq98pd6+ UdFkyVQyBpo4PaxPQChQNMOMl/i2yzfEDskV7ovh6jTBNObJ4ghRrbmkWueA9x3Q3tkz jEnk6G68c9PWnlDkqAIDYvfmGXuapjw5vyyGiLlP4SRark9Jl4k2DN/RtXQeSNok1IvN 170g== 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=IBDB5XdTP7dfG6WE/Wv8QzDZU0TBBhHw3g3JoSOOGeQ=; b=aW4zVfeUHCx7sN2rxb6ApN1PunZEVNzg+Qk4w3CNG05+ygYrCrlKhRdnqxtbo4ThIm nzqSZJ08UfApb3oPZXS01ifAPO+OgJ5kHPgC5tkNJrzf93XLQ2bTPM9+JCBw3bBSi5mb O4gxwjSSTeQr6X+EwGfvDNBT7fy+3S20usulawfzGPAvIg6AR+gumFde/Q68p5n9wF2H cExqCTgJxL72Bb8kzRvrfgd5rw25w/xRWc+EZcD1d+Zq4GGQVTLs9ezfAK9UVRv4/+Wj k666e43EUpZs8i/1+nHCe1VFaLgUZxkIq5iBNOPNWlrCznFbRGRp65oGujy4CEHerP70 ulHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IsiW0dB9; 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 k33si28787451pld.359.2019.06.05.00.07.56; Wed, 05 Jun 2019 00:08:12 -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=IsiW0dB9; 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 S1726962AbfFEHGL (ORCPT + 99 others); Wed, 5 Jun 2019 03:06:11 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46558 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbfFEHFf (ORCPT ); Wed, 5 Jun 2019 03:05:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id v9so11854242pgr.13 for ; Wed, 05 Jun 2019 00:05:34 -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=IBDB5XdTP7dfG6WE/Wv8QzDZU0TBBhHw3g3JoSOOGeQ=; b=IsiW0dB95u8meFnmq6fBHoTrfdGSMbu7kMUi4sRnXRsKgAqQ0cY5rJTNe5IEvAos+f xPeHHQoLo1sebUFCqzWRJ24IYagKiDZFIZfmOu17ZHgwsMMT4sH82A93yb/0vwTBeHPR U83nZrZ1X8xCacIMORgBKfMxy+NZh+1b4fIB2gPNFLQwY4hXhsUawBmB/L8MC3ZXU6E3 px9cJZkZPMPYVVmaKu0Floi6r8QP4KOhK5VmjP8QDdFpxd8Cwz/3Z4aaxKC0FPosMwve 2xAa5AQ/yvaLI18Z13lqFMuMHedoUFKLXr02tsTQ2HnlYCdks5kegmgKTTUBv/ku76Q5 OURg== 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=IBDB5XdTP7dfG6WE/Wv8QzDZU0TBBhHw3g3JoSOOGeQ=; b=a6pKjP2Il3d2NFGKon4IZT2shNiHpCuGmoMD2nCYTT2DbBRZW90uRgw1UW5SwBXml7 PLWHa8VH4wkUIBXIDWbUMMb4iQcfWwgMgUwbyg9/RgfquEebAaNkoabJ0RUObfiEFx2E RxwhPiymDqsQaHCoB6iIq/PwdeHlPo5W5lxwJ9D0iPZtdQBHZL/sZYrXfUGb9lByaEan EY0jnlEy+nU6SE3M9kJWtXOF3QcaXx5xQG+mkbBWQ6I/SOefY1mUxDoHEWFJsozWCZQu Nu0ZlT58v5k0WYq6oTVAjbswYs6aHjifpzdfgcNJQuk1n5Ur4gei+ECl9R80b4xwlxhc xAGg== X-Gm-Message-State: APjAAAUYnP/luVqg4patSCbXCbEuo8oVSqd7HyJmRPadyZDPC+el++J+ kPGm3s0z0jJpvkQod2/EkoQ= X-Received: by 2002:a63:fa4a:: with SMTP id g10mr2393869pgk.147.1559718334365; Wed, 05 Jun 2019 00:05:34 -0700 (PDT) Received: from localhost.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id d132sm6527348pfd.61.2019.06.05.00.05.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 00:05:33 -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 , Cory Tusar , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v3 08/15] drm/bridge: tc358767: Increase AUX transfer length limit Date: Wed, 5 Jun 2019 00:05:00 -0700 Message-Id: <20190605070507.11417-9-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190605070507.11417-1-andrew.smirnov@gmail.com> References: <20190605070507.11417-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: Cory Tusar 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 260fbcd0271e..0125e2f7e076 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -374,7 +374,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.21.0