From patchwork Wed May 22 07:08:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1103213 X-Patchwork-Delegate: trini@ti.com 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=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="Sib0q+aQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4583dD2ltRz9s55 for ; Wed, 22 May 2019 17:08:32 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 15C6FC21DEC; Wed, 22 May 2019 07:08:28 +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=SPF_HELO_PASS, 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 55BDFC21BE5; Wed, 22 May 2019 07:08:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D9C99C21C8B; Wed, 22 May 2019 07:08:13 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150048.outbound.protection.outlook.com [40.107.15.48]) by lists.denx.de (Postfix) with ESMTPS id 81CC3C21BE5 for ; Wed, 22 May 2019 07:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wDsDtS8Jy/7zhxm2nPJhUENTwBqumxbqMzwvwHtIhyU=; b=Sib0q+aQygW4XeaKlhbbOWw9IhQrObE3+ory6+eUAbM6KM6dC1Fe2B17XuhioWXawc+DAle/2DjtccO+Y/t6IYfHu4d4bYgNqXxHMM1Ew06EJH6PKEJXmusHJGsmognFlvixS8XI65VzQLh3swzLZR62QL78X570TlgwRF6a7T4= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6356.eurprd04.prod.outlook.com (10.255.182.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.17; Wed, 22 May 2019 07:08:12 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378%6]) with mapi id 15.20.1900.020; Wed, 22 May 2019 07:08:12 +0000 From: Peng Fan To: "sjg@chromium.org" Thread-Topic: [PATCH V2 2/3] test: dm: usb: use the real device name Thread-Index: AQHVEG0eAbsilN7uK02GWlziiKaV2g== Date: Wed, 22 May 2019 07:08:12 +0000 Message-ID: <20190522072201.5130-2-peng.fan@nxp.com> References: <20190522072201.5130-1-peng.fan@nxp.com> In-Reply-To: <20190522072201.5130-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK2PR02CA0157.apcprd02.prod.outlook.com (2603:1096:201:1f::17) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b449187e-44b8-45f9-5d56-08d6de844077 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB6356; x-ms-traffictypediagnostic: AM0PR04MB6356: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1169; x-forefront-prvs: 0045236D47 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(199004)(189003)(2501003)(6116002)(3846002)(1076003)(5640700003)(6512007)(68736007)(6436002)(498600001)(6486002)(66556008)(64756008)(66946007)(2906002)(66476007)(71190400001)(71200400001)(53936002)(256004)(14444005)(14454004)(73956011)(5660300002)(66446008)(4326008)(11346002)(4744005)(7736002)(54906003)(36756003)(25786009)(52116002)(6506007)(102836004)(66066001)(50226002)(44832011)(81156014)(8676002)(386003)(81166006)(8936002)(1730700003)(86362001)(446003)(6916009)(305945005)(2351001)(2616005)(76176011)(26005)(476003)(486006)(99286004)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB6356; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BDxXYPYVfwLekMiHWSeXKumA48SRelctVQeD+7CxUl/VAV9gAGvzMyinp6W1jvaPWY9r2SP2n5x/LkRZHmcBbsBgR/ypnWscbXgkyJhFE4P4ml20eNX4b+u2IU+rxx+8rNG9jM5UTzl1T2LRIpsSkiXBOY9F+gBcWOB9hHq3iIm33TtHb0NjIbnb9KT7PXhGVnlaoaAs2v7ac8iNI32N2GJlGbNu+jGAellLTZJJxDT+MBsancuKk7srbCUbWxe+/U2yPOh9E7IRLPadKRwzb5HVhySSl9YBxWzAN+2N6MX6VxhyBxs9pCeuCo8wOtvcbQ2sbUEz8nYA8zP97bum7mzYZeh4nMsfSzJPybhQZChDAX+DLCaex69BGc1Il/F57UN7G67RaSvy8qZuoE1z+y6TBO8ClZgCSUEDZcsL/Uc= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b449187e-44b8-45f9-5d56-08d6de844077 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2019 07:08:12.2844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6356 Cc: "u-boot@lists.denx.de" , dl-uboot-imx Subject: [U-Boot] [PATCH V2 2/3] test: dm: usb: use the real device name 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" "keyb" is not the real device name, "keyb@3" is. Signed-off-by: Peng Fan Reviewed-by: Bin Meng --- V2: New test/dm/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dm/usb.c b/test/dm/usb.c index 3493617544..ef454b0ae5 100644 --- a/test/dm/usb.c +++ b/test/dm/usb.c @@ -125,7 +125,7 @@ static int dm_test_usb_keyb(struct unit_test_state *uts) /* Initially there should be no characters */ ut_asserteq(0, tstc()); - ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb", + ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb@3", &dev)); /*