Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp601359pxk; Sun, 30 Aug 2020 16:06:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyghgHlBtwFKUUV2CEvNVusvNOlB5WemjtsW9ouzvo75Yt58gj6kJBNM9WB7SE4v0Wpj4dW X-Received: by 2002:aa7:c805:: with SMTP id a5mr8720500edt.60.1598828783372; Sun, 30 Aug 2020 16:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598828783; cv=none; d=google.com; s=arc-20160816; b=dfW/Hn+jHEdwBAYkuuxYKX4qNTO2VjNNEEd7ZzHU1nHj6JRaf3y1zl++jA4Y0K3JIy /cDlD45su3ly7ga5fPAZNiaTGLlBcUhAEwG3sQWDrz3GtAcVklm2RfrBoq/FyVNSD2p6 ijlRqwh/1OQ24Zoy7s90B/IsX9bZFmYmKdFygAgOTciOpimef4P9igaZiLSkhWwlHb15 02OEMJQHQm0T63UG1PLI4cvt+9fEy+B4uqtoqb9y9QpI6afwA9lZMB+VaWalds2spGRa 7mS3EtGs/VMAiRjQS8Mi5Cd6rGWUOun8EgzLVFHJdQ8H1h5Z7VwSl2KHHdFSRHbb2tzp 1pqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AtWa6plbLjaIdDHi5b4HxAO8E1WkUzVxXV8RyL+Tjcc=; b=0RRAgMDVGtNkhWGw1YZ730RtsT1W5ye1eKPZWJTQHxei9MVrkYbwcL1NWCmrZqZTMW TX3umMBkZ8uaWY8hcp8U6hhwAZE8Rj2WPuYvTvpcXg5lGzVczinmG81eSLxVTgFHZ9xg HJZcbBzUQmRVZ6GDwBu/GPjBtyB/SpkaeG6higqO7rjQmkIsWt2DWYp/8/E1FQ6Csa0e wT2AGNG2SzjIGNoQY/4brSGwumBO2Y3KZXYFDPtryX4Sbnhfiu49dEtCW8tWBDz/52la iUv2PvNJh027ZMQ8XjQNuoh5D9TRLSlHbeDuLIckPOsG/iJWZ6EhkclJhp2ufyINaV97 3iiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=00rebebq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh25si4421127ejb.468.2020.08.30.16.06.00; Sun, 30 Aug 2020 16:06:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=00rebebq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726459AbgH3XDR (ORCPT + 99 others); Sun, 30 Aug 2020 19:03:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgH3XDP (ORCPT ); Sun, 30 Aug 2020 19:03:15 -0400 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8EBD620DD4 for ; Sun, 30 Aug 2020 23:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598828594; bh=Cvr5OghpLzsGKgg/UDXyIS9pWMy49TOxwrsQO7AzrRw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=00rebebq5NnJTbSyundIXPzMrG5hmat1n5RLOQ7gm08V0u61n8sj7h3FMMl2Z7kYt 1zI8EG2bjrz7uSiIasVt6jHHcXhCpqqqkykcH2U/TgVp/xnqrFUnV+wZlEuE/9Pbtk WjjkczGudUQiW7OC+fEPKasOpYtUrBVYDb45uXmY= Received: by mail-ej1-f52.google.com with SMTP id m22so6035911eje.10 for ; Sun, 30 Aug 2020 16:03:14 -0700 (PDT) X-Gm-Message-State: AOAM532VDSJJy98sw7ADh8NjuqtO/S3+JNKxpynFsXAcops1I8fjyA/N URPn3ZIgtcSQfRk36nKd+ASVXNQvVW9UME+qUw== X-Received: by 2002:a17:906:f957:: with SMTP id ld23mr9152920ejb.187.1598828593030; Sun, 30 Aug 2020 16:03:13 -0700 (PDT) MIME-Version: 1.0 References: <20200823014830.15962-1-chunkuang.hu@kernel.org> <20200823014830.15962-4-chunkuang.hu@kernel.org> In-Reply-To: <20200823014830.15962-4-chunkuang.hu@kernel.org> From: Chun-Kuang Hu Date: Mon, 31 Aug 2020 07:03:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 3/4] phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder To: Chun-Kuang Hu Cc: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Chunfeng Yun , Kishon Vijay Abraham I , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" , CK Hu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Chunfeng & Kishon: How do you feel about this patch? Regards, Chun-Kuang. Chun-Kuang Hu =E6=96=BC 2020=E5=B9=B48=E6=9C=8823= =E6=97=A5 =E9=80=B1=E6=97=A5 =E4=B8=8A=E5=8D=889:48=E5=AF=AB=E9=81=93=EF=BC= =9A > > From: CK Hu > > mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's > more suitable to place a phy driver into phy driver folder, so move > mtk_hdmi_phy driver into phy driver folder. > > Signed-off-by: CK Hu > Signed-off-by: Chun-Kuang Hu > --- > drivers/gpu/drm/mediatek/Kconfig | 7 ------- > drivers/gpu/drm/mediatek/Makefile | 6 ------ > drivers/phy/mediatek/Kconfig | 7 +++++++ > drivers/phy/mediatek/Makefile | 5 +++++ > .../mediatek/phy-mtk-hdmi-mt2701.c} | 2 +- > .../mediatek/phy-mtk-hdmi-mt8173.c} | 2 +- > .../mtk_hdmi_phy.c =3D> phy/mediatek/phy-mtk-hdmi.c} | 2 +- > .../mtk_hdmi_phy.h =3D> phy/mediatek/phy-mtk-hdmi.h} | 0 > 8 files changed, 15 insertions(+), 16 deletions(-) > rename drivers/{gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c =3D> phy/mediatek= /phy-mtk-hdmi-mt2701.c} (99%) > rename drivers/{gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c =3D> phy/mediatek= /phy-mtk-hdmi-mt8173.c} (99%) > rename drivers/{gpu/drm/mediatek/mtk_hdmi_phy.c =3D> phy/mediatek/phy-mt= k-hdmi.c} (99%) > rename drivers/{gpu/drm/mediatek/mtk_hdmi_phy.h =3D> phy/mediatek/phy-mt= k-hdmi.h} (100%) > > diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/= Kconfig > index 6363f2c1cdbc..65cd03a4be29 100644 > --- a/drivers/gpu/drm/mediatek/Kconfig > +++ b/drivers/gpu/drm/mediatek/Kconfig > @@ -27,10 +27,3 @@ config DRM_MEDIATEK_HDMI > select PHY_MTK_HDMI > help > DRM/KMS HDMI driver for Mediatek SoCs > - > -config PHY_MTK_HDMI > - tristate "MediaTek HDMI-PHY Driver" > - depends on ARCH_MEDIATEK && OF > - select GENERIC_PHY > - help > - Support HDMI PHY for Mediatek SoCs. > diff --git a/drivers/gpu/drm/mediatek/Makefile b/drivers/gpu/drm/mediatek= /Makefile > index fcbef23aa6ce..77b0fd86063d 100644 > --- a/drivers/gpu/drm/mediatek/Makefile > +++ b/drivers/gpu/drm/mediatek/Makefile > @@ -22,9 +22,3 @@ mediatek-drm-hdmi-objs :=3D mtk_cec.o \ > mtk_hdmi_ddc.o > > obj-$(CONFIG_DRM_MEDIATEK_HDMI) +=3D mediatek-drm-hdmi.o > - > -phy-mtk-hdmi-drv-objs :=3D mtk_hdmi_phy.o \ > - mtk_mt2701_hdmi_phy.o \ > - mtk_mt8173_hdmi_phy.o > - > -obj-$(CONFIG_PHY_MTK_HDMI) +=3D phy-mtk-hdmi-drv.o > diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig > index dee757c957f2..50c5e9306e19 100644 > --- a/drivers/phy/mediatek/Kconfig > +++ b/drivers/phy/mediatek/Kconfig > @@ -35,3 +35,10 @@ config PHY_MTK_XSPHY > Enable this to support the SuperSpeedPlus XS-PHY transceiver fo= r > USB3.1 GEN2 controllers on MediaTek chips. The driver supports > multiple USB2.0, USB3.1 GEN2 ports. > + > +config PHY_MTK_HDMI > + tristate "MediaTek HDMI-PHY Driver" > + depends on ARCH_MEDIATEK && OF > + select GENERIC_PHY > + help > + Support HDMI PHY for Mediatek SoCs. > diff --git a/drivers/phy/mediatek/Makefile b/drivers/phy/mediatek/Makefil= e > index 08a8e6a97b1e..6325e38709ed 100644 > --- a/drivers/phy/mediatek/Makefile > +++ b/drivers/phy/mediatek/Makefile > @@ -6,3 +6,8 @@ > obj-$(CONFIG_PHY_MTK_TPHY) +=3D phy-mtk-tphy.o > obj-$(CONFIG_PHY_MTK_UFS) +=3D phy-mtk-ufs.o > obj-$(CONFIG_PHY_MTK_XSPHY) +=3D phy-mtk-xsphy.o > + > +phy-mtk-hdmi-drv-y :=3D phy-mtk-hdmi.o > +phy-mtk-hdmi-drv-y +=3D phy-mtk-hdmi-mt2701.o > +phy-mtk-hdmi-drv-y +=3D phy-mtk-hdmi-mt8173.o > +obj-$(CONFIG_PHY_MTK_HDMI) +=3D phy-mtk-hdmi-drv.o > diff --git a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c b/drivers/phy= /mediatek/phy-mtk-hdmi-mt2701.c > similarity index 99% > rename from drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c > rename to drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c > index 99fe05cd3598..a6cb1dea3d0c 100644 > --- a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c > +++ b/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c > @@ -4,7 +4,7 @@ > * Author: Chunhui Dai > */ > > -#include "mtk_hdmi_phy.h" > +#include "phy-mtk-hdmi.h" > > #define HDMI_CON0 0x00 > #define RG_HDMITX_DRV_IBIAS 0 > diff --git a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c b/drivers/phy= /mediatek/phy-mtk-hdmi-mt8173.c > similarity index 99% > rename from drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c > rename to drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c > index 827b93786fac..6cdfdf5a698a 100644 > --- a/drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c > +++ b/drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c > @@ -4,7 +4,7 @@ > * Author: Jie Qiu > */ > > -#include "mtk_hdmi_phy.h" > +#include "phy-mtk-hdmi.h" > > #define HDMI_CON0 0x00 > #define RG_HDMITX_PLL_EN BIT(31) > diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c b/drivers/phy/mediat= ek/phy-mtk-hdmi.c > similarity index 99% > rename from drivers/gpu/drm/mediatek/mtk_hdmi_phy.c > rename to drivers/phy/mediatek/phy-mtk-hdmi.c > index fe022acddbef..8fc83f01a720 100644 > --- a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.c > +++ b/drivers/phy/mediatek/phy-mtk-hdmi.c > @@ -4,7 +4,7 @@ > * Author: Jie Qiu > */ > > -#include "mtk_hdmi_phy.h" > +#include "phy-mtk-hdmi.h" > > static int mtk_hdmi_phy_power_on(struct phy *phy); > static int mtk_hdmi_phy_power_off(struct phy *phy); > diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_phy.h b/drivers/phy/mediat= ek/phy-mtk-hdmi.h > similarity index 100% > rename from drivers/gpu/drm/mediatek/mtk_hdmi_phy.h > rename to drivers/phy/mediatek/phy-mtk-hdmi.h > -- > 2.17.1 >