Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp237419ybd; Tue, 25 Jun 2019 20:28:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ3ouWa+9hcSUs82ysbDAGT1NHyoy7vgYniopFXnceGEAq+ZuJ2inbhAsi3eG6Uw/rv2+L X-Received: by 2002:a63:60cc:: with SMTP id u195mr513379pgb.13.1561519713317; Tue, 25 Jun 2019 20:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561519713; cv=none; d=google.com; s=arc-20160816; b=ZJZEKJfFKAT2XmkLD8IwjfcsHuSL4HKFWQsv17OZEJb9xg0R6CfN6+ESXtq99Q5vkU 8AhPYx/pVCmWRII0D875I2Tg5sW2VaSFz6QsTIxvIGQgdkjF8424YqwIsOGXnHVnP0GX +L2ilGxgL3JXrDB13cjbZUAp0amzBQDGQ5UK4qlU888gXsNgFz1B1a77Xf5QSLCTdzdW h8KFDjSRqbfigXa1BUCcj/SjvuZj0IP4de+tDRfApoGBM9/qJ9VlTF4cYl5jfPpUGH0Q TslcZyeE4lBrQzai1aBNYbYdWEdD/g4u6CsIA2UuCFf3jAhu0n3FK3V736bfqnX8Tsc8 VvOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vlIkKY0VE4UqMnVtVIxb3XZhsV7CFBjXdZOzFNVmjwQ=; b=Uy5pO8hO1Uk1svr1AK0sHE0JqaA5lATUpLMnau1VFeVGw5KyEv7EG4x/SyogC4cBFO 7FWe5XsGCNIGZvbBUrb54QQhkFLs4rnIZqNDWBJ/Kf+ecAmwurp3eIyWkCLq4W6N5E3H aF+F9PJq4UXinrlVqLOzxKV9zJzb3XGj0Eu2N0L844uAvZRnRsVXl3xjXJvp0qYXha85 BYEC8ERvYP6s++tC/JbhNAAEt7BQC5RYrRj15SA6g5+srdqW1Y3pSMopMLOKX2G2VHve nyHFnxex5HAoCvrhNHafdOgSK2t3lua/T4xJbp0BIhEcp1+yC6khe2OJDOEA9nwqAkUh 0Dig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PBgGri57; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si1866372plt.387.2019.06.25.20.28.15; Tue, 25 Jun 2019 20:28:33 -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=@chromium.org header.s=google header.b=PBgGri57; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbfFZD2I (ORCPT + 99 others); Tue, 25 Jun 2019 23:28:08 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:38205 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfFZD2I (ORCPT ); Tue, 25 Jun 2019 23:28:08 -0400 Received: by mail-qk1-f194.google.com with SMTP id a27so498916qkk.5 for ; Tue, 25 Jun 2019 20:28:07 -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=vlIkKY0VE4UqMnVtVIxb3XZhsV7CFBjXdZOzFNVmjwQ=; b=PBgGri57J+namPVw3UWYzE6Xn3Dn4Ve5NzK5s+f2/+otN6oz+Lv7izvt9X6CGprg2u EAvaiOpedaPFTWKF/xLLPTqZ3e8FqT84R/uUWio2yl3OJLA6roHARWyphg/OlcSMYxr/ I4PnptxsppenIonUS6g27n26BFSNZaz2a29Js= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vlIkKY0VE4UqMnVtVIxb3XZhsV7CFBjXdZOzFNVmjwQ=; b=dx4bD/TwtTLhfgzz2gOyQIxfOw6TJ/tbFwRfuqjaq/ol8VpJjY3QqGGfgHJdY7BavB ntwdy/TAvzVVG4yeSdO0/jDQVJOqILYOEwG60ZPVBKlXoM3nCKhKdUMZjDw/ZGwJGMx6 Awsg2Zy94m+reWfp0RepXT0QW/BqtCsg5nRwVt6tNHXwIwC2ALsquE6xnZWfUlNgdhRl gW2QPFhGhwZHCzumLumxhqe8iT1qqOCpYt7GQy9s68q+2CoQ8tO5DeLN3DScIKVa2+el tSZUMWaRYu9QIAOaz0U3AiwJy8X10FoNhFp/zncvxEB5ASCuSdIM2iRc51JROfLVW3l0 wIrw== X-Gm-Message-State: APjAAAXpki12fSm+GhuQHX87vOxR0Hhd6M0O5O3BWzAj9RfZ38UfNzFT zQ1qpc/6w7aZkRXT4ViNuAsLV2/YG0PKM3+jbbSraQ== X-Received: by 2002:a37:660b:: with SMTP id a11mr1810032qkc.342.1561519686671; Tue, 25 Jun 2019 20:28:06 -0700 (PDT) MIME-Version: 1.0 References: <20190624060343.62451-1-jitao.shi@mediatek.com> <20190624060343.62451-3-jitao.shi@mediatek.com> In-Reply-To: <20190624060343.62451-3-jitao.shi@mediatek.com> From: Hsin-Yi Wang Date: Wed, 26 Jun 2019 11:27:40 +0800 Message-ID: Subject: Re: [v2 2/2] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel To: Jitao Shi Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , linux-pwm@vger.kernel.org, David Airlie , Matthias Brugger , stonea168@163.com, dri-devel@lists.freedesktop.org, Andy Yan , Ajay Kumar , Vincent Palatin , cawa.cheng@mediatek.com, bibby.hsieh@mediatek.com, CK Hu , Russell King , Thierry Reding , devicetree@vger.kernel.org, Philipp Zabel , Inki Dae , linux-mediatek@lists.infradead.org, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Rahul Sharma , srv_heupstream@mediatek.com, lkml , Sascha Hauer , Sean Paul Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 6:03 AM Jitao Shi wrote: There are some error when unbinding this driver, `` echo 14014000.dsi.0 > /sys/bus/mipi-dsi/drivers/panel-boe-tv101wum-nl6/unbind `` [ 40.404393] WARNING: CPU: 1 PID: 2612 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/regulator/core.c:2054 _regulator_put+0xe4/0xec [ 40.417098] Modules linked in: rfcomm uinput thermal_generic_adc hci_uart btqca bluetooth ecdh_generic mtk_scp mtk_rpmsg mtk_scp_ipi bridge rpmsg_core mt6577_auxadc stp llc nf_nat_tftp nv [ 40.471107] CPU: 1 PID: 2612 Comm: bash Tainted: G S 4.19.53 #99 [ 40.478410] Hardware name: MediaTek krane rev3 sku16 board (DT) [ 40.484327] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 40.489118] pc : _regulator_put+0xe4/0xec [ 40.493127] lr : regulator_put+0x2c/0x40 [ 40.497044] sp : ffffff800cef3b00 [ 40.500354] x29: ffffff800cef3b10 x28: fffffff0e7a22a00 [ 40.505667] x27: 0000000000000000 x26: fffffff13876fc00 [ 40.510979] x25: ffffff800cef3b68 x24: ffffff91f0b92000 [ 40.516291] x23: ffffff91f03f2917 x22: ffffff91f0453a1c [ 40.521604] x21: fffffff13876fe00 x20: ffffff91f0a80988 [ 40.526916] x19: fffffff13876ff00 x18: 0000000000000000 [ 40.532229] x17: 0000000000000000 x16: 0000000000000000 [ 40.537541] x15: 0000000000000000 x14: 0000000000000000 [ 40.542854] x13: 0000000000000010 x12: 0000000000000000 [ 40.548166] x11: 0000000000000000 x10: 0000000000000000 [ 40.553478] x9 : fffffff0e7a22a00 x8 : 0000000000000001 [ 40.558789] x7 : 0004be4200000000 x6 : 0000000042be0400 [ 40.564102] x5 : ffffff91f043a5ef x4 : ffffff91f043a5ef [ 40.569414] x3 : 0000000000000000 x2 : 0000000000000000 [ 40.574726] x1 : 00000000000000fe x0 : fffffff13876ff00 [ 40.580040] Call trace: [ 40.582488] _regulator_put+0xe4/0xec [ 40.586148] regulator_put+0x2c/0x40 [ 40.589724] devm_regulator_release+0x1c/0x28 [ 40.594084] release_nodes+0x1f0/0x244 [ 40.597832] devres_release_all+0x3c/0x54 [ 40.601840] device_release_driver_internal+0x148/0x1ec [ 40.607061] device_release_driver+0x24/0x30 [ 40.611328] unbind_store+0x90/0xdc [ 40.614814] drv_attr_store+0x3c/0x54 [ 40.618478] sysfs_kf_write+0x50/0x68 [ 40.622137] kernfs_fop_write+0x12c/0x1c8 [ 40.626146] __vfs_write+0x54/0x15c [ 40.629631] vfs_write+0xcc/0x188 [ 40.632943] ksys_write+0x78/0xd8 [ 40.636255] __arm64_sys_write+0x20/0x2c [ 40.640181] el0_svc_common+0xa4/0x154 [ 40.643928] el0_svc_compat_handler+0x2c/0x38 [ 40.648283] el0_svc_compat+0x8/0x18 [ 40.651855] ---[ end trace 65d8c8e7436ab6e9 ]--- [ 40.656765] panel-boe-tv101wum-nl6 14014000.dsi.0: Dropping the link to regulator.8 [ 40.664649] WARNING: CPU: 6 PID: 2612 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/regulator/core.c:2054 _regulator_put+0xe4/0xec [ 40.677335] Modules linked in: rfcomm uinput thermal_generic_adc hci_uart btqca bluetooth ecdh_generic mtk_scp mtk_rpmsg mtk_scp_ipi bridge rpmsg_core mt6577_auxadc stp llc nf_nat_tftp nv [ 40.731273] CPU: 6 PID: 2612 Comm: bash Tainted: G S W 4.19.53 #99 [ 40.738574] Hardware name: MediaTek krane rev3 sku16 board (DT) [ 40.744488] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 40.749276] pc : _regulator_put+0xe4/0xec [ 40.753282] lr : regulator_put+0x2c/0x40 [ 40.757197] sp : ffffff800cef3b00 [ 40.760505] x29: ffffff800cef3b10 x28: fffffff0e7a22a00 [ 40.765814] x27: 0000000000000000 x26: fffffff13876fa00 [ 40.771122] x25: ffffff800cef3b68 x24: ffffff91f0b92000 [ 40.776429] x23: ffffff91f03f2917 x22: ffffff91f0453a1c [ 40.781736] x21: fffffff13876fc00 x20: ffffff91f0a80988 [ 40.787044] x19: fffffff13876fd00 x18: 0000000000000020 [ 40.792351] x17: 0000000000000001 x16: 0000000000000000 [ 40.797658] x15: 0000000000000000 x14: 00000000000003f1 [ 40.802966] x13: 0000000000000004 x12: 000000001f80c232 [ 40.808272] x11: 0000000000000000 x10: 0000000000000001 [ 40.813580] x9 : 7ee042d282bebd00 x8 : 0000000000000001 [ 40.818887] x7 : fefeff2f2f37306f x6 : 0000000000000000 [ 40.824194] x5 : 0000000000000000 x4 : ffffff91f0143fdc [ 40.829501] x3 : 0000000000000000 x2 : 0000000000000000 [ 40.834809] x1 : 000000000000038c x0 : fffffff13876fd00 [ 40.840116] Call trace: [ 40.842560] _regulator_put+0xe4/0xec [ 40.846218] regulator_put+0x2c/0x40 [ 40.849791] devm_regulator_release+0x1c/0x28 [ 40.854148] release_nodes+0x1f0/0x244 [ 40.857892] devres_release_all+0x3c/0x54 [ 40.861898] device_release_driver_internal+0x148/0x1ec [ 40.867116] device_release_driver+0x24/0x30 [ 40.871380] unbind_store+0x90/0xdc [ 40.874863] drv_attr_store+0x3c/0x54 [ 40.878524] sysfs_kf_write+0x50/0x68 [ 40.882180] kernfs_fop_write+0x12c/0x1c8 [ 40.886186] __vfs_write+0x54/0x15c [ 40.889668] vfs_write+0xcc/0x188 [ 40.892978] ksys_write+0x78/0xd8 [ 40.896287] __arm64_sys_write+0x20/0x2c [ 40.900208] el0_svc_common+0xa4/0x154 [ 40.903951] el0_svc_compat_handler+0x2c/0x38 [ 40.908302] el0_svc_compat+0x8/0x18 [ 40.911871] ---[ end trace 65d8c8e7436ab6ea ]--- [ 40.916642] panel-boe-tv101wum-nl6 14014000.dsi.0: Dropping the link to regulator.7 [ 40.924511] WARNING: CPU: 6 PID: 2612 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/regulator/core.c:2054 _regulator_put+0xe4/0xec [ 40.937193] Modules linked in: rfcomm uinput thermal_generic_adc hci_uart btqca bluetooth ecdh_generic mtk_scp mtk_rpmsg mtk_scp_ipi bridge rpmsg_core mt6577_auxadc stp llc nf_nat_tftp nv [ 40.991108] CPU: 6 PID: 2612 Comm: bash Tainted: G S W 4.19.53 #99 [ 40.998407] Hardware name: MediaTek krane rev3 sku16 board (DT) [ 41.004320] pstate: 80000005 (Nzcv daif -PAN -UAO) [ 41.009105] pc : _regulator_put+0xe4/0xec [ 41.013109] lr : regulator_put+0x2c/0x40 [ 41.017022] sp : ffffff800cef3b00 [ 41.020329] x29: ffffff800cef3b10 x28: fffffff0e7a22a00 [ 41.025636] x27: 0000000000000000 x26: fffffff13876f900 [ 41.030942] x25: ffffff800cef3b68 x24: ffffff91f0b92000 [ 41.036248] x23: ffffff91f03f2917 x22: ffffff91f0453a1c [ 41.041554] x21: fffffff13876fa00 x20: ffffff91f0a80988 [ 41.046859] x19: fffffff13876fb00 x18: 0000000000000020 [ 41.052166] x17: 0000000000000001 x16: 0000000000000000 [ 41.057472] x15: 00000000ffffffff x14: 00000000000002e3 [ 41.062778] x13: 0000000000000000 x12: 0000000000000000 [ 41.068084] x11: 0000000000000000 x10: 00000000ffffffff [ 41.073389] x9 : 7ee042d282bebd00 x8 : 0000000000000001 [ 41.078696] x7 : 0000000000000000 x6 : ffffff800cef37f0 [ 41.084002] x5 : 0000000000000040 x4 : 0000000000000000 [ 41.089307] x3 : 0000000000000000 x2 : fffffff0e7a22ac0 [ 41.094613] x1 : 0000000000000000 x0 : fffffff13876fb00 [ 41.099918] Call trace: [ 41.102361] _regulator_put+0xe4/0xec [ 41.106017] regulator_put+0x2c/0x40 [ 41.109587] devm_regulator_release+0x1c/0x28 [ 41.113939] release_nodes+0x1f0/0x244 [ 41.117683] devres_release_all+0x3c/0x54 [ 41.121686] device_release_driver_internal+0x148/0x1ec [ 41.126904] device_release_driver+0x24/0x30 [ 41.131167] unbind_store+0x90/0xdc [ 41.134649] drv_attr_store+0x3c/0x54 [ 41.138308] sysfs_kf_write+0x50/0x68 [ 41.141962] kernfs_fop_write+0x12c/0x1c8 [ 41.145965] __vfs_write+0x54/0x15c [ 41.149446] vfs_write+0xcc/0x188 [ 41.152754] ksys_write+0x78/0xd8 [ 41.156061] __arm64_sys_write+0x20/0x2c [ 41.159979] el0_svc_common+0xa4/0x154 [ 41.163722] el0_svc_compat_handler+0x2c/0x38 [ 41.168072] el0_svc_compat+0x8/0x18 [ 41.171640] ---[ end trace 65d8c8e7436ab6eb ]--- [ 41.176405] panel-boe-tv101wum-nl6 14014000.dsi.0: Dropping the link to regulator.6 Also, sometimes when rebinding the driver `` echo 14014000.dsi.0 > /sys/bus/mipi-dsi/drivers/panel-boe-tv101wum-nl6/bind `` UI still failed to show up.