Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp919238pxb; Wed, 29 Sep 2021 12:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKQ52TZENflHU0Se+jshtq6KlDPK9hqKsCzdUbVh9WXaqglZMgliHKNN1M9Bv6mYBm2zsi X-Received: by 2002:a17:906:24c1:: with SMTP id f1mr1949871ejb.314.1632943836836; Wed, 29 Sep 2021 12:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632943836; cv=none; d=google.com; s=arc-20160816; b=YoAub2/rAelmJPb9gi8Z3LSbhbTDWlCIIGbwHj7dttuer59bELnRY7YS8urRzJN1tm nO5I9OHzKS5o2aJVSerimvgh3Pe2qHnYOqc5gGSEAYjWlIppNHbkYPwuoXEa3t+sPkBa ugXj/5BAeOmrtDbXn3cg9Qje5LJEzExWj9WjFnSvuVQR/08eATFDvHRoQS6JlYaD+BMi YcdEOkR7uzukQ69NZeDx3Ck102C5nrhNFrlQPrfYpkz9URUYsbL0gq6+00sH22jzJbBi gZkdY34rIsAr2AjaOQSZNDQbL1uheurSZ2wkRDWGkIW290kFFDvMg15hTiu0fwpUad7X semg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NBNVWhSJEzMK1ZciCxl7WXIPg5UAGB/e2RyF0za6rPE=; b=IMeau7ItNV/1M2LVWpulOqv37g/QwDGkkS/3jx3TjKwgQKRZo6anNJYdXgn4GAgqLw Wshl97Tf1KjVu7YCkvRhYNgNZIkHBc+mwtSBUIoeZ6dtdPOeKIe9v3Xd9GFh3WTSZ/mW y2NIwkt9+X1Q2VYJOEHoGNdy6S45pSl3HWRF1Une+GeVkNMBFZsJdA6Z5jOWFqmdTDJo bfUYKnorojbfQeOCcSMswDIoulL1iGbIMYVlPXmZ41cna8ultzCj/FPp1Dly54pdrl37 Unrstzwe8V1u172aDZbgdQJh4qMjwrLUJ0z6s/+Qm7ZpX3P5Gzb7SuOobR8UJ8cWTOOy mGcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si883411ejl.658.2021.09.29.12.30.12; Wed, 29 Sep 2021 12:30:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344706AbhI2SHN (ORCPT + 99 others); Wed, 29 Sep 2021 14:07:13 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:52728 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244794AbhI2SHM (ORCPT ); Wed, 29 Sep 2021 14:07:12 -0400 Received: from notapiano (unknown [IPv6:2804:14c:1a9:2434:b693:c9:5cb6:b688]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nfraprado) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 9C0951F44850; Wed, 29 Sep 2021 19:05:27 +0100 (BST) Date: Wed, 29 Sep 2021 15:05:22 -0300 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Brian Norris Cc: Heiko =?utf-8?Q?St=C3=BCbner?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Sandy Huang , Chen-Yu Tsai , Thomas Hebb , stable@vger.kernel.org Subject: Re: [PATCH v3 2/4] drm/rockchip: dsi: Reconfigure hardware on resume() Message-ID: <20210929180522.3zksg7mpwdut7tra@notapiano> References: <20210928213552.1001939-1-briannorris@chromium.org> <20210928143413.v3.2.I4e9d93aadb00b1ffc7d506e3186a25492bf0b732@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210928143413.v3.2.I4e9d93aadb00b1ffc7d506e3186a25492bf0b732@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 02:35:50PM -0700, Brian Norris wrote: > Since commit 43c2de1002d2, we perform most HW configuration in the > bind() function. This configuration may be lost on suspend/resume, so we > need to call it again. That may lead to errors like this after system > suspend/resume: > > dw-mipi-dsi-rockchip ff968000.mipi: failed to write command FIFO > panel-kingdisplay-kd097d04 ff960000.mipi.0: failed write init cmds: -110 > > Tested on Acer Chromebook Tab 10 (RK3399 Gru-Scarlet). > > Note that early mailing list versions of this driver borrowed Rockchip's > downstream/BSP solution, to do HW configuration in mode_set() (which > *is* called at the appropriate pre-enable() times), but that was > discarded along the way. I've avoided that still, because mode_set() > documentation doesn't suggest this kind of purpose as far as I can tell. > > Fixes: 43c2de1002d2 ("drm/rockchip: dsi: move all lane config except LCDC mux to bind()") > Cc: > Signed-off-by: Brian Norris Tested-by: N?colas F. R. A. Prado