From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7871CC2D0E2 for ; Tue, 22 Sep 2020 12:47:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2FA8B2395C for ; Tue, 22 Sep 2020 12:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbgIVMrN (ORCPT ); Tue, 22 Sep 2020 08:47:13 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14213 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726605AbgIVMrG (ORCPT ); Tue, 22 Sep 2020 08:47:06 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7C254AA28BC1671FAC51; Tue, 22 Sep 2020 20:47:03 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 22 Sep 2020 20:46:56 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon v3 0/2] support reading resolutions from EDID Date: Tue, 22 Sep 2020 20:44:28 +0800 Message-ID: <1600778670-60370-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. Changes since v2: -rewrite the function to_hibmc_drm_private, and rename GPIO_SCL_MASK to I2C_SCL_MASK 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 | 25 +++++- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c | 99 ++++++++++++++++++++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 38 ++++++++- 4 files changed, 158 insertions(+), 6 deletions(-) create mode 100644 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c -- 2.7.4