From patchwork Fri Jul 19 12:25:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 169247 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3794748ilk; Fri, 19 Jul 2019 05:25:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhygkPkRBybfH+O5MMmJ687YkKcp2/DRkLfF0+HnwH0A9K0nXSBaR0PuHIoLPtsjNlTAtQ X-Received: by 2002:a63:9e43:: with SMTP id r3mr28889530pgo.148.1563539145194; Fri, 19 Jul 2019 05:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563539145; cv=none; d=google.com; s=arc-20160816; b=GHevMTBIE3pg7BQ+rqv1QFWv/wh5TE1KVcB0Mb6J6bY89jsqkazKAphWFRlz1HwUqs gmuRxrWPPciK5lNJRfDidQy2153zMgNmKSt4wVf5AoQfvi/uw/abOmaGvhNLzQ5LduqC G3zYpb/pYkkwIiTdXfKj2zSf3remw7pKhvFM85dNYUg/yXCpGcJRRZ88kwsv8EdKzjNM 4PHWKvm4Uvq9+uFq/SWp+1s8mv4F1XgEIrfUw1reKrjA5tH05btpp93tjZan/2WEM6KJ DsjkL3rxY+u1Bqy9hY2RoYuzn+ZL8gnamVkA7ecr5aLO0CQ3hdVwI8Gr9IyPC3Bs/5mE 3heA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ZkJKWho2ClrEqfnUpDTH/xfBXBjcM+BhDvk5JIuR9Jc=; b=IIgyvWv9qk9o+vhJayx0TdEaT7iyBGHbf3+sTOzfDGL7gHKw1pKxItpDm/3zU62f8Q Lx8vSVnba+luGEvRtJCPDe9XptKTKStOsebitYqZG2zolPpDOv5GmUS0FpcSK44L8VjJ Lzyox8AGUIsKTLMkflLyzPYAFHfFBckS2M2Ah4Nb8nRv4U/jb22Pmwoo34kIHx68cgI5 dlywKTUWv+JfTJjpYihLyMPguUqa+3W7GyiaCCu2EJWBH0NGg9Qo6fCbw3Xq1OvQPqjy 8+FWiUNoJy/P8u5A72nrrLj2ulKiEQKpsl+I+l+Bqzfg6OnIpBdjT0/bggjjcwydRGW9 aDiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GV9+iVN/"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si283467pga.407.2019.07.19.05.25.44; Fri, 19 Jul 2019 05:25:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="GV9+iVN/"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728166AbfGSMZo (ORCPT + 3 others); Fri, 19 Jul 2019 08:25:44 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47302 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbfGSMZo (ORCPT ); Fri, 19 Jul 2019 08:25:44 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190719122543euoutp02675ae91d7ba42ada265f97c1a8c922d6~yzpEVT2lo2508525085euoutp02K for ; Fri, 19 Jul 2019 12:25:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190719122543euoutp02675ae91d7ba42ada265f97c1a8c922d6~yzpEVT2lo2508525085euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563539143; bh=ZkJKWho2ClrEqfnUpDTH/xfBXBjcM+BhDvk5JIuR9Jc=; h=From:To:Cc:Subject:Date:References:From; b=GV9+iVN/pilqUPir3EvADoEpImt88QXgGpf+c9DSpXIoicsISn8ys+FzM4E/fqwns XppsKBePc7I6b+4MBLR1i8Sh5i/PnijNZPaZhtkMnbgl8yiAVnf5p4H39XPgZYglEL pU0pk8rpzFKbuxgixDPWbEaVItA7pD2avjaT5FgE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190719122542eucas1p2fec19789ea42d61b6eb9df50fd0bdbb4~yzpD02QXr2925729257eucas1p2N; Fri, 19 Jul 2019 12:25:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 46.16.04298.6C6B13D5; Fri, 19 Jul 2019 13:25:42 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190719122541eucas1p2448ec705f84347c0a79732883daeb2b4~yzpDGyAAe0324603246eucas1p2M; Fri, 19 Jul 2019 12:25:41 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190719122541eusmtrp2e746679023378e3301c751821a0905f3~yzpC4tkfV2814328143eusmtrp2g; Fri, 19 Jul 2019 12:25:41 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-b1-5d31b6c66fb7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 95.45.04140.5C6B13D5; Fri, 19 Jul 2019 13:25:41 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190719122541eusmtip2a19a3ae7e05f05acf108082c2e80e1be~yzpCdNE8t2842128421eusmtip2B; Fri, 19 Jul 2019 12:25:41 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH] phy: samsung: disable bind/unbind platform driver feature Date: Fri, 19 Jul 2019 14:25:32 +0200 Message-Id: <20190719122532.29591-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsWy7djP87rHthnGGuw5JWqxccZ6VosLT3vY LM6f38BucXnXHDaLGef3MVksWtbKbLH2yF12B3aPTas62Tz6tqxi9Dh+YzuTx+dNcgEsUVw2 Kak5mWWpRfp2CVwZzxezFmyVrTj+7Q1bA+MiyS5GTg4JAROJ5eemMHYxcnEICaxglJi24TYT SEJI4AujxMHWKAj7M6PEiT0cMA13d55hh4gvZ5S49pkXohmo/tyS+WDNbAKGEl1vu9hAbBEB B4klS++wgRQxC1xjlHje+AqsSFjAS+L5tOMsIDaLgKrEufPHWEFsXgFbifVzJrNCbJOXWL3h ADNIs4TAGTaJu/t/sUEkXCR+NL1mgrCFJV4d38IOYctI/N8JcgVIQzOjxMNza9khnB5GictN MxghqqwlDh+/CLSCA+gmTYn1u/Qhwo4Smx+fZgYJSwjwSdx4KwgSZgYyJ22bDhXmlehoE4Ko VpOYdXwd3NqDFy4xQ9geEifv7mKFhFCsxPmF09kmMMrNQti1gJFxFaN4amlxbnpqs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vLD7e+k/oULzYr5sjkeQdipXef lpFZZX9HK/TKt0ztGXxz9qbdDft4U7FYafpx0SVnZyuxFGckGmoxFxUnAgBAgHK4UgIAAA== X-CMS-MailID: 20190719122541eucas1p2448ec705f84347c0a79732883daeb2b4 X-Msg-Generator: CA X-RootMTR: 20190719122541eucas1p2448ec705f84347c0a79732883daeb2b4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190719122541eucas1p2448ec705f84347c0a79732883daeb2b4 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Samsung PHY drivers control the power to the SoC core components needed by their client devices (USB HCDs, SATA, camera ISP bridge, DP encoder) to properly operate. Disabling PHYs in runtime usually causes the client device to crash with external abort exception or similar issue due to lack of API to notify clients about PHY removal. This patch removes the possiblity to unbind Samsung Exynos PHY drivers in runtime. Signed-off-by: Marek Szyprowski --- drivers/phy/samsung/phy-exynos-dp-video.c | 1 + drivers/phy/samsung/phy-exynos-mipi-video.c | 1 + drivers/phy/samsung/phy-exynos-pcie.c | 1 + drivers/phy/samsung/phy-exynos5-usbdrd.c | 1 + drivers/phy/samsung/phy-exynos5250-sata.c | 1 + drivers/phy/samsung/phy-samsung-usb2.c | 1 + 6 files changed, 6 insertions(+) -- 2.17.1 diff --git a/drivers/phy/samsung/phy-exynos-dp-video.c b/drivers/phy/samsung/phy-exynos-dp-video.c index aebd216dcf2f..6c607df1dc9a 100644 --- a/drivers/phy/samsung/phy-exynos-dp-video.c +++ b/drivers/phy/samsung/phy-exynos-dp-video.c @@ -109,6 +109,7 @@ static struct platform_driver exynos_dp_video_phy_driver = { .driver = { .name = "exynos-dp-video-phy", .of_match_table = exynos_dp_video_phy_of_match, + .suppress_bind_attrs = true, } }; module_platform_driver(exynos_dp_video_phy_driver); diff --git a/drivers/phy/samsung/phy-exynos-mipi-video.c b/drivers/phy/samsung/phy-exynos-mipi-video.c index 3784bf100b95..bb51195f189f 100644 --- a/drivers/phy/samsung/phy-exynos-mipi-video.c +++ b/drivers/phy/samsung/phy-exynos-mipi-video.c @@ -359,6 +359,7 @@ static struct platform_driver exynos_mipi_video_phy_driver = { .driver = { .of_match_table = exynos_mipi_video_phy_of_match, .name = "exynos-mipi-video-phy", + .suppress_bind_attrs = true, } }; module_platform_driver(exynos_mipi_video_phy_driver); diff --git a/drivers/phy/samsung/phy-exynos-pcie.c b/drivers/phy/samsung/phy-exynos-pcie.c index 1b4ba8bdb43c..659e7ae0a6cf 100644 --- a/drivers/phy/samsung/phy-exynos-pcie.c +++ b/drivers/phy/samsung/phy-exynos-pcie.c @@ -272,6 +272,7 @@ static struct platform_driver exynos_pcie_phy_driver = { .driver = { .of_match_table = exynos_pcie_phy_match, .name = "exynos_pcie_phy", + .suppress_bind_attrs = true, } }; diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index f07edd80d2f3..7f6279fb4f8f 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -955,6 +955,7 @@ static struct platform_driver exynos5_usb3drd_phy = { .driver = { .of_match_table = exynos5_usbdrd_phy_of_match, .name = "exynos5_usb3drd_phy", + .suppress_bind_attrs = true, } }; diff --git a/drivers/phy/samsung/phy-exynos5250-sata.c b/drivers/phy/samsung/phy-exynos5250-sata.c index 9e5fc126032c..4dd7324d91b2 100644 --- a/drivers/phy/samsung/phy-exynos5250-sata.c +++ b/drivers/phy/samsung/phy-exynos5250-sata.c @@ -237,6 +237,7 @@ static struct platform_driver exynos_sata_phy_driver = { .driver = { .of_match_table = exynos_sata_phy_of_match, .name = "samsung,sata-phy", + .suppress_bind_attrs = true, } }; module_platform_driver(exynos_sata_phy_driver); diff --git a/drivers/phy/samsung/phy-samsung-usb2.c b/drivers/phy/samsung/phy-samsung-usb2.c index 6c82f4fbe8a2..090aa02e02de 100644 --- a/drivers/phy/samsung/phy-samsung-usb2.c +++ b/drivers/phy/samsung/phy-samsung-usb2.c @@ -250,6 +250,7 @@ static struct platform_driver samsung_usb2_phy_driver = { .driver = { .of_match_table = samsung_usb2_phy_of_match, .name = "samsung-usb2-phy", + .suppress_bind_attrs = true, } };