Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2860pxu; Thu, 3 Dec 2020 17:26:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVGmO96t3H1eVdXjmmGq+yZB5dXWAGjso7mT+BxguAjCDMP09N7idLWIGwH/dZRfFEZQ4z X-Received: by 2002:a17:906:b79a:: with SMTP id dt26mr4818965ejb.337.1607045179169; Thu, 03 Dec 2020 17:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045179; cv=none; d=google.com; s=arc-20160816; b=u7v6riFtH7zApsjHX/e6Hd5G5M4azzHrk9DKAe01FsfNzRU3WTej0x6B1CF7vkOS8E vug+w+UDyvgxz12vW4Pbyr65s6OauQ7ItwnJa+Y8aTIhTDme1FYGqBS2nPLRyaHvNpqo Wf/NB9S7n215lClRWSgNbsD5JQ+kMzVAoB8dK2xO06k5h/Qpv9KNpiwJCaH0SVI7fFf9 GUb+sBfKQqqdBMPPrW4MkG0Td7MwHzcmpGTxVpfym+lTp6fworSgBU7oS7p6PekTxzmk ZreKtAGcfnPta9Ljm01XcGANSFYQkxAM2z5LFhxYzz4I3yBPP1D3LZhDBOUweYLoV6uy cKEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from; bh=W/GNF2hGG24/ErUBYNyQHaptQAWOImVPS+QGN76mGbQ=; b=Dq7OgkqJ06+CveRfKGzHgW+9VonfvxDDVSctet4iWlwmLsN/rmUiPvlzoc5VN/ml6a 7NnHbYAA/y/LDU2VeMr+ikCKZaLiyQvsVwOkfPXt+m6o8jFG9o9xTDIneYwBSphRFw5r xsIT7tXrrnEpMlR7LjlSJcQ9Mt+tvuxQxTU3uqmX7D2Q32lqS2SKMo8ypGzBqa8hqBJe ZgNOKZfE5/Pp/Q/u9JdHO6tAdPVPZxHXedRSx8272TmVgLjY6cQ8qi/ivMNodYNlEoG/ Yq5KSZyRAUwVTviwtkF3k9re8Akgxx+Oh+bXJVJpNlzRPGRi6ta4O+IooYp99p5FgPk+ eU9Q== 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 p18si2274218eds.125.2020.12.03.17.25.56; Thu, 03 Dec 2020 17:26:19 -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 S2389062AbgLDBXw (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:52 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8631 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388825AbgLDBXw (ORCPT ); Thu, 3 Dec 2020 20:23:52 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFLq3txfz15Vft; Fri, 4 Dec 2020 09:22:43 +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:08 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon v3 0/2] support reading resolutions from EDID Date: Fri, 4 Dec 2020 09:23:19 +0800 Message-ID: <1607044999-47666-14-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> References: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> 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 funtion 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