Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6400001ybi; Wed, 5 Jun 2019 00:06:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR9rBOGzyfBqjDXLjeEFQqGAJ/hYAfyzwB8qtMs0EE2b9GwcthFufEmQcD0ENk9l/7/xvE X-Received: by 2002:a17:902:7c03:: with SMTP id x3mr16637872pll.242.1559718412467; Wed, 05 Jun 2019 00:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559718412; cv=none; d=google.com; s=arc-20160816; b=QhXBfAhpoBVGGZIOEsBjBgHxozl13VM1zjo+zcCxpdueBZXyoHLYvU0WF4iEEzBVRB G5p4NSgdU3Hqi9YW7sQ0arH5i7zpTG63DIkWBnCCM2Zr4LJOr01jxt0M89dj2ObfIK0v PwN5A8oxhGaptrkbanqHQFe0GtFh0lm1XlON9Bk9Ii5EqHSkWYnQmaDja/2ousSYKJ1Z Vw94vDVZ0Kr6KC5mVri/xktmK75A5ngUMG9hJDqKc/CLBo0E0U6ajiiDnq1NDPYEu+rc erQrgwqrYOnl+NGLpy7MZ/T3ONSqOuBi4AEtT6lLPRA5VNRRj/MMz9g9tYdIAOGaxIHP 3vZw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=LnB/qPlcBVS1MiWf1Hu4nd4BnRwaadmudJ8+dogX3yE=; b=gX3lX3e4HyRuP3ABtHQnwtE5oe4BYrIab1qk/saewaRmpuRfoRCaPk1blQM+I6gdXc 4ojk/XD1+ugiEbn+wB4xPK6f9X+Y+HhYYI2z1KKK2JIueGKBrc9q9g30lTTBdV2981la nu5N7n/3pNw1yyH5gIGi4Juvg5ugtk8Red65RMawGxwBogIfNBmonUvhPIjxj3aWA+Wi fStQM5uuoocRJdVnZqVQsNNqpgBMpz08977d/GL4WaUiLBSR7Mjih2bf4aBmuNBZG+oA qKo2+uuSQnoEeNQnVb8Rpd3GfcO7R4K6zmnZuT6WsoZDrp4nsrh2CgE/JQGztCydSvYi NWjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="RMx/P5Rt"; 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 i22si27684015pfd.84.2019.06.05.00.06.34; Wed, 05 Jun 2019 00:06:52 -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="RMx/P5Rt"; 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 S1726536AbfFEHFX (ORCPT + 99 others); Wed, 5 Jun 2019 03:05:23 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39626 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfFEHFW (ORCPT ); Wed, 5 Jun 2019 03:05:22 -0400 Received: by mail-pf1-f195.google.com with SMTP id j2so14293506pfe.6 for ; Wed, 05 Jun 2019 00:05:22 -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:mime-version :content-transfer-encoding; bh=LnB/qPlcBVS1MiWf1Hu4nd4BnRwaadmudJ8+dogX3yE=; b=RMx/P5RtZ+Kl66yQ52r1XgqEli3o9Rs7lILVOMVTCEPCdSkIp4K9237cxsJcgu5xQk 5LcryYeX386IS5I7mdPCRMMYgAu/4+wSur+T5ziRnBZ/GRpsKdA9n5wSEE05CbDJszX7 daC81Dev6VZ6kAH1/8N1esEpcVQK+45xBaXFYujYwgNWAjRbFOPH8I4PgAPZJ7vk7M+2 vyxX/UcnL42bBGS2b9xYsfPvajuKIJPbK/ArUp9iLZR9nV6Zl7s/tuVElKfhG2GIod7K YMDYSnS/ZClOnXJ6r1wpHJvQfKLVIBtZcuA25Es/hplWU+7RTAq+Vt68I+a4zvXrsplP HZUg== 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:mime-version :content-transfer-encoding; bh=LnB/qPlcBVS1MiWf1Hu4nd4BnRwaadmudJ8+dogX3yE=; b=XK/roSqrgkOI2xiKSprmAWU1GQFvPm+En002de5+qlFlFahCnYoNbR56KMnoep2gK1 y8ua/YDxeY1EAkiXVwvnj1p75kBss1YyG9afAAk/RMPDLtr8FhwVtvzfI6j2d5LIJJze aY2jhuICJ6x1t4kTLvsOQlYmV5zNr+CdOgcLBKRblUaJAsVyOxb0/GYKrnnuJv0D7G9B WZaenUXgX9u1MevEXPP/deNV6MZPrUWcT5BxCU+awehsbhM4Z633gY+Xp8+mwi/QrBS3 iCiPtNueUpLpAIybMqGLAHKeuJ7enEeYMrJJeKO1Va49DrrMyh6EmPPX1NczAwgxZamD JxRQ== X-Gm-Message-State: APjAAAVE/YP5eINkMa45Bt/Xl93zGxoO/rYJx/RFSG4CcYaPj393NUb/ rVF8zlIx4Tpk+EoC4/1dA2g= X-Received: by 2002:a63:eb0a:: with SMTP id t10mr2202889pgh.99.1559718321838; Wed, 05 Jun 2019 00:05:21 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 00:05:20 -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 00/15] tc358767 driver improvements Date: Wed, 5 Jun 2019 00:04:52 -0700 Message-Id: <20190605070507.11417-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 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 Everyone: This series contains various improvements (at least in my mind) and fixes that I made to tc358767 while working with the code of the driver. Hopefuly each patch is self explanatory. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v2]: - Patchset rebased on top of v4 of Tomi's series that recently went in (https://patchwork.freedesktop.org/series/58176/#rev5) - AUX transfer code converted to user regmap_bulk_read(), regmap_bulk_write() Changes since [v1]: - Patchset rebased on top of https://patchwork.freedesktop.org/series/58176/ - Patches to remove both tc_write() and tc_read() helpers added - Patches to rework AUX transfer code added - Both "drm/bridge: tc358767: Simplify polling in tc_main_link_setup()" and "drm/bridge: tc358767: Simplify polling in tc_link_training()" changed to use tc_poll_timeout() instead of regmap_read_poll_timeout() [v2] lkml.kernel.org/r/20190322032901.12045-1-andrew.smirnov@gmail.com [v1] lkml.kernel.org/r/20190226193609.9862-1-andrew.smirnov@gmail.com Andrey Smirnov (15): drm/bridge: tc358767: Simplify tc_poll_timeout() drm/bridge: tc358767: Simplify polling in tc_main_link_setup() drm/bridge: tc358767: Simplify polling in tc_link_training() drm/bridge: tc358767: Simplify tc_set_video_mode() drm/bridge: tc358767: Drop custom tc_write()/tc_read() accessors drm/bridge: tc358767: Simplify AUX data read drm/bridge: tc358767: Simplify AUX data write drm/bridge: tc358767: Increase AUX transfer length limit drm/bridge: tc358767: Use reported AUX transfer size drm/bridge: tc358767: Add support for address-only I2C transfers drm/bridge: tc358767: Introduce tc_set_syspllparam() drm/bridge: tc358767: Introduce tc_pllupdate_pllen() drm/bridge: tc358767: Simplify tc_aux_wait_busy() drm/bridge: tc358767: Drop unnecessary 8 byte buffer drm/bridge: tc358767: Replace magic number in tc_main_link_enable() drivers/gpu/drm/bridge/tc358767.c | 668 ++++++++++++++++++------------ 1 file changed, 392 insertions(+), 276 deletions(-) -- 2.21.0