Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp203664pxb; Tue, 28 Sep 2021 19:31:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkMyMxPJzCBnIsItUaja+t8vHG1NTeQdkkLBpS/IZpH+BswK9o0UwgzqK+0YylYD9mVYxr X-Received: by 2002:a17:906:901:: with SMTP id i1mr10568970ejd.234.1632882673193; Tue, 28 Sep 2021 19:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632882673; cv=none; d=google.com; s=arc-20160816; b=zgKZK7ITOeiiReVn6EF+3ygqNhr/8TDvnyTC5TsOfRSvPYnHnF+3j/q021QmSvzm/Y +4ArFL4ikSB4r9KxuAztciHzxxA4KsA51wFiRjGYnISsC0/8xV2kvwu7cYzo3YL6aC7A 2lX83GXnRE2R496vYkMw6C7atXkcCcJSbD41CM/nHjgIIyQ4o+VkjWnjw5EagBI2ehe3 xUxkhy8Kj9q/fYoUizKXvlDFluMi/gfAontge2U3yuLEXqCqkCkj45qohim4RCY40koc YNSnCPey0c6T2p74uWiAU9YtqpgpgiAiC45A8Qzr0gXFpT8BAJL87UXQzX3NeQO3i1VR 0ZzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vzNXCj84D1g4PbD9Z2/a7WAfkTzxrDKROcDc/hzpBWc=; b=CC/aXGWLwoV/N1r6a+c8aYa6vr9VBsYuBVvd2Eaalym7HhfH+t9d+5/ZZGKei5cXcV zTi7gPmHhpUnJM/O3IzHjZp78Iwk3Fl0YxS01b6fbmdjN9AeKDg1OjeOEzF7TqCqFDq4 AofZg1erpFdiFa/ujD8sh0fxRmimVld7lNlBClC2EwXOuJfTsf1mlueKnMTkiWUtSse/ uXS+JM50ksQVXZa8jNR7DfbCVIKp23irgRPde8nw2Tnm65WxEl7JUAMxd9o5f5KIDw8m bCjxkmjQBuXbAofI/hrErqcgq679owzj2XYYfmysxX/16Qkh+2FfzTCSNzrnlNKtMvWV OsrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UFBbRLUs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si1376267edc.313.2021.09.28.19.30.44; Tue, 28 Sep 2021 19:31:13 -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; dkim=pass header.i=@chromium.org header.s=google header.b=UFBbRLUs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243062AbhI2CaK (ORCPT + 99 others); Tue, 28 Sep 2021 22:30:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242877AbhI2CaI (ORCPT ); Tue, 28 Sep 2021 22:30:08 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7551C06161C for ; Tue, 28 Sep 2021 19:28:27 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id x27so4264427lfa.9 for ; Tue, 28 Sep 2021 19:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vzNXCj84D1g4PbD9Z2/a7WAfkTzxrDKROcDc/hzpBWc=; b=UFBbRLUsdxkCVsyDBTZelri1sE1uBJFhlXVFzOQ00BYD/vd027QrYNGqzaxNahSk5t p6RkaJek68Zp/n/NESHX4OhAOqTF0Ns7OTCXh7/7WouElvWnEJzoUqEO5tfPylzKLTcJ 4mmlTm0nReyACi0Ttcsrq2osd9UWg42lgdAnQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vzNXCj84D1g4PbD9Z2/a7WAfkTzxrDKROcDc/hzpBWc=; b=Wl7yHDn0oopZNVuCU8UEToGzR2EovpXyYoBu/4Rl2Ts8ldo/N9TtLz3Z371Tj73w2Q AXLNiqPH7yVd9Gwukw0t3U7SVroXbNP5+BenM3pXSqR+1QcnBuzhfiG7lHMETNtTMzeG HKM4WXT1GM8wQwVqie3S92S/ibUzHvE7R6TqBZtymY+O6fmimyU/8V6b596tdAH9RFLl KUJ/5bPuyCZyG1xACdqHhMmagS2yo5PkKlM+/trJU4ldtqyE0pC8ogTz0ZAY2qMK2G7q /Ne/nkZOnXrO50tqHYc2LZf1ugF10NsVlY8BLSheVyrgWWXusTzZYBAJ2fB1rvhwyoyt 8I5g== X-Gm-Message-State: AOAM532w7/3rm9Z/nXYIBY8Hnt3dvY0vgsZ6Dw12q7HU50fbQn4EVtB/ HRU2vsruLDTJ8HwiQn20OzfmKfcmAcYQypbc/OSmmA== X-Received: by 2002:a2e:b80f:: with SMTP id u15mr3549500ljo.414.1632882506299; Tue, 28 Sep 2021 19:28:26 -0700 (PDT) MIME-Version: 1.0 References: <20210928213552.1001939-1-briannorris@chromium.org> <20210928143413.v3.2.I4e9d93aadb00b1ffc7d506e3186a25492bf0b732@changeid> In-Reply-To: <20210928143413.v3.2.I4e9d93aadb00b1ffc7d506e3186a25492bf0b732@changeid> From: Chen-Yu Tsai Date: Wed, 29 Sep 2021 10:28:15 +0800 Message-ID: Subject: Re: [PATCH v3 2/4] drm/rockchip: dsi: Reconfigure hardware on resume() To: Brian Norris Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , LKML , dri-devel , "open list:ARM/Rockchip SoC..." , Sandy Huang , Thomas Hebb , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 5:36 AM 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 Reviewed-by: Chen-Yu Tsai