Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1104279ybl; Wed, 11 Dec 2019 12:35:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyvEd8+9C6mgHK2OR8oF/nifZlWD64hvoCguD/0TGzThzuSrBNlJqcCa9kcQax6TPvCmYuN X-Received: by 2002:a9d:6a92:: with SMTP id l18mr3859688otq.37.1576096510744; Wed, 11 Dec 2019 12:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576096510; cv=none; d=google.com; s=arc-20160816; b=dpD5e35bS9J9GrMVbS6vNPzXjq4MtUUe+5U3yK9GOGqrzbEF97GXeCj/GDlEb5X5jI plrcGW8jpSZLNogH3J8T08Q8DVUAgZz6fuxKE0Jd98ZsJW+VbwvBaawRadS/uN/Kh3Pw mB3hmTRkwxxA3CAzFU9hY5fclFja228jlw/fEzygFUyH5cANJc8DSuv+KymBwQRyAl1E lyohGtgaRFQYJL46Fajz28h/cxwaEt1+bIb5plupG5qcgsbMbTM4g2Uz0UdS5oGzLN/E 5LLsWwftwN1330QshLeESDl3GOy/d9mXMXqPiBTmFCR9WSaMiBReODGH2dvL3BYE2jKF 5lSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ay3f3rT2lIE/YLLclQUtZpfeBy9nlJ24/EEgRhfGiC0=; b=QdhBAT1uUXsMMdrateWMyZkbPE0u7YjkqsuuiEaZgxmU3aKLBdlozZrdafWBCiJELk HHNbIwCvPUbN75Bhf+QyjIs9RvXsiPXuJobIlXsRG9a1rEnrrcCvESDndbYoBdiDz95K lW9AnO9+SmzeLyOX/wVOkDNKxJLaZulqkmYzPAlQqKyi3r22kcgwnLW/bazeVIicPiGS nPlD+71JLBqVWPOty9UXQ8pv/fxKhb9Ziao1kluhLDvDKpoMMpyXDe6yC+PuXeIPOTzW +MGPwBjdlmaaxPr3+zwRQzSY1ZcY4Tbbu+kSIzgAgk6b6pkaZd22Q1F36kkcCPexWDBH 6sNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PF8au3HQ; 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 g25si1870864otp.20.2019.12.11.12.34.58; Wed, 11 Dec 2019 12:35:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PF8au3HQ; 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 S1727541AbfLKUe1 (ORCPT + 99 others); Wed, 11 Dec 2019 15:34:27 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55329 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbfLKUe1 (ORCPT ); Wed, 11 Dec 2019 15:34:27 -0500 Received: by mail-wm1-f65.google.com with SMTP id q9so8681593wmj.5 for ; Wed, 11 Dec 2019 12:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ay3f3rT2lIE/YLLclQUtZpfeBy9nlJ24/EEgRhfGiC0=; b=PF8au3HQR1eqluFaFL53LckQ0Bb8b63nBLP6nikHTHqJDuxe+HOW4KYt4zwoujaqN7 4w2WsVnVazgnTClmMmFzNVeTUZjybaGKYCKUnNxQ6EZ3cVn6z2Wx022vhVpZWYhb20kr bemICY4xER1Fu4E7h5VldEUJT7GM6KwZG2sk5PmVmzk4FeKh0omelxjLQDQizS8eH+zW t1qdAHk2ucKD8l9QFqah8j30a5uH6fTtFMQsJIh0GCpDc2ZGPCL/xlCjMfXeVoC6b9Zx 2BKcBDKVNAk+aPF8Ob+45EiTqTCoYM+ceBHhmlmA9aygTeTbg6j4XrsyRuX/WoU+v+sG XXEw== 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; bh=ay3f3rT2lIE/YLLclQUtZpfeBy9nlJ24/EEgRhfGiC0=; b=eK8Dr7+OoDZe/y8ym8SQS6vWbb6mSjrokV2vqs1FC0jZzo7QI9UvxftecNyQoa+WGo 0mHl2xHd21gK5roTVbDHNOiR/rtVadBCC6Iycj199E96m7KFs/soJ+tgjv+gVrlSvfuM CfPZQNd2yE1hL2QUq72SwYSXkI0nxXMFj0oJew/C53EvKMwrBUev9ncHaxnjnGT78LRS tIM0coBz2qDCJ0u3AxXE0PFVG4GyNsCKZu5X2mE/kgHo0sA5LU2iMwzQFZ+4yk0WHQu/ LootEoC37oZmWSqzvizh1vOLvw7L7BgSldv3i4wB2Jt/nNmgpB1iTCLzgqMwtnUlFkd+ neKw== X-Gm-Message-State: APjAAAWC4U9HY61S8d/HBbvwSkHFjQte8vdX9bUscK9uxjIPosQoAToN TMrq9tkGvMSTVDP1ebI5ZxQ= X-Received: by 2002:a7b:ca4e:: with SMTP id m14mr1816757wml.120.1576096465412; Wed, 11 Dec 2019 12:34:25 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id z6sm3661709wrw.36.2019.12.11.12.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2019 12:34:24 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: hjc@rock-chips.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: rockchip: rk3066_hdmi: set edid fifo address Date: Wed, 11 Dec 2019 21:34:17 +0100 Message-Id: <20191211203417.19448-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nickey Yang Fix edid reading error when edid's block > 2. Signed-off-by: Nickey Yang Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index cdb401f42..945126948 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -640,6 +640,9 @@ static int rk3066_hdmi_i2c_write(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) if (msgs->addr == DDC_ADDR) hdmi->i2c->ddc_addr = msgs->buf[0]; + /* Set edid fifo first address. */ + hdmi_writeb(hdmi, HDMI_EDID_FIFO_ADDR, 0x00); + /* Set edid word address 0x00/0x80. */ hdmi_writeb(hdmi, HDMI_EDID_WORD_ADDR, hdmi->i2c->ddc_addr); -- 2.11.0