From patchwork Tue May 29 15:30:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Kiernan X-Patchwork-Id: 922198 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D60V/QJ7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40wHwt5Qryz9s08 for ; Wed, 30 May 2018 01:40:14 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 773B1C21F3E; Tue, 29 May 2018 15:34:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C1C38C21F00; Tue, 29 May 2018 15:31:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EC343C21F3D; Tue, 29 May 2018 15:31:33 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id B749EC21ECA for ; Tue, 29 May 2018 15:31:21 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id x12-v6so48544797wmc.0 for ; Tue, 29 May 2018 08:31:21 -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=S48THtoR7kNaO4TlpWVjIvLFQUDsU0dSoHUUl6xPSqg=; b=D60V/QJ7O5fLdIwu3dptlO5911R8sZahnaZ+e5KMNJzFzTrrDMrE23GMgn+AKxk6pw bmeIi9kWZWTuoMNtrPdTEryY3CPrUxgWDVS1fCh5v/m/4lv40iMZ9VR5z0wJP/D4nh41 Lay0n1xCS+PqM9bl7ZWNmGiBKCliFqgBDkxwaP8dzx1KDu8q4hwpMysswdSseKY52IWR v6x2oQWq8V991/fpb4WGDHGvpZQLZ1GeWeKQFb2/RT6PIHul/0DRQfjE6Nh4ueNaUxV1 z2s0j+kWIR2fljNzGNE2ylGI0WkZolzqovOj2vLuGN3kzmF/XlpwGC6L4VMDPYofAL9X 2oTg== 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=S48THtoR7kNaO4TlpWVjIvLFQUDsU0dSoHUUl6xPSqg=; b=fuGfsV2E+IZER6de+JF29IGL6IrZaoMRtYWw8nRcV5c7CvyYjy5fVLqbWMyTeNGqBK age9VfnQlacQCHEx0NKUJ/IPI1lDnQDp+4oBrmGeXabTNEHm+M6h91DhXEKmG+qc5BNV pbH5m7yTtqVy73WAqRy7x4QyKklWwHsJ2zyzqAZ/AE2ESzR1rPJnPEZ7hkqegZHvbzO3 c9dX2IYyg8fDD5I4h+9WpmlXF48va5hQIRpgXLDrmP4+tfy7ZLffCCIT0c5prUrlumSA l7Ll0po1+nI6dAIrfUhSY+oGGt8NaarJlWSzVTcY1K4yGxonvn7FmRvZLqxQv5nEQpJ3 0bNw== X-Gm-Message-State: ALKqPwflA4MUeXdoyRlCAouqcFTi/Kycf6IeVl2k8WIfJxHU045jjXEZ nuI23yn1QNsa2psU2grxVNHzcS811SI= X-Google-Smtp-Source: ADUXVKKrCl5SHLfFyM2G0P3rIPY2gD2j5H847K6r3ZDewHJWttzz1rL5dKx6SR31Rd5qx/EwYmQkBQ== X-Received: by 2002:a1c:ee0d:: with SMTP id m13-v6mr11937979wmh.136.1527607881238; Tue, 29 May 2018 08:31:21 -0700 (PDT) Received: from localhost.localdomain (host109-150-118-55.range109-150.btcentralplus.com. [109.150.118.55]) by smtp.gmail.com with ESMTPSA id v15-v6sm14229010wmf.47.2018.05.29.08.31.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 08:31:20 -0700 (PDT) From: Alex Kiernan To: u-boot@lists.denx.de, Joe Hershberger , Lukasz Majewski Date: Tue, 29 May 2018 15:30:47 +0000 Message-Id: <20180529153056.27328-10-alex.kiernan@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529153056.27328-1-alex.kiernan@gmail.com> References: <20180529153056.27328-1-alex.kiernan@gmail.com> Cc: Marek Vasut , Jocelyn Bohr , Jocelyn Bohr Subject: [U-Boot] [PATCH v8 09/18] fastboot: Extract common definitions from USB fastboot X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: - leave strcmp_l1() in USB fastboot as we don't need it in UDP path Changes in v3: - new Changes in v2: None drivers/usb/gadget/f_fastboot.c | 2 -- include/fastboot.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 697eee57d0..25784a193e 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -27,8 +27,6 @@ #include #endif -#define FASTBOOT_VERSION "0.4" - #define FASTBOOT_INTERFACE_CLASS 0xff #define FASTBOOT_INTERFACE_SUB_CLASS 0x42 #define FASTBOOT_INTERFACE_PROTOCOL 0x03 diff --git a/include/fastboot.h b/include/fastboot.h index 816e71b4d0..bf3d9e2f67 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -12,6 +12,8 @@ #ifndef _FASTBOOT_H_ #define _FASTBOOT_H_ +#define FASTBOOT_VERSION "0.4" + /* The 64 defined bytes plus \0 */ #define FASTBOOT_RESPONSE_LEN (64 + 1)