Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3757736pxk; Tue, 22 Sep 2020 01:31:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyosu4AUIdfFobHktnL+hGtQSxfiiGqzbyni0TSqW450FknX+kNKcpULqxCLs1DzDsXEz2D X-Received: by 2002:a05:6402:1b9a:: with SMTP id cc26mr2747115edb.30.1600763514075; Tue, 22 Sep 2020 01:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763514; cv=none; d=google.com; s=arc-20160816; b=AVwGB0PYVJQxfpRStM8LcvSGN+e1NYEWGZyhudoXwINiDT3RSV3T3fA+nmwPIivyMo bj/h+ZiD35+b++WHOTACEmkNfewKEDgX/g227/845OtFcg+mXrMW/BeS13k0+Mar8jDv RFE06gWYFmcBO8rqsNDP/X9zPSokv905ZR7CCTb9PFRhDy1g4sdgAN+JNB1Wh+qz0YND qTxmWbH/NoGnTDw4+bR5S/yYVGPiIJogptNrx37JOxXhUiI1wRg1WU0u9P7SuajiOphZ HLTLuiM3a6IGVobI2w0MIf0AvQG9A1k2drd3uJIrjh1l01GOSfIei9stKOr8tya9TnBH eKMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=GFv1nABo54BcDmBoX4P46/k/SsvEWFxKc+L2XE8h0Q0=; b=pb5PygKsDG9qdTc+ms7ZoroRgxmWKS+ZDasvrrhYMrcgPrFc4LWUVlVpkLln6b5SB3 mSPQKQHvTH/m+Qx4LG4wV+y6LW2ClTHAMntj2O8h+YeCg1CMpnvpq8d8YRr2f/ZuV3Sc nE7rv0FCN+1HE5KAn5p6Ou4jdtm04yUdiy7QyapZUgoVOCHOANj5dQp3fW1oBvzJa+7I y1lz3Fk7wmGCBGVvuGUf0oOCRxpMD1aJSBARjWir1uKjfDPSsRY4RJXgFUxl9iHdsK8W WbQDUj+s38or/5GqYEK/UPCSwcV6vzFvJcN1rHVMOpGKD+LkD9PBDVay8EDP2N51OrSF 4pfg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr25si9982875ejb.42.2020.09.22.01.31.30; Tue, 22 Sep 2020 01:31:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729581AbgIVHG0 (ORCPT + 99 others); Tue, 22 Sep 2020 03:06:26 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:36480 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728526AbgIVHGZ (ORCPT ); Tue, 22 Sep 2020 03:06:25 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 690638338FAEC12903A3; Tue, 22 Sep 2020 15:06:23 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 22 Sep 2020 15:06:16 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 0/2] support reading resolutions from EDID Date: Tue, 22 Sep 2020 15:03:48 +0800 Message-ID: <1600758230-13389-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org patch #1 add a new file to implements i2c adapters, #2 read the resolution from the edid, if that fails, set the resolution to fixed. and update the destroy callback function to release the i2c adapters Changes since v1: -merge patch #3 into patch #2. -add new function to_hibmc_drm_private, modify three functions in hibmc_drm_i2c.c with the newly added function. -deleting the member variable dev from the structure hibmc_connector. -modify print log incorrectly. -Modify hibmc_connector_get_modes. Tian Tao (2): drm/hisilicon: Support i2c driver algorithms for bit-shift adapters drm/hisilicon: Features to support reading resolutions from EDID drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 28 ++++++- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c | 100 +++++++++++++++++++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 40 +++++++-- 4 files changed, 163 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c -- 2.7.4