From patchwork Mon Apr 23 14:32:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiago Brusamarello X-Patchwork-Id: 10357165 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 38CFF60388 for ; Mon, 23 Apr 2018 14:32:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 286A028B1D for ; Mon, 23 Apr 2018 14:32:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C90A28B1C; Mon, 23 Apr 2018 14:32:23 +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 8F5A228B1C for ; Mon, 23 Apr 2018 14:32:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755325AbeDWOcV (ORCPT ); Mon, 23 Apr 2018 10:32:21 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:35454 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755110AbeDWOcU (ORCPT ); Mon, 23 Apr 2018 10:32:20 -0400 Received: by mail-ot0-f196.google.com with SMTP id h8-v6so13708965otb.2 for ; Mon, 23 Apr 2018 07:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=MCutAS1MKyEgV2kfHDSvex3uGZiXLPf4d9WcX8xkoJg=; b=SxOHvLTtqLETZUpCFq4ZEfh5uYXv1OGARoERjseqAA5zBtNlm0GSVvALs39Fi8hhJK lajO/+TQfN3JzNad2bI2+TSL4iU9AtClgRNoGCZyypnWdn+W4AxzY9juCOy8hN2/HNTX +f87m7DB85up6Ym2xobkT/bGCWt09NTNH+/V0HnoJWWOjUeZFRRZL11oOA7cRuslRcwv z6RMBVdILmm0SQ669raOmd/GrDQQAm5wgJ7IsKs8ZhPABQNJ3nNNqT1J3HyQ5o/mdEnO Oi9nRJJ3zMrmvntEZ0cQ+IUm6jLTkJvC7qRm9Ws0ShX+SO7U4NfujTvQSgN+xYgYFUyX xAoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=MCutAS1MKyEgV2kfHDSvex3uGZiXLPf4d9WcX8xkoJg=; b=cYPmuH57+oiqr7u/pBhAXaNwS1cCE2r8Ih/cbiH42ofiEOo/aoMgVcxsfsDUAzTTOK kus3/fxUHClnVr/RP2ZIb2i5iKQ99AyywEE8H2TJCik/5NmTYVHkfRnIBNwnH4Xz1GuK SRuFJtyKxuuUVqGDJdNlGRjPA1TCjbOTw5NR6iIcVBclX1B2CvinW5nPk/L4Ln1skcqc 7Uku9PJuYLHGhZh9+Gc26BW9TB+dq5xV2A5N2HJSJxOLaAvjL8FN+Kk7pgpzd4Lrx55S sqnZFn1jzJYas3hBtMwl1zQE/ShXrH+XrWHL2EyGJfqy8t4eW5Gi/NzfPuafC/AGp0TY 8qHw== X-Gm-Message-State: ALQs6tD9Bpzkp4mR87xtWYxJ1seufyLz1gWGw93d37AADGoUP199v7pS ifBJQbcKol6YgVuRjnTuguWdLymldRowiMgJ6yk= X-Google-Smtp-Source: AB8JxZoUBPegj7gvgs4uIE9D2dh4JhfkcL6US3nUxGnIWonn+Tpni21Duoe0HmBQSiG1sFxF55jpnS4G5Nat/6TuQpg= X-Received: by 2002:a9d:3e11:: with SMTP id a17-v6mr9173246otd.321.1524493939890; Mon, 23 Apr 2018 07:32:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:27e8:0:0:0:0:0 with HTTP; Mon, 23 Apr 2018 07:32:19 -0700 (PDT) From: Tiago Brusamarello Date: Mon, 23 Apr 2018 11:32:19 -0300 Message-ID: Subject: [PATCH v2 1/1] drivers: usb: Introduce FSL_USB2_PHY_UTMI_DUAL for usb gadget To: leoyang.li@nxp.com Cc: linux-usb@vger.kernel.org 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 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 --- Changes since v1: * Removed Freescale internal information from commit message drivers/usb/gadget/udc/fsl_udc_core.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index 56b517a..a3c092b 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 */