Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2846845pxk; Sun, 20 Sep 2020 20:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJVPOZbzEjHA9fxBJKypY5YDZ6Fk2BzLSAJCRYTOph2Ij5XqxvaDGh9BVAd6913RB1veW+ X-Received: by 2002:a17:906:1115:: with SMTP id h21mr48645704eja.273.1600658967667; Sun, 20 Sep 2020 20:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600658967; cv=none; d=google.com; s=arc-20160816; b=AP+maKqY+BjBF/KpUCJt5R9RehfVt685Ra+RAd/2WA9qPROyliOs4mNzYix9ypgHwE w38xGrZLaYRNiJGnkj6NB6oSEW69vS2a2LXAyuHeVyORUplnP5ObxTULyP6jk1DOqDgb 9DHX3TnK1zVt097gnzRGYPJIzamd3CV14JIdHnK1nNkDMVWpGPwyc7MN4arnZu8BYAVp f4YJrkdLll4OxbguatfQ7z91vvhrgK+BkTlB46Aj05wEOoQUvPpxQmi9vGRfAsRS34wM gJAKqpLzp+RItyeDwwVZDQPD2hh4HbPf+neXBsUb/54a4pTd3cUMMvJjHFa/sVDlBQec VbJA== 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=GGZBmnSI5QsCUQOeJDl/Wzh+CvQwztIprZKzVlmIxJE=; b=q/PtLEoX0gtL+BrrqW3zY1M/DRIcPWzxQVSk+pzbqolzrh3PPkJhls5Ht43j3MkeBP gySOAH7fBpJaoVtjXDRy/rXd93eZjeTiglPtXpg4/nFQG0VLIhLZ/kCiNcWq1/R/K3i7 NSZkRDTmMXxWAiYQ0nTOASRB7VyrK+0WnUHpLdm4Tfi9VMY01dSJjpKvAJtxUBTFJOFu Dg10zUbLLA+vVnGVRCvTY0MZEVWikspJddwgQbEGHSjEH68O4CLFQzmn0PU32h2TQF+s f/TxYDv0y2M7jR5swXY4aGGtm3UFMxxpCEom6ESmrY525n3zuyf6cvzi2RwnvIZO6Y2J Bkcw== 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 w6si7214328edl.52.2020.09.20.20.29.00; Sun, 20 Sep 2020 20:29:27 -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 S1726333AbgIUD17 (ORCPT + 99 others); Sun, 20 Sep 2020 23:27:59 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57276 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726196AbgIUD17 (ORCPT ); Sun, 20 Sep 2020 23:27:59 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 67816613BD200730AB87; Mon, 21 Sep 2020 11:27:56 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 11:27:47 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon 0/3] support reading resolutions from EDID Date: Mon, 21 Sep 2020 11:25:19 +0800 Message-ID: <1600658722-35945-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. patch #3 update the destroy callback function to release the i2c adapters. Tian Tao (3): drm/hisilicon: Support i2c driver algorithms for bit-shift adapters drm/hisilicon: Features to support reading resolutions from EDID drm/hisilicon: Releasing Resources in the Destroy callback Function drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 21 ++++- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c | 98 ++++++++++++++++++++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 45 +++++++++-- 4 files changed, 157 insertions(+), 9 deletions(-) create mode 100644 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c -- 2.7.4