From patchwork Thu Jun 26 05:39:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4425851 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E01839F2C8 for ; Thu, 26 Jun 2014 05:43:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C384920304 for ; Thu, 26 Jun 2014 05:43:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A655E2038D for ; Thu, 26 Jun 2014 05:43:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbaFZFnH (ORCPT ); Thu, 26 Jun 2014 01:43:07 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:39320 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752814AbaFZFnG (ORCPT ); Thu, 26 Jun 2014 01:43:06 -0400 Received: by mail-pb0-f51.google.com with SMTP id rp16so2667727pbb.24 for ; Wed, 25 Jun 2014 22:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=uiAagkdXEY4WQ+0eJuctyu5h+fE3Gm0zz4HPx3JcbRE=; b=zT+c6tWoBIHNY3vZK+bqVY/iWCVHE+myv7eYyAX90Wog9nmmzoegVX0OCYsEwHxxJq HWBZaV0u7Pu6z3odV9TrugMOs4JHrI9aS+x5vmosdigKkSp+PiFXuQhq4breV0ecOBAz dETn2tJSfK4z3TrxBH9OFwrTFUku8wIECtTsJks9tpxfkjHyYSiztcB09z1k0Khn3ioD U1MV2h/gt1ALeZsZ/Cd06Rwg4fH7R1Bmv0s5oVswxG8YPrhpAE6JOBqDL3OnxhA1VbkN 92wLEjXdUF3aTKP8OllC9qHfU9dlYvkiWXNsrMcmN7PudOiq1Mi3ZQfY5EieCtvwPaCc 7vZQ== X-Received: by 10.69.17.230 with SMTP id gh6mr18628112pbd.0.1403761385863; Wed, 25 Jun 2014 22:43:05 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id gq4sm7982252pbc.64.2014.06.25.22.43.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 22:43:04 -0700 (PDT) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, balbi@ti.com, gregkh@linuxfoundation.org, dianders@chromium.org, gautam.vivek@samsung.com, spk.linux@gmail.com, Kishon Vijay Abraham I Subject: [PATCH 2/2] usb: dwc3: Kconfig: Select PHY drivers for Exynos DWC3 Date: Thu, 26 Jun 2014 11:09:38 +0530 Message-Id: <1403761178-5371-2-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403761178-5371-1-git-send-email-sachin.kamat@samsung.com> References: <1403761178-5371-1-git-send-email-sachin.kamat@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP USB DWC3 driver on Exynos platforms does not work without its corresponding phy driver. Hence it makes no sense to keep the phy driver as user selectable. Instead select it from USB config to make things easier for the end user. While at it make the config depend on ARCH_EXYNOS5 instead of ARCH_EXYNOS as this IP is available only on Exynos5 platforms. Signed-off-by: Sachin Kamat Cc: Kishon Vijay Abraham I Reviewed-by: Tushar Behera --- drivers/phy/Kconfig | 8 +------- drivers/usb/dwc3/Kconfig | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 7fe7ef5f1322..6be353c9dc4c 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -138,15 +138,9 @@ config PHY_EXYNOS5250_USB2 bool config PHY_EXYNOS5_USBDRD - tristate "Exynos5 SoC series USB DRD PHY driver" - depends on ARCH_EXYNOS5 && OF - depends on HAS_IOMEM + tristate select GENERIC_PHY select MFD_SYSCON - help - Enable USB DRD PHY support for Exynos 5 SoC series. - This driver provides PHY interface for USB 3.0 DRD controller - present on Exynos5 SoC series. config PHY_XGENE tristate "APM X-Gene 15Gbps PHY support" diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index 261c3b428220..501477452ad8 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -55,7 +55,8 @@ config USB_DWC3_OMAP config USB_DWC3_EXYNOS tristate "Samsung Exynos Platform" - depends on ARCH_EXYNOS || COMPILE_TEST + depends on ARCH_EXYNOS5 || COMPILE_TEST + select PHY_EXYNOS5_USBDRD default USB_DWC3 help Recent Exynos5 SoCs ship with one DesignWare Core USB3 IP inside,