Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6472735ybl; Mon, 23 Dec 2019 06:28:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzgDAAFF1xCC1xieIGGdDikPubythS6zM7CmncvdTVFnOPurB84bjTBREP+o6fURfgX2q+N X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr33621198otc.129.1577111333554; Mon, 23 Dec 2019 06:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577111333; cv=none; d=google.com; s=arc-20160816; b=p/WVFdl7oztQ7CpHUBQdLEG63RymDfnuZDz6BHo8L2f0lnXhXgVF/4rkdPB6o1XiYU /cUtJ/PZDVBASqt3FzPhj/bmgEI2ahyz8AYk39BMXMtZ9sKw1TwhU5fyC6+4cJbM+0+u lHyJesiy5cku85D/vY4Ylp9wyAqwTgTuDg1TvkPhKGGFObRWYMkgjVDGLucCrXak5tSJ irydNrqm7b2sA4xoP9tNEuABt99l1dewtFJkS7mOC5Mh3DQQOIdSgDffkE5FcnX1zIsb D+5LiyslCDfrDtVVr8SA1hB25xkebA6xCgIWwtuCULpZ1kvjP6FROiLpzf6WQJWxsT9s aZGA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DkJX71/waUm63Cjte6SNjeci+Ht1o8nhPLFTo8T+9k4=; b=XCHXCxTkAg1R+okkOmCMJRJzb6W9k9lIlFW8bWCIEBVkyQHY6YKAVJ0TfMj0Z/5Ro7 tt97f0YtC2l92XMEl9EtcY4DXNROpnpugFLYTzBOt7PfcXT0gwDd2KsXV4Erjup2VOCI Xuf8EUrfWvup1SFIp5Ss7dIiZLxEFu96y2K/FWatpn9XaN6eyyBFs5zJOyr9F+qJcziy 2UAmVlG+pTpnxCo3RpM4hTuePd1ZhyxPbwx4q1pFV+J95SaKz+BC3AJocFjx2dn8ljPJ dTJONVcS+bdzNqHotZ0Qb4isD1Qn3usXssbVf8p7LS0Te+EZOpnM4ATMuD2EmEKOduFn G27w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si10153804ota.19.2019.12.23.06.28.41; Mon, 23 Dec 2019 06:28:53 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726832AbfLWO17 (ORCPT + 99 others); Mon, 23 Dec 2019 09:27:59 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33172 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfLWO17 (ORCPT ); Mon, 23 Dec 2019 09:27:59 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 8D11B292129 Subject: Re: [PATCH v22 2/2] drm/bridge: Add I2C based driver for ps8640 bridge To: Nicolas Boichat Cc: lkml , Collabora Kernel ML , Matthias Brugger , Hsin-Yi Wang , Jitao Shi , Daniel Kurtz , Ulrich Hecht , linux-arm Mailing List , Andrzej Hajda , Jonas Karlman , dri-devel@lists.freedesktop.org, Neil Armstrong , "moderated list:ARM/Mediatek SoC support" , David Airlie , Jernej Skrabec , Laurent Pinchart , Daniel Vetter References: <20191220081738.1895-1-enric.balletbo@collabora.com> <20191220081738.1895-3-enric.balletbo@collabora.com> <05db638b-02a6-0e3a-43ed-44a0a1458d87@collabora.com> From: Enric Balletbo i Serra Message-ID: <1c68fa67-c4c4-ea78-bfe4-6344799bbf46@collabora.com> Date: Mon, 23 Dec 2019 15:27:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, On 23/12/19 10:14, Nicolas Boichat wrote: > On Mon, Dec 23, 2019 at 3:10 PM Enric Balletbo i Serra > wrote: >> >> Hi Nicolas, >> >> Many thanks for you review. Just preparing a new version with your comments >> addressed. >> >> On 20/12/19 9:44, Nicolas Boichat wrote: >>> On Fri, Dec 20, 2019 at 4:17 PM Enric Balletbo i Serra >>> wrote: >>>> >>>> From: Jitao Shi >>>> >>>> This patch adds drm_bridge driver for parade DSI to eDP bridge chip. >>>> >>>> Signed-off-by: Jitao Shi >>>> Reviewed-by: Daniel Kurtz >>>> Reviewed-by: Enric Balletbo i Serra >>>> [uli: followed API changes, removed FW update feature] >>>> Signed-off-by: Ulrich Hecht >>>> Signed-off-by: Enric Balletbo i Serra >>>> --- >> [snip] >>>> + ret = i2c_smbus_write_byte_data(client, PAGE2_MCS_EN, >>>> + status & ~MCS_EN); >>>> + if (ret < 0) { >>>> + DRM_ERROR("failed write PAGE2_MCS_EN: %d\n", ret); >>>> + goto err_regulators_disable; >>>> + } >>>> + >>>> + ret = ps8640_bridge_unmute(ps_bridge); >>>> + if (ret) >>>> + DRM_ERROR("failed to enable unmutevideo: %d\n", ret); >>> >>> failed to unmute? Or failed to enable? >>> >> >> failed to unmute sound more clear to me. > > I may be wrong, but I have the feeling that the functions > "mute/unmute" video/display, actually... And that the function naming > is strange... > Yes, that's strange. > You could just try to remove the calls, as there is no audio on the > board you have (elm), so if video still works, maybe this is actually > audio ,-) > And without those the display doesn't work. So I suspect that what is wrong and confusing is the message, instead of mute/unmute, and based on the register names this looks more like an internal regulator that you need to enable and disable, so I'll change the error message accordingly. Thanks, Enric > Thanks, >