Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3247pxu; Thu, 3 Dec 2020 17:27:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwypTzVK44cUnW+iG2anSxBEkweJUa2pwsIrtweQXx1+Gk88APiD6BwH+wQU491DYot/7FD X-Received: by 2002:aa7:cb49:: with SMTP id w9mr4992961edt.357.1607045224331; Thu, 03 Dec 2020 17:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045224; cv=none; d=google.com; s=arc-20160816; b=DcggkMP6Rjyh6FdYQ2EwQcwH8byeBur3EErE3RjLKLnKfuNJ/1YuSQPcIMrgixTbC7 ZuotIk2lHJ+KpNCyjyoaHI24ne951ADdat1d3QMd44x7ycayd4iumu/c+Af6vyD1usMP iLOnPuEwa7FQPYKwi6fUDzI9TQ06Y7w0m4QQqudK/4TE82gI9rejSalXy1uLtX0MCWW+ CLKOfUzNpajXJ1Hv3w017Bi9a4IfjL9t0EI335v9buPbXng6KzVse34bHg0bCXOArSBV ZYk54ONrMt7wHd59igf9u+yUxT6n2ZEmuBsGxW7DfBeYPsW/MnYh4ndrVZ7XE/tj61CP ZQZg== 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=FDogL6+Y2CJ1MMq1bsNo66/xjmCkuB/8PR7WTWvts1AKblVQVUbL+pBYcVZg9a5gmu QBzxppu+4u/7u7aK7lIFT2zDoFP6IR0wgcclgGbH6qeX9Tq7IIfgHIPv7pJxdF0kO4sm ScwqeP2zFBkI3HjDRlOWXjwFg09crjRdKxR7c0lfq3BEq83rMp15RjNQQp7fffWe67ZM i5qmIsRNK0R8aZnm0SwyfkOs6hlorGuXyuDuNYQ06Ps1ADhiG6eSH0FZ8e53dna+TIJF 0JUDWOxICZvGlflEesnc69FWEEwJwAALj9Ynh9ZRGZMMFYMDe0Waf+v9L61YRo31QSSL wZ1g== 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 ay17si444000ejb.702.2020.12.03.17.26.41; Thu, 03 Dec 2020 17:27:04 -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 S1730233AbgLDBX5 (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:57 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9000 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728585AbgLDBXs (ORCPT ); Thu, 3 Dec 2020 20:23:48 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CnFLk5RBvzhmDb; Fri, 4 Dec 2020 09:22:38 +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; Fri, 4 Dec 2020 09:23:03 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon 0/3] support reading resolutions from EDID Date: Fri, 4 Dec 2020 09:23:06 +0800 Message-ID: <1607044999-47666-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