Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp284077img; Thu, 21 Mar 2019 20:30:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA5dzm8onFpxEaAmHbuelBkaMcPSJhzcWWoxiBixcI7oo1lqteFjWF9IN7GMKRXhz/bOAD X-Received: by 2002:a63:5318:: with SMTP id h24mr6781524pgb.76.1553225418652; Thu, 21 Mar 2019 20:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553225418; cv=none; d=google.com; s=arc-20160816; b=o+aZUCl58guCgWrHi0mNQvxLLOSRU3caSS+wzcxsq7dV90JkjOBA3tjCukqt9rkpyA +KF9p78STwfgs5jv6dOfxFHEtQ2tg3o34fmWRRVgAzoMQ8vM1OtpfYXoVRa9nVk1OOaO NrnNPoNycHKF2xAK6fUedgtPXyHJC1H4VU+kGPGV2f3Fufj8on6ts+p1jgpcy9hoJejL fdZx9xQwCLT96GthsBzIEk5wRRyf+TNdosrEGOVILfRWPrp75A6mbVXwrnag/gKwBoBK 2F8P8t0XuWmvYfEFSM4fJxrvDwYqiVBwaV3SoOALY2z6XOGn6noB11j1sgpFCHFlKe6S SMXA== 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=tvwMadT9Guc44W9HPQvKgVqVpo2kPt/43WK6NKQJPxI=; b=XM5LXHz8NUE16J5u3ap/uG+eV4GPOzVekMvkM+7AP8YAzmkKIpiC9EVOcZyD8rQDlA Rrfeqz4NndDOgZWyo5QGBVzY7q8PbVSFd/1rzZaliAOMbG3xdW/rnyv7C/ge/NG2KIgN CimIC3I9PhuBO4zUTblvNmZP8oQ9P8lpdCBdeuITopSSvl2HR545kNyrD18Diu1kSSLD ratxdQw3ZhhON/hXD12DluMSYMNy7q1zbYOkU8XRAfJDM+y6NktNFdRlnJXpODaruCeE 2LRF8WGZ3a1aQmLvcGkiXcP0VKR3ujdXqsuzR/HyXyJtnokmef0x3n7lPyGHHoAPXA+w EJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XSmVXBVs; 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 i38si6223201plb.194.2019.03.21.20.30.01; Thu, 21 Mar 2019 20:30:18 -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=XSmVXBVs; 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 S1727577AbfCVD3P (ORCPT + 99 others); Thu, 21 Mar 2019 23:29:15 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43984 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbfCVD3P (ORCPT ); Thu, 21 Mar 2019 23:29:15 -0400 Received: by mail-pf1-f196.google.com with SMTP id c8so520783pfd.10 for ; Thu, 21 Mar 2019 20:29:14 -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=tvwMadT9Guc44W9HPQvKgVqVpo2kPt/43WK6NKQJPxI=; b=XSmVXBVsm721phYyKIHxSA8/GjgWDGofBo56UOPWoLYj8ouQX/R7obaKjMYZF7b2cj fBHsFW/JTzaiDxC2AS0kJWYMAZD3CYEFAHN2ppqeHnoQYB7tPJlyzpdFoJm/7uPtdoZ/ Wi/0Ep471+bgOgnQNUc/dfSWBLzUEnfZg7TChYOuBVngzu8WbSsFacvaBhXSYTwiN68A ujWHaWOkkdTKka/viC9d+25A+8a1ifVPO8tVLg/oX3JRJmi1XkMd072WxWCm3jwIVqSK fsyJXVY9WaHETLGj+UGLlsx6etCWlJ+GfKJNv773LsbC0GR0swKV/R07FXjs1aqwUwzE Q57w== 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=tvwMadT9Guc44W9HPQvKgVqVpo2kPt/43WK6NKQJPxI=; b=gmq99ISkESkZ1uMXhQMr4nCL5mYd11ooC1cagwWjsPolGbRFm1zi+eTQh+wkxckN+x JboEpkAYj9YeC5d/xjgKB3bVkg7wbNfDAgS2EIi5XLte9PASZ6CYqpBLJa4hWmnLF3QB Y8ag7eJ0gyKtfksheRP3kA/bS7/MbOUKL4MoH/vys8kAhtRcgFyEwzJPWhhLTDMoCCaG zMWT58uD+6Mz/ggG3qgTA+qwmQvuntFwckPwwMiDkI4UqoSlFniaZwtzhpFSGQsKB9jv 7v5QXSPWQxJfKjHzomG3DVO5FrsAW5gwR+o7l74pz3UiNpQAebw/YjyToILwGtvGp6iz jbpw== X-Gm-Message-State: APjAAAUe4rUwyyKwSEuKFqHanLU1psn6ZguS6yTG1HseCNn7As1GG54n PDnj5aHAr00l2QiKx3NF79I= X-Received: by 2002:a63:e14e:: with SMTP id h14mr6593815pgk.184.1553225354086; Thu, 21 Mar 2019 20:29:14 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 20:29:13 -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 00/15] tc358767 driver improvements Date: Thu, 21 Mar 2019 20:28:46 -0700 Message-Id: <20190322032901.12045-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 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 [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() [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, 349 insertions(+), 299 deletions(-) -- 2.20.1