From patchwork Thu Jan 27 19:00:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12727177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C678AC433EF for ; Thu, 27 Jan 2022 19:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241208AbiA0TAb (ORCPT ); Thu, 27 Jan 2022 14:00:31 -0500 Received: from mail-vi1eur05on2045.outbound.protection.outlook.com ([40.107.21.45]:49655 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232813AbiA0TA3 (ORCPT ); Thu, 27 Jan 2022 14:00:29 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWGLTPB9zRu4cquC7yjhuelATT2nA/0hcFPdTBwHX0dIqhHBZfUcsRfPVyePi1JdzIvuDqrtjcNQEaqmN82RhE6rvrwihBwahN0307LtfQ46rHKDFCH0ap5edZORLsQUqhpbO3CHT6qHTjxppWWCLUwhR3VaqyozoHIoWYCa/YyvZpFJ7gYwz4CdSvNOBUwsBo5HXLdcytBpGnRrSKD6s084QIcRC0EXxgRZ6AdXAdvWUkNqm4QzXX/sHn3JoCIEiY8f1DQgBt5AfdfDraGTqTCnVdianRnKjNgcXgEJ/8UfajgJx4W83StTyT4HzynOTzznAQmTasX8RjyTZv7uNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gRdr8lW74Kk8yIp0TXne9i+YHj8QmTB6IUhk5salUfY=; b=OhyY+qhhddQ6OjSiybJFyHv6IgFrYWdllfMzIz5zM7e7jqGxhzfiRe0Z7KzWTg0Sy9sv5R9BJNGRPoiNOsiWfUDrWu8cby6M6q5bDSkJnr69z+N6kxROQPore3s2U3hl+eONH9gNi/NhwpZO7OOh402XnTafDOpft6IxzuM6gwRZ13BhBXmok7yRrWtRL+uGnadjn1bO634S5I3hsjID+M2MAXJw7ZVcpcUUIscAST6f4yxaf8RU43OeiuOcBZU1fRgk08U7T+52y3pupZAglchmNtnOA54xViH6OfXeuvWceFWYwfFM3HPpM88pDz/TbMiPJiyIP53ja9Mskog6XQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gRdr8lW74Kk8yIp0TXne9i+YHj8QmTB6IUhk5salUfY=; b=pli/Q4KPN5K5OKdyAvBWCwjeIXtUUEa6yot21LjEdB6kzAuVw3mfaMx8LxSaRdVUAsEDiYlmhpXeIgF/CbN6XkWGTHCxcXWZK7m7InroQ6GY3NiL2QJGR2xIWMoJXnVQnWdRtVXK+zD3gogIWm1Len8cCK3+ArQQ5t/PpTNSKWTb8zSfGaim/oTLmPkvLeTcl2lVa0bHizc16qtiRIkwVU8KvBij6C9MtNtctdDdIATSDxk1o4UMLWIbaXWhsUB9BOHeb4KVxSPRbdmBrC/8Qswz7LLnaO3hiJveskNbqlOpcpYjpPopnFRBIofUWWrIKeq8Xh2fc1yU93r3iSOkyw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by PR2PR03MB5466.eurprd03.prod.outlook.com (2603:10a6:101:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15; Thu, 27 Jan 2022 19:00:24 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::2d1f:654e:f946:1a95]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::2d1f:654e:f946:1a95%6]) with mapi id 15.20.4930.015; Thu, 27 Jan 2022 19:00:23 +0000 From: Sean Anderson To: Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: Heikki Krogerus , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH v3 0/3] usb: ulpi: Fixes and debugfs support Date: Thu, 27 Jan 2022 14:00:01 -0500 Message-Id: <20220127190004.1446909-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: MN2PR04CA0008.namprd04.prod.outlook.com (2603:10b6:208:d4::21) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c788d5f6-b2f8-4882-e6ea-08d9e1c745d5 X-MS-TrafficTypeDiagnostic: PR2PR03MB5466:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jvm3PUuVsYC+uFUKtstVBWLmKrWQ5DCLo4XlIVUD4oc3U3+WeZxREafLdB240aHUr0tpQZq7tLpg9V74d9WBzRTiyCgmQVEi0Mjz50deLvGMkYpaQmmNx8dJ2wWK8sRNTs9H1VOGs4RGunqVleD8Ad/sQ4mi51JxmLXkCsbl6el9wSIHs+eL8Ux49fm3X0OXf2wVE0oNHGUCdslll7yZBANrjSeF6/btXCzvw4td843snkqUuE3GxPe8Q5M22cV25VRVphyVE/oq0O2eJEK2GyLpXIgvJdIns93sWcKJ5EbBUki7ushGWcaUvH6dkcqlfU1pO6q8Hk+Snd7jz4JZQieZVlih29mE7HWjuSVWOVJ8mMXg3uBYqqpFmJN7NeAmw5kU5XHIVBkLXGkiNSnmumQvYuBrgouuiSk4ieKd8i3uioYMgncrZi15xJTuZb7NKSFuISWJQdlVvNDGR/pY0Tt/FJ1qOt+lIDWr2UHZViDO7MteSTG0/bIffWrDGwyrzPxtkGucM9apk1zyLCpZrQiPiwkG9Qk2/kYRp1DE8p17wfOnX7ba8ouZTnrdPlQ5BGq/nAEqDm6klSjLd0rCHi+h7MCO3EzCPfKnu+f3wQy6LDwlGmfQVmSjDfFdmti4PpP/nl7Sm7xrJEnecmlWuCaGy/gsZqj2ablOQw0vmBjg1bc8Qm0XK17yF3jjnqrpmTXSMp6geyQYzxvX8f+4BA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4523.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(44832011)(4744005)(36756003)(4326008)(54906003)(6506007)(5660300002)(8936002)(66476007)(316002)(66946007)(66556008)(38100700002)(38350700002)(8676002)(6666004)(83380400001)(2906002)(6486002)(86362001)(6512007)(1076003)(508600001)(52116002)(107886003)(186003)(26005)(2616005)(20210929001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k7ac5UBHhBedHtMcTOd2Sg9tiP20lHpAr+dcNTQ0kcky5MtY6GDyEV/XXdWF6isG3CUr0ZJgwt5juCmbYT6beqDfb+fcQ6kvnzgEH7+gCfQITTrI+zDhCdgQj/MX7hYezKvdILTWiehzosKYYsIkAhmYOLPQMGQAphPKBQvScJlrpX0oPg+D9oSJl44wGrpqfO5kyL6MkKKFfZYgixFjTF7WiSnxgRZGSJlayWL97a9a9pAQty0VOMzczx2PrvBnas6nXtvlHkdybZxK2EszegoIcrsh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eHV6JA5izJO0h3/jgtjDupBWvatS0WXd16Ks7AoVCE4++TI4MaVMpK8VqNDtOTYIB+TLYZERDblq8wUJ4gn31u3VD0Og1JpUMRZfvBM/9TWCLvJMmyVL7CXNrmihkM661HeNr/7iJtvMhFAiapi+TUkB4N0XfdRoikjkOkQ3VTyLVycPdh/MQYIErQYSSlIACADj4cbRblBm09gtYylEbJSZd+CfytdfihOvWf/3iv1YHE7c5V+OvystOzejiKoh4Ik8vZtw0Qk= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: c788d5f6-b2f8-4882-e6ea-08d9e1c745d5 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2022 19:00:23.8054 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NdQLibQGXxLbNbaAH7h+lueiDYzUsv5Jr4IfCdbWVEanO5mIYOS6RguE+GBE6LGVGgPojDh47Aj1LGBPPBdu1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR03MB5466 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This adds debugfs support for ulpi devices. The first two patches are fixes and may be applied independently of the last patch. The last patch depends on the first two because it modifies adjacent lines. Changes in v3: - Use separate patch for moving of_node_put from unregister to release - Add Fixes tag - Call put_device if device_register fails - Re-order patches so the fixes comes first Changes in v2: - Call of_node_put correctly - Always create debugfs files and ignore errors - Look up dentries dynamically Sean Anderson (3): usb: ulpi: Move of_node_put to ulpi_dev_release usb: ulpi: Call of_node_put correctly usb: ulpi: Add debugfs support drivers/usb/common/ulpi.c | 81 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 4 deletions(-)