Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3901843pxk; Tue, 22 Sep 2020 05:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEvwFG+9dspBXwNIzNHHpmIn7pIUoD6NsN3bzU2fX17IE4RF/q7Bqtis7PhrsimVuHieyM X-Received: by 2002:a17:906:fb04:: with SMTP id lz4mr4791046ejb.535.1600778940188; Tue, 22 Sep 2020 05:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600778940; cv=none; d=google.com; s=arc-20160816; b=qaHMlbWFz0T2yRaPeyqJA10KM6XAqjZvJyoMy+rUamCUkp4DMOtAqXMCSlAF9b/Xee dZ8KnapXSXxrp+h5x5L8JEdYKnceX/rVnrFxVr13FKGj9fqWajoUZS6E9NB2kyFJ8lA9 s7L7ETd0PwKWoh6e508xQs8vpNFYEAwGc7ufPGh6fwWgpTlwUnxhjDANHiZWGfBQ9gm7 6TnWThzL0IF1SrfymK1+FGVT1Lfg4IDXVS4mLk8n7q2w5z4ZX1tQR9rY/4V//xjk4xLC bPPvOv+pYtW9seJSCkUKKGlW+yvhRW0BtXJMa7O4OgwnbJZVsrZvS7vamQLiqx2/D9Nr uOVQ== 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=BzkLta4ID5+R99oDJe6Jth3NIhO0OtHxuSuCGv3Al1A=; b=WKtGsZLx9izAVtCg918tHLoXIWh0IEzk75nqbU2P8cSHcF1YFtTZMNimYp59VhfNJY 6GiuWd3na8hHxc6siTYnVLqvfJHlVvVOJgQLykZHPuO2lUfoWZUnI/+0L1+palNpDrT7 MLR2T3lax+5owqee+EEJg85PGwUouBq+wvSA0MxGUu0ypzBIGR829y1MrrvQF2u7YqPI KhHG5ZGVu10WcH4bZjv8QMJDcYGMDH5xHmxVtzBFIfgZ0yJy1hmfWiQPd/tHCSplPN9a PsR/2OzbZuRI8S3TPwdKswKG/ErF8P+wBuNaduBTAeQq5ybDdquCCycRgs3YQzgftAmq +0Vg== 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 f7si10953756ejt.351.2020.09.22.05.48.36; Tue, 22 Sep 2020 05:49:00 -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 S1726694AbgIVMrM (ORCPT + 99 others); Tue, 22 Sep 2020 08:47:12 -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