From patchwork Thu May 17 21:28:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiago Brusamarello X-Patchwork-Id: 10407777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 97A4960155 for ; Thu, 17 May 2018 21:29:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87CAC28760 for ; Thu, 17 May 2018 21:29:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C41328768; Thu, 17 May 2018 21:29:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61E9728760 for ; Thu, 17 May 2018 21:28:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbeEQV2x (ORCPT ); Thu, 17 May 2018 17:28:53 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40292 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeEQV2w (ORCPT ); Thu, 17 May 2018 17:28:52 -0400 Received: by mail-qt0-f196.google.com with SMTP id h2-v6so7761164qtp.7 for ; Thu, 17 May 2018 14:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/0WEThRlooNb3QBnyEUj/ltdDhINAweUSxK5bVioZuI=; b=ZZW90GvJ6H/Xdo3i2HgswdG7JIhBA+0v3W72Az0uHpO0y1OH8Jp7Z1Y2tH1dgqZAgb R7xqvA7oI0nAGAxWHTxe3S8L8uPsWNtFzpT9nsFY0fFwEpgSiDFYMzWKYnhDh9FQ1aJj 3jTGBZf2hhAqq0cW5FfHa3bjf/NOWkfMGu0B2lNS1WPW4ZB0GrfSGNObHJim8ctSI5Q2 RRqA/idKEDnoCzFuvfsE/St2bmEuf+5LLC3eVt1ZR60Dnb+7WgCkpGXP/u58SQI5TiC/ RijhimKHim3NdfC4ko8msLbTWNyrT2zu6fQmryACbBz0ovRQnbkGx3O/qNpFKJUBMX6C JNEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/0WEThRlooNb3QBnyEUj/ltdDhINAweUSxK5bVioZuI=; b=GEtijDJsel+Lx8zYfEpV6anK6SSIqTN+VeWtSmLWzQN4VHGk77/UvpxXENh4fIRFZR f8tIuasObdcioQ1BrrwXR6QbjZhtmznWX1yOJnzR6bzISHtOpt+ZnAlavHOke0i06rBK VI884mUwmI8H+oCC2Mnbpwd8wwqO4zLkIy4VNjY1VgkfPN/dapz+invme0n2LTBkh5Cc 5qp+Rbg4hyMf5UC9zneWXSjPsCFwhtJETBLQ6ieUHUE/2p5bfzmlQzE2UlceHkdpcriO s3fmX8jjZ0TjcY8fmPq0G8ToVOvNgRPUcWBfLcYOaJkMX9QUja81XrZMr+eZjQ6mEnmX /wQQ== X-Gm-Message-State: ALKqPwcjeemeCgWyVyJXFc5cZrNEhrKBIv2Do80LgXwTYo4zlmH11fHU Cn6LN5Rc1JmkA6cvVeb0ZYcOYA== X-Google-Smtp-Source: AB8JxZoQSsIA3j89fEpIfpUJuHXYMxoRAV/Vnv1T60EmmY/eDMcF9wp63t9UM8FzDxLvCHiLdsbYSw== X-Received: by 2002:ac8:6718:: with SMTP id e24-v6mr6924884qtp.79.1526592531563; Thu, 17 May 2018 14:28:51 -0700 (PDT) Received: from linux-0ych.suse ([189.6.243.61]) by smtp.gmail.com with ESMTPSA id z50-v6sm4601713qtj.74.2018.05.17.14.28.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 14:28:51 -0700 (PDT) From: Tiago Brusamarello To: leoyang.li@nxp.com Cc: linux-usb@vger.kernel.org, Nikhil Badola Subject: [PATCH v3 1/1] drivers: usb: Introduce FSL_USB2_PHY_UTMI_DUAL for usb gadget Date: Thu, 17 May 2018 18:28:37 -0300 Message-Id: <20180517212837.4210-2-tbrusa@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180517212837.4210-1-tbrusa@gmail.com> References: <20180517212837.4210-1-tbrusa@gmail.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nikhil Badola Introduce FSL_USB2_PHY_UTMI_DUAL in gadget driver for setting phy in SOCs with utmi dual phy Signed-off-by: Nikhil Badola Tested-by: Tiago Brusamarello Acked-by: Li Yang --- Changes since v2: * Reformatted the patch so it can be applied in the main tree Changes since v1: * Removed Freescale internal information from commit message drivers/usb/gadget/udc/fsl_udc_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index 56b517a38865..a3c092b4db20 100644 --- a/drivers/usb/gadget/udc/fsl_udc_core.c +++ b/drivers/usb/gadget/udc/fsl_udc_core.c @@ -253,6 +253,7 @@ static int dr_controller_setup(struct fsl_udc *udc) portctrl |= PORTSCX_PTW_16BIT; /* fall through */ case FSL_USB2_PHY_UTMI: + case FSL_USB2_PHY_UTMI_DUAL: if (udc->pdata->have_sysif_regs) { if (udc->pdata->controller_ver) { /* controller version 1.6 or above */