Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7033pxu; Thu, 3 Dec 2020 17:33:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWFTTL5Y8B+yl5gn1PmG33SZVDIAWWlKbU3rEyip4I9Co+YmV8Ya5VPXul8/318R2FpbR/ X-Received: by 2002:a17:906:1b04:: with SMTP id o4mr5001546ejg.531.1607045597010; Thu, 03 Dec 2020 17:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045597; cv=none; d=google.com; s=arc-20160816; b=y1oHHQnhrLt4Yo329ignnX2z81LwAgquuiiu5NGjb0v4tQxgtZrhF8+gZyR1ScrJL5 ghXLFvHsrYK7dhs70PnE2w5EPQwVKo9/8TNGnP9lO5Iol5zXH3Qw59sUvIYPyZBP/RGn Em4ULREEljedRyOeA9X7ahB+buoXrdVCwBIs3HY73frjfpurynaTPizrnswcFJR7PysL HYqh4yb+uN9Yid9LTfh/lyFgW2PT/AiiOkAOeQ1vItO/4u5HD5woICzI/XPq5XUJb6bz i48vGqLtj7ZbqXJEFEZZkUgSMdmr4OBiyqURBuib6GQ+mDM8tvfjhIHX5KT4A7EuBsqQ ufBA== 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:to:from; bh=GGZBmnSI5QsCUQOeJDl/Wzh+CvQwztIprZKzVlmIxJE=; b=HoRmowO0azcITWoYDqTLE2IlZDCPgyd/1pKqsrO3z2F1GQa4ZTDEN7SMYI6I5XcuOi U0qMqEntuCWF7+ummcvOwrGh2dLA1aiXkoVkOlUxN9ar67BHaovqTK/f1u8LAtu0pQEA sV+u5yfViGx96wezMUcwK8TlQTqtOL3LhLpEG5pkdIYLbiRTqSSGtJLGiCVrqDY3vTOc 09k+3LWuqPi7ZvUOc9B+ALeKbvckXJvNw/su3kJsCYBkQuNVxcfCzKycZlqjYGg9Z+62 AJWYzvGINeJm5cIW73qAjjMrv+X644JwS1vG1GJyITdCeDaUcxrZJBqhpks1MR5x6i1N tWBA== 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 dp16si484051ejc.625.2020.12.03.17.32.54; Thu, 03 Dec 2020 17:33:17 -0800 (PST) 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 S1729076AbgLDB3R (ORCPT + 99 others); Thu, 3 Dec 2020 20:29:17 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9372 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbgLDB3R (ORCPT ); Thu, 3 Dec 2020 20:29:17 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CnFT31rVvz740C; Fri, 4 Dec 2020 09:28:07 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:28:30 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon 0/3] support reading resolutions from EDID Date: Fri, 4 Dec 2020 09:28:33 +0800 Message-ID: <1607045326-47771-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