Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8840901ybi; Thu, 6 Jun 2019 21:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrUtERJ5MA9vymKzodebu0aZv9NxJezgKUtA69c/TekNQVSHJVVSf4y0FHcFCEUBisZ2qz X-Received: by 2002:a62:5486:: with SMTP id i128mr56497444pfb.156.1559882938533; Thu, 06 Jun 2019 21:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559882938; cv=none; d=google.com; s=arc-20160816; b=qyksesM4voEcXjHMr6owMft9FbvgOvBPg9K9d0ROveeHg8tw2E1nkKFQEfp5Uh5q/V 7wT/KxPHpl6r915iyviQyhZ2gKFc4IN6JlZVJX7jhbiAOcPzKysd+NS3bvCrIif9PEnS BvldlfjUQ7lzgKSboefpY4dYFj22xYZO+yoqH1HFlguY91FSFS3D5yNvRLSaYqdo2Peo 9cUtKAxrL2PvyDMp9WOO9YvNojI1GYXCFnkWsPRH8WZuPos8hcOwD3cfvoCAuDgtABmo 7XbpRYw5jIlxIT5nePJIMxRR1kw7HShnq7um8yN+FTL+VakxQg13rmhnVARduvyK+yfA wV7w== 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=9WGN3NR4MW1WrYhidVDjbYDvKJj0rx7B3nDJpv9Q+YA=; b=j4WnjgipJ6flkYPAMz62rIIcF8eYB+H92gcwrkRAnao46/h9UNwuPPyAU3Bc7gi57O zKYvkrUpqiL6Q1JhFeBqcPAosddzJ5TC8jyhouiF9Koih3RAmbDxAj6R464f4BQII6FN XfcvwVfu/sBvnFAMaOaHUDfhC/57PvLngYcQBwo47q+bI2vqAH90hl1q4FvjB+v/doZ9 utF0tA5SO8S+tlM5OOzjlONU2THOMxdEcaNumsHfZbbTGm5dTvTfT3LOguTHVR7XlU5P V1SVqeCjrmO+CnWE8+p/MValj6TziL4yEp787hKVp2ilcJcpkEpnrmY2NrUJsNgCMfSm u4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qsROZ8XO; 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 b13si911416pgk.19.2019.06.06.21.48.30; Thu, 06 Jun 2019 21:48:58 -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=qsROZ8XO; 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 S1725941AbfFGEq1 (ORCPT + 99 others); Fri, 7 Jun 2019 00:46:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34820 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfFGEq0 (ORCPT ); Fri, 7 Jun 2019 00:46:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id d126so469959pfd.2 for ; Thu, 06 Jun 2019 21:46:26 -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=9WGN3NR4MW1WrYhidVDjbYDvKJj0rx7B3nDJpv9Q+YA=; b=qsROZ8XOJbENYyPYXdqw9bNV22BT8EHKoWsX/pyjAYa+sTVHTkXr25YmcOeO+yqF3f d6ODsYN5z2v83Yoy5/Yf4RI0RH1bda03HvVd3l+B+pf0mDfer+SXR09LVhPVA2OXCGQr qaaZ2E2KfrYzk2ebgA9uUf3cWV1ZBTXgMdwDErKTjLiovBKKVTbxOia69mc9OfzFxd+v g5IoDhVzSFUqx6gZ6NwqianM2g4JcqcEbCSDOLRek7tI6l6AFSGLnePIzTWKejJ1+TJB X4RoQm69PQ1sz9KsYVXzgz9jzJgVn0OUIXlAOykYBOdfHiVUahFLHrueCj574plpwHQX erKg== 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=9WGN3NR4MW1WrYhidVDjbYDvKJj0rx7B3nDJpv9Q+YA=; b=SUpvOYYPfzb9QCgaQh9UkU58s6SrqpG0Z6vdtjBmTGXs9c/B6QTkkZr4D+FtJfSfWO ToaVv527luMpWHY3xt8L0agUzraWnyqvXIZwsawN/9fWyVeczu/ittoub7N2q+IKpQEH 332RGly2BfdDZbvrAJIzS0sDyHWZxTDN9WtEpwTMZdvLodejyyPBZiFSpiEXTT9Z4H6K MAXIFCQ/VNrjccPvhJf9+6SRQw/uxT8AJAM4QK0yYZqg0VqZ+xXLsPWZFN++Bc3s2vRa lFlkZoJCa7QwZd6GVdHlF7UIOOh9M3axIER8v1FxI669tlYLCNNV/9pwK5PMMn8r8tNf 87JA== X-Gm-Message-State: APjAAAVu2JTL4fjBbnRhaBFfQyHDdswepInmKU3zFTJh0S4D+s6HuY/d 0rTs/wkpdqx4jKN5HQO/VCo= X-Received: by 2002:a17:90b:8d8:: with SMTP id ds24mr3391153pjb.135.1559882785793; Thu, 06 Jun 2019 21:46:25 -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 o13sm919516pfh.23.2019.06.06.21.46.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 21:46: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 , Cory Tusar , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v4 00/15] tc358767 driver improvements Date: Thu, 6 Jun 2019 21:45:35 -0700 Message-Id: <20190607044550.13361-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 [v3]: - Collected Reviewed-bys from Andrzej - Dropped explicit check for -ETIMEDOUT in "drm/bridge: tc358767: Simplify polling in tc_main_link_setup()" for consistency - AUX transfer code converted to user regmap_raw_read(), regmap_raw_write() 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() [v3] lkml.kernel.org/r/20190605070507.11417-1-andrew.smirnov@gmail.com [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 | 648 +++++++++++++++++------------- 1 file changed, 372 insertions(+), 276 deletions(-) -- 2.21.0