From patchwork Wed Feb 28 13:51:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575508 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E565C47DD9 for ; Wed, 28 Feb 2024 13:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tRuzk4bz168Nm1gvkzs7XIHoaBWUBBX3UjMGOpwdVSU=; b=SNtzqu8jupWcjXRt0cQDrfXb3O yckEREW3P1aa1QFTJCselLbPiGGfslFaafqK0lpWsAaQr+ZsFSBZfFkzskSKfMZMgzuGzTGSKvCxh 3IXKfB63u633UbX8Tdz4SS31tSdg7EhagLH8ZY+hPERDoXNLEsA+w+jrn6ea06U9pdtefIBPimnKk QXIGPkihV1Z7h6RBigbLhxp1xA3NJaz2yIr/TXuuVx5qWJ6Kgo2yGgW2nFDGwMeETu3FFpXtL3XCW WG6xeHd7sCRZ+nntUuH+KO/Jpf9Bg6xdVSjMB1DONnzbV23phKNXIawFnikWKqXilD1iSmd6OiL/m g50mHgpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLu-00000009Y88-2KxB; Wed, 28 Feb 2024 13:52:06 +0000 Received: from mail-db3eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLe-00000009Xxe-38vt for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6UWpQOQdNCy47XfmccfTZMYluDLoieQfOqSfQwikWfjuaFu9QdXu287ov6TjBMiZ+cSntmmroF9o0EWCCDYgg2hg+cYVepoSbky+HV9UP9CuZ0K48hqDSrguVOpzGFXnkvnHxI77HJKQ1kAIk1X+YgErKFQ6loKG6UeG8xmF4xI+41lj0aTsNk8Hc+yBUajNJ1KrcvnjtF9cydwHmKBZmtH/pcDUpFTBmMX6+LW2h5yqjdf50JEnCHHhi5wZ+MzUqpBVm/tqyigKK9/zNszoM1dCg1IGYWVIZV5TtGIMcVBZWilFdifycJgyAHgfrRUGtw4Q2qDzIe1XKAqeg42hg== 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=OAs6bOrmyQn739mDtnVcwn7FPSu0LOrXuAzpN0t0DBM=; b=KBGdoYO4bnI9uByiT4CnVSNEkzmWZ6hJ/8dBUSTx74ypsRgohNgnmJUx1wUHhnZiF9t+vduyG9VyYjBHgHfqd3vbtXpasGkqjfFxodyGJXPkLWowC0vOJv0Z9iQ2ORHTUJf8N6HTDUQ4kCgG6AOyKWyTwwR/f7NsRI98RUyzhOGcaVtPhRDy74SSxYciVBgCCz2zk+LlHAjw/gXdPZiJKu5IF176goRk+GQrN0QIqhBs5sMUfjiPwU93dzdVEElmJqwIaN/zaP6N7xQadSWbc69AB7idATBjPk65tiyax1Rszvd1buHohWPe+8+PqsunwtUIDXw59k5FsS4P1Lk9hQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OAs6bOrmyQn739mDtnVcwn7FPSu0LOrXuAzpN0t0DBM=; b=V9BZ3j9IskDtUh+sHNdyRl6TVNf/NfxCJ3onwQ6igi719R1E4qu7ZPqfEQempdHU3p111PLqoaPuumFQTXgCYZOxx5epW8XFPpEe9UUUnjCGxcIblq+fpbWrqAskuuUd2+zachNBORZHCsF0t9sEik/Zyqet6iCwGjsHGVQdVzw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:36 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:36 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:28 +0100 Subject: [PATCH v5 1/8] usb: misc: onboard_hub: use device supply names Message-Id: <20240228-onboard_xvf3500-v5-1-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=4982; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=BEdcCVmujfc9kG0AJPFzTPxgH1GxZd8gsqn1iUJC8zM=; b=CwPy+gqV4LQCZHq3nhBn1Jzd5f9g1Bzgow+X8c08GLar8MpPUZFF8XzceOBi1l4bc3jooNWUp AMRdwlHWBwWCi8gqOaxrbleM5NeuPaygd48pql0miXJyDZ/qnimLVIK X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: cff8a544-b57a-4bc2-8311-08dc38646178 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b2CNTygykATNkMcrizvDdcFjy2PDTLa0/IGt5BkMv0DLvEy7mHu9bkG4JVBy9VCgJ28wqGoCyCZO4eIc5+1VMfceebXK3OSHFMJTLJTdLYpjiRFKDTrvBzv2ao6t7ri5Gtt9oyGi3hXTThcvHkOKp79rP2HV472eA1n10ps6Ss0dziZ9g3kVEeSWDQbqcik/5dA2bHq9FPB4AEF26YmjEpLjBDAdifOOwkYpwOmwa3FZ0uyeJrTqAhmltcUgfGHUla+IjhIhoOR8F1WnBlA2x7jQQ1kr9KRW17f4UZyMIOScUk/6MYVLQRmn4c6uRyDCtjMB+aUiSNX1o9I7BWSK+czI+vSMDRDGW3wFxWGU231NgSOI6k0qOPl6zCO9mxX1Kb54VqUwc9JBeaVi+8xLQUXfV93l+Ojs3CY1VeKynQk20Wq+N5KelrrMPXmTmdc9e4idLFzbP2Kd/NE747bgNVZbyPxv5u0Bt8pcC7CaxTxOuP1RgYMj10MG/yUbFDqR4QLsJ2rg2xAjsWacDG+HSDYXRrghjTmBwKW+ffYKg//f4hERRp8bpfLSQZy0aHn0m8KfKfQDVIrdcMTwtrNGBZYiBbNvY3bQ+ag1stYq3HwDpLWY8VTaT3oqS91MxQwXKDocEQDoNIG6Z2DDlwgChFAMsV/x9RtfWjbZ5P5Ci6jeoKHZFhXxBchIx63GP9HP6db3ScWNKo/WBhpHoYoYEBvHqdHVigZlQ23Zwft8CUs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ARy9M+DOKMEGSLv4c2MW65XxHVlI?= =?utf-8?q?OqYwp49h2Sb/32IryM4xPfzig9Bz96ll8uQXTII5Q5OwMKPVUzMxXaPgjNDgKzOCW?= =?utf-8?q?yeY8qsvXBo+FMFZBpN0xU56eTPGgBcvmkW5uJfcTkT+o0JJubMtjrsJbvstVjy4SE?= =?utf-8?q?B9m6LdszFIjKfEt0ZbTTxdUK1dhqeDtMIVO4cZbcKeaZlHXmiYcVwFRryioSeinO8?= =?utf-8?q?hcKT4d/dTEq+6WX2iyPp9e6MWP6Xh834Qjgca1q/dBzl1srevWnmgmRqFbBvzVfyq?= =?utf-8?q?TR2/bz3p9DSAspb7i2r3POyWeIO+bQ9ZbYkf47wR9dyF+V3NffhhH/9ubyHeZAw5k?= =?utf-8?q?1xu9zwez+Pm+7aDGMZ6qnU9hzbsH2cuWgeCw7OzOKweG1O6iA9pbuQkoBwxoakH7F?= =?utf-8?q?FFAR3aiofPF41Z52H65U+2Lza837H0G1XTMXLfhqyxsm6Ut5L2i8AiZHS90ZCNVgC?= =?utf-8?q?tPz5DvjTii9qtXtrP/buCY2kLRCBD+8jybQwLiOEHg5hmPiwERwtkhdPtW/5Sl2Re?= =?utf-8?q?1RPMN6Gi13rpXRPBdSrNtMpVxpMpiM3Ey2jLh3IxcU+c12ZiDbGg7gDedRLk1F7W/?= =?utf-8?q?2Jw6rT63fQxpPR/E3VOu1AbrkCQNz03kMeNqGr9rIWHQcZgq0COh4Dngyte2i5Oe0?= =?utf-8?q?wAFDp/vXR4mavcDAr0ZA8rqCLo/jig5oWs59OQ8drk0vttI5vxnwBFprg2/zQT9F4?= =?utf-8?q?tiAQrD3CuNaGnlgJbQDUgCEwaQbsmhRZ+THUVXoDHosWG6xXYLeIMsrjgQF52Cf8U?= =?utf-8?q?JnJbQ6/ME8/l7XFS/N6XYFqpksUaxTyf78QkhoYzOLfTbN1oIj8uKk1s7Qaa0NA0m?= =?utf-8?q?xOS1Thdgm9x7V01qnot+hULrLJNOBCPBcK6ln4zEdjrD1NMbUnZOU4EZ3tL4R0OnZ?= =?utf-8?q?L+1OkBWfRsfADoq0PXHvLQ4DzWH/UJYAaLw5qsE52mab6tGTGbUh6TtUE6K6x322F?= =?utf-8?q?xSWB+Sw4BJh8PcUT7Kn3bpNbOBX1Qwu9g9kK49aJDswprvTe6o0uv+PcETM1WM74F?= =?utf-8?q?qGMm0gBZqiSeGge8piQ8Lbwi1eXgkhcXktfqMJLfNmpobBTBIOVkrmlkf5ezLXXOr?= =?utf-8?q?i7TeeL9kxXXjyUPOt03zUoAvkw8UNsbD65Bffp8VSO0b+PFs5KWglEgQhYdMjnITC?= =?utf-8?q?SKwuwk5LhFoCtnPCZoUvj/5zNb7KpvTxCidVmI2dSEBYn44eZ3L193XNjBcbswYQ5?= =?utf-8?q?TwN5a5OXi3dW6QtrYFqAADGU4HPVgYo7fsig3cDt7YKF5uRNTOGJa5dncnyAXs0sf?= =?utf-8?q?lpWJJNpfQ9x26fM79yLv58wqoRNoqDpmBkdLigvjlbZZpH7PFKs58jJ4/KnlSMRLP?= =?utf-8?q?XoQIZUl6Ob01PjfapdLi3t5viuMDDOpkTKLwv30vi2620ovSpai+XJ8D5w7yWaOZj?= =?utf-8?q?ubq6bZUZSFGrT80sBBEcuAP62rqqj2ZI3yWat3HNTUB/1qBWe1VX+1n5/SUd+XYUn?= =?utf-8?q?hEZvZHm9gjeu28DurkXBpCgt5qZC+Qi20Ts3ZvHPpmzYri+bLFuy9+7OD9CWkfnLv?= =?utf-8?q?co99wBGEH3+O0qJsEcMn1alBnftB7o/5X/xDpvPDhFdYQJKRIhjQ0v8=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: cff8a544-b57a-4bc2-8311-08dc38646178 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:36.4080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Khf6bmPkqf/JzXk6F6l83siuLcRnNooGl+MCtAkTxDEvL1GS3jzd7KsW4ftSA8UB7NtFAhBxIPEZKkcGyAs7eZi6gn75ymc968lA+zoObjY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055150_811178_708BE4FC X-CRM114-Status: GOOD ( 20.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The current implementation uses generic names for the power supplies, which conflicts with proper name definitions in the device bindings. Add a per-device property to include real supply names and keep generic names for existing devices to keep backward compatibility. Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_hub.c | 49 ++++++++++++++++++++------------------ drivers/usb/misc/onboard_usb_hub.h | 12 ++++++++++ 2 files changed, 38 insertions(+), 23 deletions(-) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 0dd2b032c90b..3755f6cc1eda 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -29,17 +29,6 @@ #include "onboard_usb_hub.h" -/* - * Use generic names, as the actual names might differ between hubs. If a new - * hub requires more than the currently supported supplies, add a new one here. - */ -static const char * const supply_names[] = { - "vdd", - "vdd2", -}; - -#define MAX_SUPPLIES ARRAY_SIZE(supply_names) - static void onboard_hub_attach_usb_driver(struct work_struct *work); static struct usb_device_driver onboard_hub_usbdev_driver; @@ -65,6 +54,30 @@ struct onboard_hub { struct clk *clk; }; +static int onboard_hub_get_regulator_bulk(struct device *dev, + struct onboard_hub *onboard_hub) +{ + unsigned int i; + int err; + + const char * const *supply_names = onboard_hub->pdata->supply_names; + + if (onboard_hub->pdata->num_supplies > MAX_SUPPLIES) + return dev_err_probe(dev, -EINVAL, "max %d supplies supported!\n", + MAX_SUPPLIES); + + for (i = 0; i < onboard_hub->pdata->num_supplies; i++) + onboard_hub->supplies[i].supply = supply_names[i]; + + err = devm_regulator_bulk_get(dev, onboard_hub->pdata->num_supplies, + onboard_hub->supplies); + if (err) + dev_err(dev, "Failed to get regulator supplies: %pe\n", + ERR_PTR(err)); + + return err; +} + static int onboard_hub_power_on(struct onboard_hub *hub) { int err; @@ -253,7 +266,6 @@ static int onboard_hub_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct onboard_hub *hub; - unsigned int i; int err; hub = devm_kzalloc(dev, sizeof(*hub), GFP_KERNEL); @@ -264,18 +276,9 @@ static int onboard_hub_probe(struct platform_device *pdev) if (!hub->pdata) return -EINVAL; - if (hub->pdata->num_supplies > MAX_SUPPLIES) - return dev_err_probe(dev, -EINVAL, "max %zu supplies supported!\n", - MAX_SUPPLIES); - - for (i = 0; i < hub->pdata->num_supplies; i++) - hub->supplies[i].supply = supply_names[i]; - - err = devm_regulator_bulk_get(dev, hub->pdata->num_supplies, hub->supplies); - if (err) { - dev_err(dev, "Failed to get regulator supplies: %pe\n", ERR_PTR(err)); + err = onboard_hub_get_regulator_bulk(dev, onboard_hub); + if (err) return err; - } hub->clk = devm_clk_get_optional(dev, NULL); if (IS_ERR(hub->clk)) diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index f360d5cf8d8a..ea24bd6790f0 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -6,54 +6,66 @@ #ifndef _USB_MISC_ONBOARD_USB_HUB_H #define _USB_MISC_ONBOARD_USB_HUB_H +#define MAX_SUPPLIES 2 + struct onboard_hub_pdata { unsigned long reset_us; /* reset pulse width in us */ unsigned int num_supplies; /* number of supplies */ + const char * const supply_names[MAX_SUPPLIES]; /* use the real names */ }; static const struct onboard_hub_pdata microchip_usb424_data = { .reset_us = 1, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata microchip_usb5744_data = { .reset_us = 0, .num_supplies = 2, + .supply_names = { "vdd", "vdd2" }, }; static const struct onboard_hub_pdata realtek_rts5411_data = { .reset_us = 0, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata ti_tusb8041_data = { .reset_us = 3000, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata cypress_hx3_data = { .reset_us = 10000, .num_supplies = 2, + .supply_names = { "vdd", "vdd2" }, }; static const struct onboard_hub_pdata cypress_hx2vl_data = { .reset_us = 1, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata genesys_gl850g_data = { .reset_us = 3, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata genesys_gl852g_data = { .reset_us = 50, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct onboard_hub_pdata vialab_vl817_data = { .reset_us = 10, .num_supplies = 1, + .supply_names = { "vdd" }, }; static const struct of_device_id onboard_hub_match[] = { From patchwork Wed Feb 28 13:51:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575510 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81AF6C5478C for ; Wed, 28 Feb 2024 13:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qK/3SNZvEwVn8lbTIAN8/6VhZoQIiZqtEM7/2FvkU/Y=; b=n1GtT8QD5gXvoDMacHq+XBB7hB sGwoX2yPCrK3hGzEMtjQyKSy0DBmd+PKLKunWoccJ2I9DWAuJ10iQaaGLThc7cLYOxiezw5LEtD4S L8rjS5vuGF4FSohetKa30I9Hr7s6tYFXuQcNnuJczCxxTgDor3e2yX7z5DJ4dD3O3a9F1xVNS0qfD qrpebWaBPccEjYPbKMRrl5rmXYbVCKr4aipYU8NJUXKbA98gA1QWpUEDBdDFk9S2Tcs0OO+8AxxBg pjuX9fEU11iqap4ff5qQg7MzcDBCabMWUsHHmcffU981FdrjNU5O9vfMoQpQvGrtGwU+FX5y1wT11 WAVnU5rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLw-00000009Y9j-1m79; Wed, 28 Feb 2024 13:52:08 +0000 Received: from mail-he1eur01on071e.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71e] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLf-00000009XxM-1sab for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DrHnbLeuZb/De2pLVwSUSDuOEAPjmDlao3ORHmwdYcTpNmKRlupdN82jNOzGmeOEcRa2ML3xEBMFGttychmWUmt9ZFf5N+OM92d6twe7htAFT5QL39FodTqi564oOS+uUF3EU5F4WGGveWGRuxWVFHtULjQ6behqoGWvV8MZcRxL2rjrDDb+dgDpp/IKuRYxUyh2Wxc99QseAsS0PwUfAZ6X0tXUjTwjvLhJur6uwi/+hNweczg4Bvzc21Dy/lviMOfKgtl2WvcY7sZekoI2o0UO8Shz4RvCS9wM70qoHjW45wh41uE97SoQNJP7w7wiKIsvwmZJuhmCeLfsYitqgA== 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=PfuyLToV7eR4QIR+o+IgvioD+qm918boKG6NO5BM1/Q=; b=Cn2KhyO9zQKJOHnQoCQM5iDcnwvINiL93zMgasf2hQKTSUuTwrE/83QAecGMQn4ijFISTisfkYV047NfkNzzz5Ed4bVmy+9DODrwj8P8uUMwtHFO0HO7ofrFOWDsUI5PjYAl8UZB+Zrrmo8W/OQ943r1ezh/xZKr555XOjymzjqGtqaEveU6M93okAsXHb5swfAhL3UL1T0QOQ5+bbLflWhXt/Sb1Syq8/mhHHAmd8eEKjWABFSdkw/3Z1bss1FT1BIRwSr41hs97/F+qqqY9/zOkZJeMMWZNUHc+migSTqML0ogaYGPFJxWtG7FwP0vzrL03/mzQQICvL//UzN31Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PfuyLToV7eR4QIR+o+IgvioD+qm918boKG6NO5BM1/Q=; b=N6y3d0mZPaKv1JQSQqFO536CTHWjxxRbSuiVKIquzjZbhCEChM4itFyUF8PfFES1mDNbuMboo2zWHyt/AZo4yFRkxEgdEe+Rj9A8VwOV8jlmR6oTBCJclTF3ufUGOCLKy5OiQicqHNqgVOmgboU6Gg7gsysHHA+fUeRdT/Rsmmg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:37 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:37 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:29 +0100 Subject: [PATCH v5 2/8] usb: misc: onboard_hub: rename to onboard_dev Message-Id: <20240228-onboard_xvf3500-v5-2-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=32054; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=ENqXJ468M++pJ3P8ig6/C12Pe+MqcuxPPUvXDMi4dCc=; b=c0fRw/d7o1Uf0P727NIAw66Q5RZm33OklRk1Fwjh+xya2TUGONITcyhPCPxsyKTe+AMWgDOsy pBvyRRwTBD9Ak+V1d6M4m+cA3ERbRssROAYhaz69Lm1bDw1JGhthjWN X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: ebbd8e94-adb3-4934-e479-08dc38646244 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NlbEd0M54mL9ZANs9eShOdXziUDXvaucglS+tTKWNv+y2tR8YthEvDWSmS7Aa85v+0uMGj7BpyjBFc10vDK0ZFXK32+4V5T2xtPwXnkDHYBFF9yONiD61GvtXhMBlWeDDr5da6zUY+FqbdPX2h3IIcuA6MpoRbRXQ+spM6KZ7YA9hXSLGsaxzgtpvJz0ZuBRD/X5QDcbFLPoCd71DLP5NSKZ4e0EENRweueafV4hRDex+Bj4hdPVYRHUdjh24kaVlA1/X9llR65RsVPAlVKhgeTMPpjks4sib9KQK4DwyOp+0B4hUwZUPC6fwVjmMFNbQuf0I5v5kU1Q0/7lsJwMQ/mNmsrrrlIMnUK7e9sjJOVjxuVtDunl11E/DHbJK57TPYstAUCWvAQzZh4poW59SMadOIEB+yAalHiywyleijakWIcb6XLPjRwr3UoTf0wRbc2csjxrbBxQXF7nmzgL9j7Fk9P5VO5pXDN6XB3QulK4uoRapepWIBoEY9eRfMyhtl6LcSUH5CZGAPWzvuPI1jRc/K5Nz+JHasj63U9lSbnftzZjG0/s1u6tr4OpaqpqIgpay+ZJa9ESzrXBxl9GcKLwcNouHq+Zkx1DLTR9k4nNJJaYx9fmPWQRV5Ga/zZO6EDtI+miFTNqJNymslnzn5x3oMZrS60o4cr5AY6xN4LR6bwN7eJwWlBiDgmoZSy8ordm2bqt+c9C0TxY//BJjjtT8f+gF7j0wZwmymkRs7I= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?DG7IKIj+eVe70QyQOtWsf6xLuhh1?= =?utf-8?q?IDpE2axbp80lXDxP4NlhnviETyJ6R6x4ATbg2yEdgo+SvVKvYLgDmKC8SWvaSki7W?= =?utf-8?q?RkEHPpgRs9Ri2V+OFS1qUeF4+Pr4V97chuYtIFqa3jcXy04gt26xBLGmF+BXASM+M?= =?utf-8?q?YR74TmKJG0kB9RydWb5TH78alYiDxzUU9SRl5zmoVPtpyERDPtr6ABUtGtEpB1KPA?= =?utf-8?q?BTkk14ts2RZOZIkZTGA+pnbypJX1D1ZzrbIaQx/C8WWLuLzsh7DkwSp3iAjhhpMsd?= =?utf-8?q?J3wVuIrzCV+MQIYNz2lAtLp9nq+7S0dZR1x1U3jVlfAY6iTqcADChhFCaKfiKoV+k?= =?utf-8?q?c13Ts37QqgoONR1giAdRGVURdmVsTShpaNDU2t/2ZZWoy5qTxj5OaImYub8wut3Y3?= =?utf-8?q?7s6xeQ0A5foSd963GioxeeCHM4IOwnlunDaUBya0EByz4vjXHVVg5Lxnr5s+Qtxt2?= =?utf-8?q?YZjDW09lTSN+IY4e08Sauy/RKC2pc8JFDTAT5RIMZ3+bhrEzYTO1i7QdB8Av/psJ+?= =?utf-8?q?uxieinLXlb/RGk956hcqT0ueEInkYNUyquz2Oao+wnVZGoqZoGbwdFg6boFC9P1KW?= =?utf-8?q?ZZRkcvmm/frQ7UPSCl3ejOooNZmaQ/9rsTVgwlVmb82FBK4u4FC3oSORtipUZsID7?= =?utf-8?q?lpKhEqzyMbKIaFd0O43sU/AfemqJPrZ1MXtmpNbaurRy7NPG1ay6yEdv+CsnQMvrQ?= =?utf-8?q?qnJo084vkVlBmmqXTbu9r1JGGVvVamgpHdacAE4p21aa12BmzoSS1KebEsh5TsoAU?= =?utf-8?q?pB8dpvAs9448X/zXwFWT1o8EOZHG83oNeAt810eTe7ZYSizarWPDSdXAN0I6q9o7D?= =?utf-8?q?TJQX8+S97i8U6OioBeTHq8HryOuUM2Gho0xq41HDxZL6TjNQm7HYo+8bH/VhzHxwR?= =?utf-8?q?FcKOjR36xtNS0LViLGCvPTf94OJciOuZ5+MiDuSj6iF/0lT9ZIMG8bzJmgUbkuTPv?= =?utf-8?q?1BBQrnwQGUFMrRMW4NMG5XzRy8oBAIIL5MRrCzhgLL+Ym2vSCl5nZm8qilZQb8T57?= =?utf-8?q?/gtjE2LWCXl6n1y40pmeso3QaQA25fBskxPIiqX2ygTVYuhsaJyQiw5kDCPUeONQn?= =?utf-8?q?F5DsNHS01nEw/8B6Opkaylmjp866/cpkzD/uEDQ3R4Tm7lXWRTxo3RA6wF7PvPnQe?= =?utf-8?q?FjS8/LFKPIbD6o7Z/omhd5IT9E+hZ8Pv9WxuEmIw3B8oo/saojrrWrKbUUcDfgnJb?= =?utf-8?q?0pyNe4E0RbbwnQ/AxLYsUNZsns3zqu+9SSY2YJ9ER+oMZbX+D2BbWaWeYboxygcw/?= =?utf-8?q?X+s43GzMzX0PqOvbNUX1vv+Wk8pmg00G20hfvEF6ywfh6QCeCVmgCevV0duMJtCZ3?= =?utf-8?q?4bgDIveo18FwcAKlJROGLqXJLjHp+B9EUBQzHAvrwko9oFTNFc8rle1Z1kManYaZs?= =?utf-8?q?sBS2loDmnq3zba8fXmTfFIlsf7uiS1WSohEttPUp6OMl/BRWsZvyQZHtxPJj/S3Kw?= =?utf-8?q?qszXkAFa/P+Yas7MrjqFPAwWVf7l314kNa/bq7XWkTOmgam3lee9QXfEcYtiDX2Oh?= =?utf-8?q?pYLezRr6M6QVhu6J/0nJGa9P9pvCSKSWsu8ZDdu4+I4FzsgXbGRr2l0=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ebbd8e94-adb3-4934-e479-08dc38646244 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:37.7772 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Rjkhoneft7Be5gjxjYMwMRtSd11OfDe9Ri8NpRnzC6y+WJw232Z3lHhaFUd7QzJAyRPgBIZszSrjG1H0AwmTLqJ5iH3VwRjemfzewxvufVs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055151_724700_1DA8514D X-CRM114-Status: GOOD ( 22.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch prepares onboad_hub to support non-hub devices by renaming the driver files and their content, the headers and their references. The comments and descriptions have been slightly modified to keep coherence and account for the specific cases that only affect onboard hubs (e.g. peer-hub). The "hub" variables in functions where "dev" (and similar names) variables already exist have been renamed to onboard_dev for clarity, which adds a few lines in cases where more than 80 characters are used. No new functionality has been added. Signed-off-by: Javier Carrasco --- ...-usb-hub => sysfs-bus-platform-onboard-usb-dev} | 3 +- MAINTAINERS | 4 +- drivers/usb/core/Makefile | 4 +- drivers/usb/core/hub.c | 8 +- drivers/usb/core/hub.h | 2 +- drivers/usb/misc/Kconfig | 16 +- drivers/usb/misc/Makefile | 2 +- drivers/usb/misc/onboard_usb_dev.c | 519 +++++++++++++++++++++ .../misc/{onboard_usb_hub.h => onboard_usb_dev.h} | 28 +- ...ard_usb_hub_pdevs.c => onboard_usb_dev_pdevs.c} | 47 +- include/linux/usb/onboard_dev.h | 18 + include/linux/usb/onboard_hub.h | 18 - 12 files changed, 595 insertions(+), 74 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-hub b/Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-dev similarity index 74% rename from Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-hub rename to Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-dev index 42deb0552065..b06a48c3c85a 100644 --- a/Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-hub +++ b/Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-dev @@ -5,4 +5,5 @@ Contact: Matthias Kaehlcke linux-usb@vger.kernel.org Description: (RW) Controls whether the USB hub remains always powered - during system suspend or not. \ No newline at end of file + during system suspend or not. This attribute is not + available for non-hub devices. diff --git a/MAINTAINERS b/MAINTAINERS index 8999497011a2..7ad556ecca40 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16297,8 +16297,8 @@ ONBOARD USB HUB DRIVER M: Matthias Kaehlcke L: linux-usb@vger.kernel.org S: Maintained -F: Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-hub -F: drivers/usb/misc/onboard_usb_hub.c +F: Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-dev +F: drivers/usb/misc/onboard_usb_dev.c ONENAND FLASH DRIVER M: Kyungmin Park diff --git a/drivers/usb/core/Makefile b/drivers/usb/core/Makefile index 7d338e9c0657..ac006abd13b3 100644 --- a/drivers/usb/core/Makefile +++ b/drivers/usb/core/Makefile @@ -12,8 +12,8 @@ usbcore-$(CONFIG_OF) += of.o usbcore-$(CONFIG_USB_PCI) += hcd-pci.o usbcore-$(CONFIG_ACPI) += usb-acpi.o -ifdef CONFIG_USB_ONBOARD_HUB -usbcore-y += ../misc/onboard_usb_hub_pdevs.o +ifdef CONFIG_USB_ONBOARD_DEV +usbcore-y += ../misc/onboard_usb_dev_pdevs.o endif obj-$(CONFIG_USB) += usbcore.o diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index ffd7c99e24a3..f85b3e928a35 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -1776,7 +1776,7 @@ static void hub_disconnect(struct usb_interface *intf) if (hub->quirk_disable_autosuspend) usb_autopm_put_interface(intf); - onboard_hub_destroy_pdevs(&hub->onboard_hub_devs); + onboard_dev_destroy_pdevs(&hub->onboard_devs); kref_put(&hub->kref, hub_release); } @@ -1895,7 +1895,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) INIT_DELAYED_WORK(&hub->leds, led_work); INIT_DELAYED_WORK(&hub->init_work, NULL); INIT_WORK(&hub->events, hub_event); - INIT_LIST_HEAD(&hub->onboard_hub_devs); + INIT_LIST_HEAD(&hub->onboard_devs); spin_lock_init(&hub->irq_urb_lock); timer_setup(&hub->irq_urb_retry, hub_retry_irq_urb, 0); usb_get_intf(intf); @@ -1925,7 +1925,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) } if (hub_configure(hub, &desc->endpoint[0].desc) >= 0) { - onboard_hub_create_pdevs(hdev, &hub->onboard_hub_devs); + onboard_dev_create_pdevs(hdev, &hub->onboard_devs); return 0; } diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h index 43ce21c96a51..3820703b11d8 100644 --- a/drivers/usb/core/hub.h +++ b/drivers/usb/core/hub.h @@ -74,7 +74,7 @@ struct usb_hub { spinlock_t irq_urb_lock; struct timer_list irq_urb_retry; struct usb_port **ports; - struct list_head onboard_hub_devs; + struct list_head onboard_devs; }; /** diff --git a/drivers/usb/misc/Kconfig b/drivers/usb/misc/Kconfig index c510af7baa0d..50b86d531701 100644 --- a/drivers/usb/misc/Kconfig +++ b/drivers/usb/misc/Kconfig @@ -316,18 +316,18 @@ config BRCM_USB_PINMAP signals, which are typically on dedicated pins on the chip, to any gpio. -config USB_ONBOARD_HUB - tristate "Onboard USB hub support" +config USB_ONBOARD_DEV + tristate "Onboard USB device support" depends on OF help - Say Y here if you want to support discrete onboard USB hubs that - don't require an additional control bus for initialization, but - need some non-trivial form of initialization, such as enabling a - power regulator. An example for such a hub is the Realtek - RTS5411. + Say Y here if you want to support discrete onboard USB devices + that don't require an additional control bus for initialization, + but need some non-trivial form of initialization, such as + enabling a power regulator. An example for such device is the + Realtek RTS5411 hub. This driver can be used as a module but its state (module vs builtin) must match the state of the USB subsystem. Enabling this config will enable the driver and it will automatically match the state of the USB subsystem. If this driver is a - module it will be called onboard_usb_hub. + module it will be called onboard_usb_dev. diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile index 0bc732bcb162..0cd5bc8f52fe 100644 --- a/drivers/usb/misc/Makefile +++ b/drivers/usb/misc/Makefile @@ -33,4 +33,4 @@ obj-$(CONFIG_USB_CHAOSKEY) += chaoskey.o obj-$(CONFIG_USB_SISUSBVGA) += sisusbvga/ obj-$(CONFIG_USB_LINK_LAYER_TEST) += lvstest.o obj-$(CONFIG_BRCM_USB_PINMAP) += brcmstb-usb-pinmap.o -obj-$(CONFIG_USB_ONBOARD_HUB) += onboard_usb_hub.o +obj-$(CONFIG_USB_ONBOARD_DEV) += onboard_usb_dev.o diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c new file mode 100644 index 000000000000..e1779bd2d126 --- /dev/null +++ b/drivers/usb/misc/onboard_usb_dev.c @@ -0,0 +1,519 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Driver for onboard USB devices + * + * Copyright (c) 2022, Google LLC + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "onboard_usb_dev.h" + +static void onboard_dev_attach_usb_driver(struct work_struct *work); + +static struct usb_device_driver onboard_dev_usbdev_driver; +static DECLARE_WORK(attach_usb_driver_work, onboard_dev_attach_usb_driver); + +/************************** Platform driver **************************/ + +struct usbdev_node { + struct usb_device *udev; + struct list_head list; +}; + +struct onboard_dev { + struct regulator_bulk_data supplies[MAX_SUPPLIES]; + struct device *dev; + const struct onboard_dev_pdata *pdata; + struct gpio_desc *reset_gpio; + bool always_powered_in_suspend; + bool is_powered_on; + bool going_away; + struct list_head udev_list; + struct mutex lock; + struct clk *clk; +}; + +static int onboard_dev_get_regulator_bulk(struct device *dev, + struct onboard_dev *onboard_dev) +{ + unsigned int i; + int err; + + const char * const *supply_names = onboard_dev->pdata->supply_names; + + if (onboard_dev->pdata->num_supplies > MAX_SUPPLIES) + return dev_err_probe(dev, -EINVAL, "max %d supplies supported!\n", + MAX_SUPPLIES); + + for (i = 0; i < onboard_dev->pdata->num_supplies; i++) + onboard_dev->supplies[i].supply = supply_names[i]; + + err = devm_regulator_bulk_get(dev, onboard_dev->pdata->num_supplies, + onboard_dev->supplies); + if (err) + dev_err(dev, "Failed to get regulator supplies: %pe\n", + ERR_PTR(err)); + + return err; +} + +static int onboard_dev_power_on(struct onboard_dev *onboard_dev) +{ + int err; + + err = clk_prepare_enable(onboard_dev->clk); + if (err) { + dev_err(onboard_dev->dev, "failed to enable clock: %pe\n", + ERR_PTR(err)); + return err; + } + + err = regulator_bulk_enable(onboard_dev->pdata->num_supplies, + onboard_dev->supplies); + if (err) { + dev_err(onboard_dev->dev, "failed to enable supplies: %pe\n", + ERR_PTR(err)); + return err; + } + + fsleep(onboard_dev->pdata->reset_us); + gpiod_set_value_cansleep(onboard_dev->reset_gpio, 0); + + onboard_dev->is_powered_on = true; + + return 0; +} + +static int onboard_dev_power_off(struct onboard_dev *onboard_dev) +{ + int err; + + gpiod_set_value_cansleep(onboard_dev->reset_gpio, 1); + + err = regulator_bulk_disable(onboard_dev->pdata->num_supplies, + onboard_dev->supplies); + if (err) { + dev_err(onboard_dev->dev, "failed to disable supplies: %pe\n", + ERR_PTR(err)); + return err; + } + + clk_disable_unprepare(onboard_dev->clk); + + onboard_dev->is_powered_on = false; + + return 0; +} + +static int __maybe_unused onboard_dev_suspend(struct device *dev) +{ + struct onboard_dev *onboard_dev = dev_get_drvdata(dev); + struct usbdev_node *node; + bool power_off = true; + + if (onboard_dev->always_powered_in_suspend) + return 0; + + mutex_lock(&onboard_dev->lock); + + list_for_each_entry(node, &onboard_dev->udev_list, list) { + if (!device_may_wakeup(node->udev->bus->controller)) + continue; + + if (usb_wakeup_enabled_descendants(node->udev)) { + power_off = false; + break; + } + } + + mutex_unlock(&onboard_dev->lock); + + if (!power_off) + return 0; + + return onboard_dev_power_off(onboard_dev); +} + +static int __maybe_unused onboard_dev_resume(struct device *dev) +{ + struct onboard_dev *onboard_dev = dev_get_drvdata(dev); + + if (onboard_dev->is_powered_on) + return 0; + + return onboard_dev_power_on(onboard_dev); +} + +static inline void get_udev_link_name(const struct usb_device *udev, char *buf, + size_t size) +{ + snprintf(buf, size, "usb_dev.%s", dev_name(&udev->dev)); +} + +static int onboard_dev_add_usbdev(struct onboard_dev *onboard_dev, + struct usb_device *udev) +{ + struct usbdev_node *node; + char link_name[64]; + int err; + + mutex_lock(&onboard_dev->lock); + + if (onboard_dev->going_away) { + err = -EINVAL; + goto error; + } + + node = kzalloc(sizeof(*node), GFP_KERNEL); + if (!node) { + err = -ENOMEM; + goto error; + } + + node->udev = udev; + + list_add(&node->list, &onboard_dev->udev_list); + + mutex_unlock(&onboard_dev->lock); + + get_udev_link_name(udev, link_name, sizeof(link_name)); + WARN_ON(sysfs_create_link(&onboard_dev->dev->kobj, &udev->dev.kobj, + link_name)); + + return 0; + +error: + mutex_unlock(&onboard_dev->lock); + + return err; +} + +static void onboard_dev_remove_usbdev(struct onboard_dev *onboard_dev, + const struct usb_device *udev) +{ + struct usbdev_node *node; + char link_name[64]; + + get_udev_link_name(udev, link_name, sizeof(link_name)); + sysfs_remove_link(&onboard_dev->dev->kobj, link_name); + + mutex_lock(&onboard_dev->lock); + + list_for_each_entry(node, &onboard_dev->udev_list, list) { + if (node->udev == udev) { + list_del(&node->list); + kfree(node); + break; + } + } + + mutex_unlock(&onboard_dev->lock); +} + +static ssize_t always_powered_in_suspend_show(struct device *dev, + struct device_attribute *attr, + char *buf) +{ + const struct onboard_dev *onboard_dev = dev_get_drvdata(dev); + + return sysfs_emit(buf, "%d\n", onboard_dev->always_powered_in_suspend); +} + +static ssize_t always_powered_in_suspend_store(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) +{ + struct onboard_dev *onboard_dev = dev_get_drvdata(dev); + bool val; + int ret; + + ret = kstrtobool(buf, &val); + if (ret < 0) + return ret; + + onboard_dev->always_powered_in_suspend = val; + + return count; +} +static DEVICE_ATTR_RW(always_powered_in_suspend); + +static struct attribute *onboard_dev_attrs[] = { + &dev_attr_always_powered_in_suspend.attr, + NULL, +}; +ATTRIBUTE_GROUPS(onboard_dev); + +static void onboard_dev_attach_usb_driver(struct work_struct *work) +{ + int err; + + err = driver_attach(&onboard_dev_usbdev_driver.driver); + if (err) + pr_err("Failed to attach USB driver: %pe\n", ERR_PTR(err)); +} + +static int onboard_dev_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct onboard_dev *onboard_dev; + int err; + + onboard_dev = devm_kzalloc(dev, sizeof(*onboard_dev), GFP_KERNEL); + if (!onboard_dev) + return -ENOMEM; + + onboard_dev->pdata = device_get_match_data(&pdev->dev); + if (!onboard_dev->pdata) + return -EINVAL; + + err = onboard_dev_get_regulator_bulk(dev, onboard_dev); + if (err) + return err; + + onboard_dev->clk = devm_clk_get_optional(dev, NULL); + if (IS_ERR(onboard_dev->clk)) + return dev_err_probe(dev, PTR_ERR(onboard_dev->clk), + "failed to get clock\n"); + + onboard_dev->reset_gpio = devm_gpiod_get_optional(dev, "reset", + GPIOD_OUT_HIGH); + if (IS_ERR(onboard_dev->reset_gpio)) + return dev_err_probe(dev, PTR_ERR(onboard_dev->reset_gpio), + "failed to get reset GPIO\n"); + + onboard_dev->dev = dev; + mutex_init(&onboard_dev->lock); + INIT_LIST_HEAD(&onboard_dev->udev_list); + + dev_set_drvdata(dev, onboard_dev); + + err = onboard_dev_power_on(onboard_dev); + if (err) + return err; + + /* + * The USB driver might have been detached from the USB devices by + * onboard_dev_remove() (e.g. through an 'unbind' by userspace), + * make sure to re-attach it if needed. + * + * This needs to be done deferred to avoid self-deadlocks on systems + * with nested onboard hubs. + */ + schedule_work(&attach_usb_driver_work); + + return 0; +} + +static void onboard_dev_remove(struct platform_device *pdev) +{ + struct onboard_dev *onboard_dev = dev_get_drvdata(&pdev->dev); + struct usbdev_node *node; + struct usb_device *udev; + + onboard_dev->going_away = true; + + mutex_lock(&onboard_dev->lock); + + /* unbind the USB devices to avoid dangling references to this device */ + while (!list_empty(&onboard_dev->udev_list)) { + node = list_first_entry(&onboard_dev->udev_list, + struct usbdev_node, list); + udev = node->udev; + + /* + * Unbinding the driver will call onboard_dev_remove_usbdev(), + * which acquires onboard_dev->lock. We must release the lock + * first. + */ + get_device(&udev->dev); + mutex_unlock(&onboard_dev->lock); + device_release_driver(&udev->dev); + put_device(&udev->dev); + mutex_lock(&onboard_dev->lock); + } + + mutex_unlock(&onboard_dev->lock); + + onboard_dev_power_off(onboard_dev); +} + +MODULE_DEVICE_TABLE(of, onboard_dev_match); + +static const struct dev_pm_ops __maybe_unused onboard_dev_pm_ops = { + SET_LATE_SYSTEM_SLEEP_PM_OPS(onboard_dev_suspend, onboard_dev_resume) +}; + +static struct platform_driver onboard_dev_driver = { + .probe = onboard_dev_probe, + .remove_new = onboard_dev_remove, + + .driver = { + .name = "onboard-usb-dev", + .of_match_table = onboard_dev_match, + .pm = pm_ptr(&onboard_dev_pm_ops), + .dev_groups = onboard_dev_groups, + }, +}; + +/************************** USB driver **************************/ + +#define VENDOR_ID_CYPRESS 0x04b4 +#define VENDOR_ID_GENESYS 0x05e3 +#define VENDOR_ID_MICROCHIP 0x0424 +#define VENDOR_ID_REALTEK 0x0bda +#define VENDOR_ID_TI 0x0451 +#define VENDOR_ID_VIA 0x2109 + +/* + * Returns the onboard_dev platform device that is associated with the USB + * device passed as parameter. + */ +static struct onboard_dev *_find_onboard_dev(struct device *dev) +{ + struct platform_device *pdev; + struct device_node *np; + struct onboard_dev *onboard_dev; + + pdev = of_find_device_by_node(dev->of_node); + if (!pdev) { + np = of_parse_phandle(dev->of_node, "peer-hub", 0); + if (!np) { + dev_err(dev, "failed to find device node for peer hub\n"); + return ERR_PTR(-EINVAL); + } + + pdev = of_find_device_by_node(np); + of_node_put(np); + + if (!pdev) + return ERR_PTR(-ENODEV); + } + + onboard_dev = dev_get_drvdata(&pdev->dev); + put_device(&pdev->dev); + + /* + * The presence of drvdata indicates that the platform driver finished + * probing. This handles the case where (conceivably) we could be + * running at the exact same time as the platform driver's probe. If + * we detect the race we request probe deferral and we'll come back and + * try again. + */ + if (!onboard_dev) + return ERR_PTR(-EPROBE_DEFER); + + return onboard_dev; +} + +static int onboard_dev_usbdev_probe(struct usb_device *udev) +{ + struct device *dev = &udev->dev; + struct onboard_dev *onboard_dev; + int err; + + /* ignore supported devices without device tree node */ + if (!dev->of_node) + return -ENODEV; + + onboard_dev = _find_onboard_dev(dev); + if (IS_ERR(onboard_dev)) + return PTR_ERR(onboard_dev); + + dev_set_drvdata(dev, onboard_dev); + + err = onboard_dev_add_usbdev(onboard_dev, udev); + if (err) + return err; + + return 0; +} + +static void onboard_dev_usbdev_disconnect(struct usb_device *udev) +{ + struct onboard_dev *onboard_dev = dev_get_drvdata(&udev->dev); + + onboard_dev_remove_usbdev(onboard_dev, udev); +} + +static const struct usb_device_id onboard_dev_id_table[] = { + { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6504) }, /* CYUSB33{0,1,2}x/CYUSB230x 3.0 */ + { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6506) }, /* CYUSB33{0,1,2}x/CYUSB230x 2.0 */ + { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6570) }, /* CY7C6563x 2.0 */ + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0610) }, /* Genesys Logic GL852G USB 2.0 */ + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0620) }, /* Genesys Logic GL3523 USB 3.1 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2412) }, /* USB2412 USB 2.0 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2517) }, /* USB2517 USB 2.0 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2744) }, /* USB5744 USB 2.0 */ + { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x5744) }, /* USB5744 USB 3.0 */ + { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */ + { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */ + { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 */ + { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 */ + { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 */ + { USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 */ + { USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 */ + { USB_DEVICE(VENDOR_ID_VIA, 0x2817) }, /* VIA VL817 2.0 */ + {} +}; +MODULE_DEVICE_TABLE(usb, onboard_dev_id_table); + +static struct usb_device_driver onboard_dev_usbdev_driver = { + .name = "onboard-usb-dev", + .probe = onboard_dev_usbdev_probe, + .disconnect = onboard_dev_usbdev_disconnect, + .generic_subclass = 1, + .supports_autosuspend = 1, + .id_table = onboard_dev_id_table, +}; + +static int __init onboard_dev_init(void) +{ + int ret; + + ret = usb_register_device_driver(&onboard_dev_usbdev_driver, THIS_MODULE); + if (ret) + return ret; + + ret = platform_driver_register(&onboard_dev_driver); + if (ret) + usb_deregister_device_driver(&onboard_dev_usbdev_driver); + + return ret; +} +module_init(onboard_dev_init); + +static void __exit onboard_dev_exit(void) +{ + usb_deregister_device_driver(&onboard_dev_usbdev_driver); + platform_driver_unregister(&onboard_dev_driver); + + cancel_work_sync(&attach_usb_driver_work); +} +module_exit(onboard_dev_exit); + +MODULE_AUTHOR("Matthias Kaehlcke "); +MODULE_DESCRIPTION("Driver for discrete onboard USB devices"); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_dev.h similarity index 74% rename from drivers/usb/misc/onboard_usb_hub.h rename to drivers/usb/misc/onboard_usb_dev.h index ea24bd6790f0..470736483cdf 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_dev.h @@ -3,72 +3,72 @@ * Copyright (c) 2022, Google LLC */ -#ifndef _USB_MISC_ONBOARD_USB_HUB_H -#define _USB_MISC_ONBOARD_USB_HUB_H +#ifndef _USB_MISC_ONBOARD_USB_DEV_H +#define _USB_MISC_ONBOARD_USB_DEV_H #define MAX_SUPPLIES 2 -struct onboard_hub_pdata { +struct onboard_dev_pdata { unsigned long reset_us; /* reset pulse width in us */ unsigned int num_supplies; /* number of supplies */ const char * const supply_names[MAX_SUPPLIES]; /* use the real names */ }; -static const struct onboard_hub_pdata microchip_usb424_data = { +static const struct onboard_dev_pdata microchip_usb424_data = { .reset_us = 1, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata microchip_usb5744_data = { +static const struct onboard_dev_pdata microchip_usb5744_data = { .reset_us = 0, .num_supplies = 2, .supply_names = { "vdd", "vdd2" }, }; -static const struct onboard_hub_pdata realtek_rts5411_data = { +static const struct onboard_dev_pdata realtek_rts5411_data = { .reset_us = 0, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata ti_tusb8041_data = { +static const struct onboard_dev_pdata ti_tusb8041_data = { .reset_us = 3000, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata cypress_hx3_data = { +static const struct onboard_dev_pdata cypress_hx3_data = { .reset_us = 10000, .num_supplies = 2, .supply_names = { "vdd", "vdd2" }, }; -static const struct onboard_hub_pdata cypress_hx2vl_data = { +static const struct onboard_dev_pdata cypress_hx2vl_data = { .reset_us = 1, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata genesys_gl850g_data = { +static const struct onboard_dev_pdata genesys_gl850g_data = { .reset_us = 3, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata genesys_gl852g_data = { +static const struct onboard_dev_pdata genesys_gl852g_data = { .reset_us = 50, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct onboard_hub_pdata vialab_vl817_data = { +static const struct onboard_dev_pdata vialab_vl817_data = { .reset_us = 10, .num_supplies = 1, .supply_names = { "vdd" }, }; -static const struct of_device_id onboard_hub_match[] = { +static const struct of_device_id onboard_dev_match[] = { { .compatible = "usb424,2412", .data = µchip_usb424_data, }, { .compatible = "usb424,2514", .data = µchip_usb424_data, }, { .compatible = "usb424,2517", .data = µchip_usb424_data, }, @@ -92,4 +92,4 @@ static const struct of_device_id onboard_hub_match[] = { {} }; -#endif /* _USB_MISC_ONBOARD_USB_HUB_H */ +#endif /* _USB_MISC_ONBOARD_USB_DEV_H */ diff --git a/drivers/usb/misc/onboard_usb_hub_pdevs.c b/drivers/usb/misc/onboard_usb_dev_pdevs.c similarity index 68% rename from drivers/usb/misc/onboard_usb_hub_pdevs.c rename to drivers/usb/misc/onboard_usb_dev_pdevs.c index ed22a18f4ab7..722504752ce3 100644 --- a/drivers/usb/misc/onboard_usb_hub_pdevs.c +++ b/drivers/usb/misc/onboard_usb_dev_pdevs.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * API for creating and destroying USB onboard hub platform devices + * API for creating and destroying USB onboard platform devices * * Copyright (c) 2022, Google LLC */ @@ -15,29 +15,30 @@ #include #include #include -#include +#include -#include "onboard_usb_hub.h" +#include "onboard_usb_dev.h" struct pdev_list_entry { struct platform_device *pdev; struct list_head node; }; -static bool of_is_onboard_usb_hub(const struct device_node *np) +static bool of_is_onboard_usb_dev(struct device_node *np) { - return !!of_match_node(onboard_hub_match, np); + return !!of_match_node(onboard_dev_match, np); } /** - * onboard_hub_create_pdevs -- create platform devices for onboard USB hubs - * @parent_hub : parent hub to scan for connected onboard hubs - * @pdev_list : list of onboard hub platform devices owned by the parent hub + * onboard_dev_create_pdevs -- create platform devices for onboard USB devices + * @parent_hub : parent hub to scan for connected onboard devices + * @pdev_list : list of onboard platform devices owned by the parent hub * - * Creates a platform device for each supported onboard hub that is connected to - * the given parent hub. The platform device is in charge of initializing the - * hub (enable regulators, take the hub out of reset, ...) and can optionally - * control whether the hub remains powered during system suspend or not. + * Creates a platform device for each supported onboard device that is connected + * to the given parent hub. The platform device is in charge of initializing the + * device (enable regulators, take the device out of reset, ...). For onboard + * hubs, it can optionally control whether the device remains powered during + * system suspend or not. * * To keep track of the platform devices they are added to a list that is owned * by the parent hub. @@ -50,9 +51,9 @@ static bool of_is_onboard_usb_hub(const struct device_node *np) * node. That means the root hubs of the primary and secondary HCD share the * same device tree node (the HCD node). As a result this function can be called * twice with the same DT node for root hubs. We only want to create a single - * platform device for each physical onboard hub, hence for root hubs the loop - * is only executed for the root hub of the primary HCD. Since the function - * scans through all child nodes it still creates pdevs for onboard hubs + * platform device for each physical onboard device, hence for root hubs the + * loop is only executed for the root hub of the primary HCD. Since the function + * scans through all child nodes it still creates pdevs for onboard devices * connected to the root hub of the secondary HCD if needed. * * Further there must be only one platform device for onboard hubs with a peer @@ -63,7 +64,7 @@ static bool of_is_onboard_usb_hub(const struct device_node *np) * the function processes the nodes of both peers. A platform device is only * created if the peer hub doesn't have one already. */ -void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list) +void onboard_dev_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list) { int i; struct usb_hcd *hcd = bus_to_hcd(parent_hub->bus); @@ -82,7 +83,7 @@ void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *p if (!np) continue; - if (!of_is_onboard_usb_hub(np)) + if (!of_is_onboard_usb_dev(np)) goto node_put; npc = of_parse_phandle(np, "peer-hub", 0); @@ -104,7 +105,7 @@ void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *p pdev = of_platform_device_create(np, NULL, &parent_hub->dev); if (!pdev) { dev_err(&parent_hub->dev, - "failed to create platform device for onboard hub '%pOF'\n", np); + "failed to create platform device for onboard dev '%pOF'\n", np); goto node_put; } @@ -121,16 +122,16 @@ void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *p of_node_put(np); } } -EXPORT_SYMBOL_GPL(onboard_hub_create_pdevs); +EXPORT_SYMBOL_GPL(onboard_dev_create_pdevs); /** - * onboard_hub_destroy_pdevs -- free resources of onboard hub platform devices - * @pdev_list : list of onboard hub platform devices + * onboard_dev_destroy_pdevs -- free resources of onboard platform devices + * @pdev_list : list of onboard platform devices * * Destroys the platform devices in the given list and frees the memory associated * with the list entry. */ -void onboard_hub_destroy_pdevs(struct list_head *pdev_list) +void onboard_dev_destroy_pdevs(struct list_head *pdev_list) { struct pdev_list_entry *pdle, *tmp; @@ -140,4 +141,4 @@ void onboard_hub_destroy_pdevs(struct list_head *pdev_list) kfree(pdle); } } -EXPORT_SYMBOL_GPL(onboard_hub_destroy_pdevs); +EXPORT_SYMBOL_GPL(onboard_dev_destroy_pdevs); diff --git a/include/linux/usb/onboard_dev.h b/include/linux/usb/onboard_dev.h new file mode 100644 index 000000000000..b79db6d193c8 --- /dev/null +++ b/include/linux/usb/onboard_dev.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __LINUX_USB_ONBOARD_DEV_H +#define __LINUX_USB_ONBOARD_DEV_H + +struct usb_device; +struct list_head; + +#if IS_ENABLED(CONFIG_USB_ONBOARD_DEV) +void onboard_dev_create_pdevs(struct usb_device *parent_dev, struct list_head *pdev_list); +void onboard_dev_destroy_pdevs(struct list_head *pdev_list); +#else +static inline void onboard_dev_create_pdevs(struct usb_device *parent_dev, + struct list_head *pdev_list) {} +static inline void onboard_dev_destroy_pdevs(struct list_head *pdev_list) {} +#endif + +#endif /* __LINUX_USB_ONBOARD_DEV_H */ diff --git a/include/linux/usb/onboard_hub.h b/include/linux/usb/onboard_hub.h deleted file mode 100644 index d9373230556e..000000000000 --- a/include/linux/usb/onboard_hub.h +++ /dev/null @@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef __LINUX_USB_ONBOARD_HUB_H -#define __LINUX_USB_ONBOARD_HUB_H - -struct usb_device; -struct list_head; - -#if IS_ENABLED(CONFIG_USB_ONBOARD_HUB) -void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list); -void onboard_hub_destroy_pdevs(struct list_head *pdev_list); -#else -static inline void onboard_hub_create_pdevs(struct usb_device *parent_hub, - struct list_head *pdev_list) {} -static inline void onboard_hub_destroy_pdevs(struct list_head *pdev_list) {} -#endif - -#endif /* __LINUX_USB_ONBOARD_HUB_H */ From patchwork Wed Feb 28 13:51:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575507 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93DCFC5478C for ; Wed, 28 Feb 2024 13:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=U+aXTl5JkfJ5dtkUCzJYyMLVB7sB+buoICtUWUZj19k=; b=KVuaj/6sQtKtHik0wLzwWhSr1l yNpVYMxAGxgKF1b2m72L6CxP9LrsyVMWD8L6/dBrAspylXSLHY6EDNMmOvbBfZutvMT9TChDOtBlT dWIvJY3zOy6ujSwbpZ3utU0YtGvDTNF3OvpPRCTq+k2VAfAmxCrONXjJlLMDiIhAI0TsgWd8ba4Ak GqCg7IrFHuR0ZqAxsykrrFLx8o6B0XreYow/ObxRm/8A2s+0Li02+qyMsTOhM5VDUSr/HNltoiE+H qnOrG0XwHdE9K2rtdIzHUCVv43k2OUVwOLauT6Nc4urYpUKpHdqc/6Z/5aJhQYMWollM3I8hjXMJs tUUVb1JA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLv-00000009Y8y-2OQ0; Wed, 28 Feb 2024 13:52:07 +0000 Received: from mail-db3eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLg-00000009Xxe-38gw for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJk1bcOij4IaOHmYkYbLYp8SpgIBM50bau9K40eerkM1zibs67sUlD/LiCrbyLGgT63xJitZcoZwU2o2A4w5aoOBDVde0jULlr/jN6ZTIymf66XLPwl836N460Q4+Qv2DoxLbGgmsZteTsGQ19ekVz8MfXv/JgrtWzuEtPOIlzEeKNF5K9e5/uFchyGlINpEvdGXgactBjtoULYlOLeTM0b0zI9IzZ8Zugy6q2fJh5VYp1ltjGb0sRIn5HDYqyc5WHaFbhjp13Po2RqXS9ZzxEL8TMSQG4uCxpB2eds2cUbk+wvRVlEmRHFN+VhcwlmuSMo4HNXZUSjLsVr04Xh8qw== 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=MWT5qTUoBybcuWRrrtvTKlGHfdiit8E0volSwnQvULs=; b=MeJZcDzfHfcxJiwRs1GhD21f6MkMF/i+WzW2tecMT1pJBhqi30FEQSFi4AQAmzqz+V6ub9DYA/Sv87138PWmoUdRfjKZdXoWtcLdYHnuyro6kS9P5mW3j4nESI3rZlfYfKseEIHIv6octL3l2+jf4xIU4HoqQdLPv2JJAaH7oUf3qKhiO8kCqpgP9QzDZggldaacrnWh4otUyF/1GRDmyUex3zodON+t5w2tkJV/uRIEnTm8CPx29uPNlYtSbxXCZHhgilFolEGFY/LeOedRi3jG2qswpcfmZPFWu+8CY3fTA9yn0+XFmZP9cMnDo7IQ8lFHvKCXSW85UmRRovszGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MWT5qTUoBybcuWRrrtvTKlGHfdiit8E0volSwnQvULs=; b=hBQbFj5ghsPp2xB0n+WckOfx0gCWMwfnbBjIsjWlbUpndPbwREOXDXWGkdZJUL2rch/w3a1JdMDgbG1PCGdgF5/mIetohutZjuIzLL3TpbsJdkPjtDhBHuWtHXMux+/rmDuVXUYDaqjY/hMmvxC0E7CtAPTVnLsc+WvH3A2R5Yg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:39 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:39 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:30 +0100 Subject: [PATCH v5 3/8] drm: ci: arm64.config: update ONBOARD_USB_HUB to ONBOARD_USB_DEV Message-Id: <20240228-onboard_xvf3500-v5-3-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=1052; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=8N+eqRO95PGeajXAAAiRwSPUATjuHBDxxAPxCCAJmv0=; b=aR3y4hg7UaqM/bVdgPpKCR0gjJ78URcQKBqfbgRvRqDwPnXQjYPYjc+2XRnslFQdmhgOJzK/A Ea7CvvRpPQZAZnsbtu24BQLtWSNrfAcabLjkq8KYD6zAH1SgIy6Erdd X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bd09ae2-87ac-4e23-41f6-08dc38646312 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EjjJ/PgLfE//g6Ds4HkAbUP/T65S/3M4bW8xDdOp6ADYV9hPGwTEaRmjZy535Ol6xCzt0ho78+h//bscrnQ4VkeTjPOuidaaBBga2jYRHEYuZm3ES9jYgoLVC/Nht70YawWPC52v+4Yb4RHqOu6WIqwOLzYGJ8bbHi4FWpLSwTL7//Vl8EltYmZh3Up6Xay+ETrhtH7D8oHY9mVNT8fdMHCSx695S72ySfLEg4UxCsurq5/+rs4PxjxqC+6eW6wDtKMILc6olzTZwrFC+72xc9frO2EttNoO/egwZUziMJ68QhZtWD78mF09AEq2cT3COaaTWVMXlwVVxZdtE6zBa+wnhPdQjoxvynM+Kcr9CwKVenFmzxQvFmefusaNWB+omeXd7HqXc0VR8iwEFS9BKS8K6aF85cykF3aOSMSSzhGengx2wabW0SqrtpHtc4fX/Uc+CYSQKF8ZCkjNV1Zs7in5z3OZW208H9iIVJtWiCNgK1E3kCLustPio/sNDSrB1xYGTjE2WsSfVI5Hfahev6oSjUmtox7GukkW0d3UfwdyzI9SOTIufOXhJnHhnvnDL869lfxxmPST+gBSbOfrV5sE1EVWN0JLnSm2a0dJO3fsh/vDRuv35cOIMX9R/8fTbErcQ5Wid3xTPON4OcFd2Q/MTak8XMAnYdV5LEVBblEMzbLJnjlm+x7Ip5NY0VUR4GtNwIwI3HMEJxI6Yr3SMsi8wpLf3zhPmOks3Iea0Qo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eBTSwCMlhqdGRV6RREHoTQzse7V5?= =?utf-8?q?ovVwUt++7j3rA+yllwJSGj8FSmDwucfnY0USuZadneaGEA2ID3N9uFpiH+VkHhP1Y?= =?utf-8?q?gvjGQ1WqvzK1XZmVQVTvIRBUXXqZ9iUWHDkyQh4Qrj1QpngLCHDZfIU7OI/a9yU4Z?= =?utf-8?q?EOk1HHIphDbRNnV9wb34ysRqqo67V6D4wXkgBKbFTLaAozjmA1x7hkyXnJar++8Uy?= =?utf-8?q?XDs2PGnBGhcE24kvyaz18hFRzBjqy8YDy0kG4U2vk3vg8XZNaZi67MO8eeaRGOdQz?= =?utf-8?q?Rl0iSTSOylykvfEt/jj+c3GE/OAEIXcewooAvm78q6C3uzoJ2fOMi3LlnQ5DWJ0fp?= =?utf-8?q?ltwWWcOe+JNPfsOGUK4U9hjuuP5i1i/f6spBw7nDjY7cTSaxXjOY5TXnm1aKAIO6a?= =?utf-8?q?JaPoASmJSbxH0e9RjYQqyJa2YI1ow92NP849IjrVVCZVWbZbCoSjf/gzEGVSo0NTo?= =?utf-8?q?WY5pyPMWfJHIuip7TpHFmHiZb3gIjUNGcR9iA4s3wOaIV2oPzHNtsAKnUcklO4RHE?= =?utf-8?q?s6Z7qhwTJdxPtxhmyGQJLeJ18FMwmCSNF29O5G0ZDsTjJbAiu/sheQ6LcaTYuiZyX?= =?utf-8?q?7SfJKZRrPXJJa0fFLh3cJTgf0zticcOrmIRQvf0lAuqxYslkLv8e2k9s2hQ0k+pS/?= =?utf-8?q?SNjqRAd70RpaQSSIPHZdpPkkJryRvwRyd8dk4FiNMDZISsOAcTb9RO5ZWax/9Ac1k?= =?utf-8?q?phQUujNcP9wrDPlZoIMYZWMQAl/ATVLvX5kheV1IV5SnDRBy7ijDug2Rc5UvkD6hs?= =?utf-8?q?HzhrOhk0+TU2cQhS39T9S8kbNww2aKN7TxS07RUirHusiIEUTaDforuwcSbyuPKHt?= =?utf-8?q?e2n5AScsKin14XVUeVlOGkwxZLpK9Ecvb7sF8MQp5cz5RbCBHjM3b4PQcFo64j1G3?= =?utf-8?q?seoVWPnYjFsNTiPK7DnZ7OmAhzJO2f0aOS8/Y4b4vSIZ6y8KFws8WUD+GZMbP6BoX?= =?utf-8?q?1dHB5HCuCi42QkhRL7LMrJ/ktioBdGTiC5hophAz9a96Xn6QuGAmPZOrTc94HPX3b?= =?utf-8?q?8rsGj/McFqJ42w4PiU6qRzCggTMo3u6E7CtFCRw1IeTbwMdJbL0J0WJQUlcJX2gRV?= =?utf-8?q?um8r9rm+t63bL9V8/j5asLxUaC3oqHKXkuSegx/As5jMHEITqEKdJRD/Zu99k7c8Q?= =?utf-8?q?VMUwLoFjfKPZ5YH1xJgMpTGsj4I5Ndn0LW4yC/kmDAYF6zFtGv8JPaL2vkBJpr+xw?= =?utf-8?q?eF+vL0NpfusFHy0lM0SXr6lMcj+qbvZvb9tJY4jXrAGl3xRoDZRzWoMeJhhBHroT8?= =?utf-8?q?SGkCr9+pqIr5NiknoNxAwExDpEMZGqshEKWttmMuy08r0scrFLlpW4t2LG4NqhLGu?= =?utf-8?q?K2BkCCbeq1xLGeiePOI07MXWrSf7QdIa7/IlmJ+KE3zUz2m7gHIOEmUWuhrjndukY?= =?utf-8?q?4N/qzoMGYmT1RKhlP0FvG+uzwzS5FwtB8v2iIQCM580P1dK8sGG8OUc0+DvfftaO9?= =?utf-8?q?M+ohjFghY900rm8EhkQnja9SzYxQbGUWgNXxPbvmWZQjIS4qV1/SU4QrJ1+qL2PjL?= =?utf-8?q?1z6WBU3QsCDZjwISbAKU+8xRvBSiGjC66Op1L1jm1AKvhCUiv5ZCRNU=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 3bd09ae2-87ac-4e23-41f6-08dc38646312 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:39.0864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IT3TgFKNk9OIU/nloq+lc9dZzTVezyz9yqTOhCTVtcao7VQTKm/ZTIYw6b5BIs47RloP5PI/uGRbeoruPaWBCi5HxDXdR57IlxnDr379rDY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055152_910002_987DB635 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Acked-by: Helen Koike Signed-off-by: Javier Carrasco --- drivers/gpu/drm/ci/arm64.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ci/arm64.config b/drivers/gpu/drm/ci/arm64.config index 8dbce9919a57..4140303d6260 100644 --- a/drivers/gpu/drm/ci/arm64.config +++ b/drivers/gpu/drm/ci/arm64.config @@ -87,7 +87,7 @@ CONFIG_DRM_PARADE_PS8640=y CONFIG_DRM_LONTIUM_LT9611UXC=y CONFIG_PHY_QCOM_USB_HS=y CONFIG_QCOM_GPI_DMA=y -CONFIG_USB_ONBOARD_HUB=y +CONFIG_USB_ONBOARD_DEV=y CONFIG_NVMEM_QCOM_QFPROM=y CONFIG_PHY_QCOM_USB_SNPS_FEMTO_V2=y @@ -97,7 +97,7 @@ CONFIG_USB_RTL8152=y # db820c ethernet CONFIG_ATL1C=y # Chromebooks ethernet -CONFIG_USB_ONBOARD_HUB=y +CONFIG_USB_ONBOARD_DEV=y # 888 HDK ethernet CONFIG_USB_LAN78XX=y From patchwork Wed Feb 28 13:51:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575509 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F02BC5478C for ; Wed, 28 Feb 2024 13:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=TiOzZNWqrKhhn5tI/Iazlr4H66amjxl8AkMJf/vDwCQ=; b=EiK3eD/jzrgSxX4NzRrn0ZylBH 4yp0t6wi40ji9r3gw1zjbWb/pTKga4w3AmkCZCgw+5oGeZovdeA0l1Sb1lqZVDstN0WQk6bIkw1si IlBLBVfmMjJZpNyM2beWXfJCrHhxxi/b9uG8hxMsAgXvM8m3yZUa/j+Iu9zG4G9vqO5JWTCGM6BR3 lCv08fbnJV6C50t1Q7FtlHqyQOYvx5jpYbUlV0S3wZHfb4oLSu7V0HfHCOQg+uHPxqYcEIOi7zzPD OhyGm8OVWw4TBaAs0vGLrm82Rjh8Svoo9IVc/wjPxODnWvRj2yxj+oE0NZFiQNhRX/9MALXDTNpbO DqUax9Tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLy-00000009YAh-0A8Z; Wed, 28 Feb 2024 13:52:10 +0000 Received: from mail-db3eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLi-00000009Xxe-3U8w for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BKqU/85HsIbdNSMrEG1lwjrAN9FEy735tu3fgVRPYA8Oh0EC0dDe1xkxpr0lw1d6a6fEldkrPebTcHrodWljT6pShZIdhxAfHoUy/g8dcZGO/Cs7VloKhMCmp/TWhRfS6HhCJSeIfU6RiXz08zYdadAaWbtoAj9NpEx6stYmBBtiBTt7cd++5MzvyyB9xQflbiAUgJSv7CevhGYqIj1vuy10El+fLmcvJwHa6IZO2bP1XQh5Q5199VSGmy87kotfGp14+YSIhVS4W37oTsuMbBXRtRXz1wV8mSMbPLqkf+NE7EvaOTMBe93nYnwT6Zz6fe+GkLAGH5gYnStotsBELQ== 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=jbaOGiQnqMim73n95NNuOUW1VNxYpJ3bWE0RQMANOTk=; b=JNuRPAT37pNwvEG7bTydi9uQBNAucupHxJ+IErQQvdgZlYTN+JHWjox6R6Gy4joMmbxIfI3cyU6LToLPAF3b5trzO2gGDUHYJ7DBNhtjbGI53BeZKX2B2zEF895NkUNNCdpfWE+NxfyhTgYN6f8czV8YRQoZlZfvoApKiQrA1QJ298CzAd7fVEvD6iU6JMfLkxGFNzUQGGpTtcjyN05tuB/Av/fwncJLhv6CXuBYvwSK2Kyi3op9ZH7Yk+607/0vlbvSYrrMvp9I10PF3fiFVxP9lG47PESL7C4R8rBvkSUm98YTymQ12WkLROy4IQuxG7m3kmAJpgm5XtcFD4Ur7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jbaOGiQnqMim73n95NNuOUW1VNxYpJ3bWE0RQMANOTk=; b=YLsNoDi7l9R1QFTt2gRpjdC1hP06ZCJFlzFJt0cmGwTgdfJJg5HW04NCqP7dUStiaYGN/MpstQsRIGJcgbqmIungq13Md8h2misg47liIdITqfXx4db2HwvvEVCaeyRXjHhgxNBbywDM86HW9tCAD7tvOrdxw77MrgpqRbIw3cI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:40 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:40 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:31 +0100 Subject: [PATCH v5 4/8] arm64: defconfig: update ONBOARD_USB_HUB to ONBOARD_USB_DEV Message-Id: <20240228-onboard_xvf3500-v5-4-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=792; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=Hn7W5NquFOfa2SPwHz+COI8OES/VcCwNF5nc43UmJR0=; b=VmKJ7Xcux+W6fAEx3Xp38ACKQhp6+Qy1MuZzC/eP9SrhshZGJ2dCLO8M6ihHyo53tOrpLylFg FYkWYW+yYSqD/5k2uIL3EyaM0BQJlzlbyXunq4UrUAJ1GD2SArZJm4r X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d70202a-28c4-4163-a390-08dc386463c8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BDYWHIe0ZPYjksSqhvSZbRt2KGU6NDGjbmmibM/rQTManfboZhnshBWHEVGfcIBf95JKE5XpmW0XFgpnBnOO8ZsmPZQHWMwe7XsDDMQfPEwnq1TgaaRHW0Cvrj3q8fZuXlKwYbCx7+N8i8izgO5lKwAkO41Sdbj1otYViOC+xIzjEvVI7jS9lbsu+KIxY3NokXP0zfI4pN7DDBkXZ4zUxkrrrCOwUFSPjAem5E3H5kH36o7PeNZ4s+LIQakbHuzdbFVH+Sxv7ndacAbtcSDx+2Tmlb1/rxv7SSfViApZJrG6IAx7+XclkZ9EdgD/RpE3o1x18Z+Q442otrUYOsdnxKTpG7f3vrLJNuJAOZD71gwpXB3iAHn9jfum18FgPsSQpDBqNjABJHoEMHEMYNwuDjpzViKgIQ/V416Mt9KNkTW54YW1E6fmpu9cVN+NgitKJPnm4jERdUnZGjHSBLoawCYVwL/Ig/iJdAFJ3InsXEBAjFJ/2zcr7KJDgFIfzkH3I8mFvQrIY8q2TUtbSZe41YnKGkQTl0eLGoDntbKez0bAA6A+tezDYyLboo4HfXKHOb1n0Y3XizjNMze/9GGmYvlUTmnfhAXuoZwlqkv5/7PCLD3CsKED4ekirdT9VVhRZCIZZNOgffGkH3/jM6/0Qg2c0A2cb7UNjZIN9aplIghHeyvR/Bc6bADMDrmrOr0EiHKNrwWAY3YcgCaFEFB7K3cFsOJoe+nBguSfMtjeB2Y= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EwD92uWfnWxZZXsTV9qXLXzOGw8a?= =?utf-8?q?Bo+UOXU/5a2ZfZS4lp/bFc/vfVH3WLSjlolKj0PXS30zx3flNEpXEN09TNhtAwP/P?= =?utf-8?q?vO8qPkAvaMH1NvhcJV6HtKb7Ruf0wWHbEGc3fsxaRyjixMnIknt7mn3yVXe4b5G4A?= =?utf-8?q?K9E3ITneIF6OMTzcgjBvw0JjeOhLgLUaSTLtCKWKhvsfPwXjJcox8OAvjeQlX4+Ui?= =?utf-8?q?DeWsFBnlHKOCIKIh4uXlHeyjm7IeAsglrHgthWxkLJoz7bLBiYIV8jbzmdP5XjTao?= =?utf-8?q?VCGQFU+qnPH0DTeTTqRsCwNJJ/4lSfXMMmHqdMCq5NTKX7Id9Ws9kMi8gvZeVtpW0?= =?utf-8?q?oR2f4NGN3CUz+vy0Ah2CHfABI1DceAT5Dcmy2VRzp18A6daRaLQN0fT6nQf9VdS1V?= =?utf-8?q?ZsE2SfThYL9DfXibKXanmj2+futLuweu4E3KY//u5nv8wusDruOaoFa9+yOUM0v6l?= =?utf-8?q?HB8EvzA9tdTxABBK3yNNnLksU7F4x7g6cp6bPfq14grmEGbjUMgFNbTaIzO71ZVjO?= =?utf-8?q?UTgz9fzLlAmcjGT01cwng/GVqsUiPke6RJGdVaxXd0mkMM4eVWjks5iyWTqJPFy/a?= =?utf-8?q?zcy12aT9LP0LjLbHvpo9pmGZhRyawPPbuOkPE1lE5CtVFxSFwfRbWtmDN8kPVHR4H?= =?utf-8?q?iuf3pxrALqseMGZdkFFK3wSvOSnEMjfklUwLLPHs6JCbVGJxBUe9hhBfHpZa1MW6W?= =?utf-8?q?KOeCrnx9qjB48YbsPVwqVEc/lVM9xv/2kBeBCBEMKQ5OaEEEaHz+29hNGDDuhNnEA?= =?utf-8?q?JnM+MDpDzA7SnI2BtRuKqLluK0f+kIBlaIRGXmJS77fVm9VYuK9Uvjgyb+ih1wGFt?= =?utf-8?q?U6fFuVRKTG8cbKroIvCaV+8MNCoG6RQVTF3Yi3yG/+GV2RlQa7IeYjF/47oCg0kyO?= =?utf-8?q?S3sL724GeEh8U5JkUlsJqW2zoIyuOuKqlC4gAnXEGp2OekX1w8wWFE6wAm9VqcAm7?= =?utf-8?q?v+BJy+ZEBPMSeWV3DfOm4xvZTBPRHUlQ5YlbtNykRgjwmSWcd5/vGOgWSz5AuZkhD?= =?utf-8?q?sU0iHti7MS6pJGRlVJiiBgE4gjXGL7VirPZgb3NxxOqQadJjyz3lQAz1wQlS91Lbl?= =?utf-8?q?iUpEeNBG5zb0W98AOnNo9hB3ApCTlw7oM1d9IAS070pY8vmKX9iykB8IZlfblcy2B?= =?utf-8?q?RfvbYOn8EvIBPKh0JCe8aC2HBM++uSBtzVYIStjul4Xf6LcYuf8lcKU8Fjtw//gxM?= =?utf-8?q?LR6p9pSXkKaqRF4tSSPSjG8bZH/z96HkARyqYzX1rwDM0GmOZ3wO3ujHpKgVbNTLs?= =?utf-8?q?xAWpcSz2cahzfZJ7QV579KyLPCGEx034bKvXMZCLhwYOSbhhgsEtY7nrBIqzvi3M+?= =?utf-8?q?ZwhXoR9q6H5WNm2izo/5v2oh2dYQKt962V0FEsLqjyLn2nKZxxroaA+vSnlFI6UpG?= =?utf-8?q?M+Avrngcsnl44B36wiEA2kn5Hpp8wxPJilT2K2zq3XwfqlvkDKSxuNxeW70tsTJlb?= =?utf-8?q?QkBpEJMJ3v7tb47JfE6udjR7/hstLJwVdT4sIR2x5cCW8P3WV5PPWjYxd3CreDaMl?= =?utf-8?q?qHvCb4bCb0DkgmimR4+oTd88GAmvlwRhz0iPRAK/TNSmIGpL88w//as=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 1d70202a-28c4-4163-a390-08dc386463c8 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:40.3111 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3yxbFNhvl7c3fOcdaDTCJcQm4z0JjYoF44n28F3O/lboenj66wdbvk/iiw0cL8RYSJg4sd+SPBB5SgVbnkxLGZ0EDVprV7s34Ibq20jH8vY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055155_060553_E3488FA4 X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e6cf3e5d63c3..3c6196b6c984 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1047,7 +1047,7 @@ CONFIG_USB_SERIAL_FTDI_SIO=m CONFIG_USB_SERIAL_OPTION=m CONFIG_USB_QCOM_EUD=m CONFIG_USB_HSIC_USB3503=y -CONFIG_USB_ONBOARD_HUB=m +CONFIG_USB_ONBOARD_DEV=m CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GADGET=y CONFIG_USB_RENESAS_USBHS_UDC=m From patchwork Wed Feb 28 13:51:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575511 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42DDBC54E49 for ; Wed, 28 Feb 2024 13:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NMoLH+HLwgtgQx03jvVKncmfVtwCMksNeliGEijX6ig=; b=Y4r3QYBL6ruEsM2e2y69WdjxQz +oTpcghX6h/IndgsGHpw2dX5LZ7LAYi6fyYPPX/F3f4gJocYYCNLr1sdOC+ulcHXYLGpZHb0NBtY2 tfBT+1xnOpbTDd7fj/S1ZDZ5Y2JTFvMwhIxUIMii69zD3D/zLm783J5opV2mX/oiGqG3651LQQ2r6 DiziOJYrEfIBY6OWokaSuhc/Q7IbsEMkApetwBHDzEw7D05/6K0hKMj3HGys1/tqFgWjmIhbXQBVS iJ6sBvlmdP3q/37QsW/Zk21n6CGb/W4HldQuTLwHje/xCs33XEEX28R2FwMsm6YfocXUZ3lik6jTS /+WLjC6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKM0-00000009YCz-0gY6; Wed, 28 Feb 2024 13:52:12 +0000 Received: from mail-he1eur01on071e.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71e] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLk-00000009XxM-0kRv for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EpxfyUX/aNakoAx8nPPhwMV2He4c8h8wn3vb/7fwLQNowh94d4UnlaAuy1Q9vvg9G+9QZZVShug3ILQ10ankZ005kt/MRYKx06X8JUP6wWpvMcCjOHib712FTKrTXYGsPTihrWjOqaqkmPrmK/AymArJQg5EaGnLhlSEFifMmUj8NHqbrUafkDCcxXXNovpjDBjUZBJWGWr9J2GKEuGf+rKLu4hclHAS9B6pdKiLlBdX/3VakHVBoSQWZ7XB45vY4IExVHiQHhwAOALhqks3gA4FbcQkcAka61f8XoRcZcew8IfxytMifjEXLbsUUALXzEy74X+GQU/RauqcfKRsEg== 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=BwxTPyHk173LH7OLvpI8Mk3rAWKwhtS83y1hH7zVRz4=; b=Ta9fJBTphaSNQ6afAnzVZeKK4G9I+C7J56UyvbVQXwbvegf+/EB0IyNhtpS/rbvgrGDLZHd4S5dWK94Qy3uzWL6mDN+bfosKklE1zNqSJq+BvMt1W6CCi5Tk5j9a3XdgnbiZaHHjKKYscaZmeqOqQpP/eZi45ZNFTixig+4zw4hmw7yfuwowwfK5WFSGaTxA4CykysmTH7DEACGroINlTylsY2We82awC2M3RyZYF1ssARah2vv2c+faom6wKGwRH5HCjwQlAaI3Ilu2UxCtOg/lUJJaj/Wv//gC3bXEIlzP/jWgBuEdyCYLqziP+oUJlOZKXOhjXthxQ+0oVo72Qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BwxTPyHk173LH7OLvpI8Mk3rAWKwhtS83y1hH7zVRz4=; b=gcynDwGJ+mnxmbJQQr2PHbJpVR7Ba/Dj6HlnQwGcnAkrydBvLKbEmuwGinNCzbfG0VeQ05ykGkVHOCVwFXVgfbJEB0KOpUgvbd1v6Uei8i9RCwld5e44AsFKjD7oNL9srd37Nqdw7JR9usH0l+7KxsdRd81sTt3DaLMLCjBKavA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:42 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:41 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:32 +0100 Subject: [PATCH v5 5/8] ARM: multi_v7_defconfig: update ONBOARD_USB_HUB to ONBOAD_USB_DEV Message-Id: <20240228-onboard_xvf3500-v5-5-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=852; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=GYIorgCuxQ34b4lu1hFXgE4alR4MOyW2uxp4IG/bCFo=; b=e5SR8X/GI4eakhxzqwM4biB0TXPFP6a93Gfk5uQgMMP5F0Vhda/8D4WHZby44VS26ETO+IRR6 4SqjmoCh/GPB4SFZchLfwn6Wytys7e+srGD6L04b9s/WMKZfWmMT9Kb X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: 876d5711-11af-447c-c406-08dc38646484 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4ylxM2SwxkQ+2othuuPBg6dVnmGwKMlrsFOT4eOyuBByPlnTlkQ+Jn+ersztyWP0YyCY9wnjdN/Uo9LFFWZipgGhPNqamXZNbwtdLhzD9WVOf6H912QqYSkE7/fK2VT+I1YlSFW6dSgjsp99RqqcBRQrawIhGfnE2djzXakYo7WQz7Igh6bB7+NOIynLDKJd5Ps2t9xzYuEegojBGyhtfKdrNknV0CkVWql0gEuhR55MDD2276pi4vOG3hwO6ClXhDbnBSlFJVGR8Z8hYps/wPJBMxpKnBjl5oMw5xQzKoCdmlweqNzcdXgZ0QUMUSmu0ZpNXMwtjXVFOIMIgU9K41vv1DSXwQslWIxNPD/ORq/gXPDJZMYWxxvexpE11Iicg2KwB2Ygdazv8X66WnmfOjiD6f6T36vnxNg7I9gfn2IDahohzilYhdPzKAZMXf5NMi2BcVBivWQPe9V/5gMGZLjkT0XJzbxyyfdvWYJRaN3LEu1waJbaaLwG8PMcovxhvN99Tg0Jbh0rlyMyNU8/G6YCPDJDhYDmgljicVyL5uuEvbJp/Nnd95wMT2/xlpt6N2nfCBGAG/Ww2AtP2R9+oushgZIgilsWLbp/GkpqslaYpyIKBHonAzV2LKWfbkiK4Sa7RMbiCqL04isuzbCioAEVw3VV97gL6jBoe0WMFE6wShoK6+IhMNAy9OgufONCFLH0Gn+AMoxCRF3rL4VVnmF+x2R9eRxrANArwQaVfhw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?yrTQGJRC4o2QqJpCthf87G2gSHAs?= =?utf-8?q?xggRS1Qm/dgJbZDPjeSDWVL5JV92H9BpqdjIyImb3tRmDzKWmaer5Keb/VHyv809F?= =?utf-8?q?LgRYZvMweOD9ErChdevwOF3Ak7r6Nzom/jYszMffLQy/PHSYbMrA3YyuYUEVgO5Xm?= =?utf-8?q?1EUU5goIL9imEpsufGwEqupUu0dL6UCKF5tHbG3ilOkBUDjwtRpbievKPdN7+JhAI?= =?utf-8?q?7RKas30ks+MngC43TsN+Ii6hTs1KL+7f06/Sm+AuonEKGwtJ0WTHS7tTdsjlyxtOa?= =?utf-8?q?Q5eX5ZVBSv8ZAhkvxhq+cLP728hDAkU8qrU+8Xq8QS6+x/EjlGJuq7ClWGdNhoCTq?= =?utf-8?q?UgO/tdp78OgC2v18xSD21TZfZTEevzH96cZj7UnAayYuk57GYHiZaJJI5bffUS+iU?= =?utf-8?q?hSWE2ogWBxmYm4r+ZSLFSk1NnQegVVhpq2bVm8+6LX1ij/5rcOCrskNTGuJ3z3+8O?= =?utf-8?q?7+x29H5apq2WH26z9FwpovZIDqYKplBWLnN2ZLdVlBTh74eKRTtWHJbEUQr50tX+r?= =?utf-8?q?PxVezKA7k89YvORww+wjpm+WJjO5gbbVG0UqsWYskIxCmkiRJHdwCVxVguCWgau9s?= =?utf-8?q?1sq1bjvIY6WvtJ89vps1x6O2lMegO07J+o5vLPlksy8N/H4va5nC/nf9hNPRcY8sJ?= =?utf-8?q?eDRFSC3Fjg6GiQA+57emBNt4WA2RGogE3Qf4Aqod2R1+/G8b0jsqKTmYPMW6U63mh?= =?utf-8?q?S1vyAr/tkyWJ0VeND6SRxxHIH+ulVdABzp5a4mT7D35kT00yhfw/a+YlpbWIfkhBu?= =?utf-8?q?l00CDYdTkVlcUS0cbGYxLXmZ37XZO2eTz1WLIMMEqu34T0d0EVw5vkXzcoIbYewOA?= =?utf-8?q?iutk1ec5zx4/vjT58vEPe86M7I4TOLVW59X3SC7nIeVY66AycHSlj+5PLr1lwHCTF?= =?utf-8?q?ep68O9Kjgf31dZ5GSMYbHC1R9rdEyAPJNTjyuneIy4K5mp6MB0ssH16N1sMq83IaQ?= =?utf-8?q?seDOB62fYvKR51dvRCyz9aBC3G1FnjZhW7XY6XDNq4kdOxK5ruawbblSgje9XLfwT?= =?utf-8?q?rKdfcXADxIMq3nj8NrjLQU1ilJlc+3wDEcYdSzkfXpjfZUlSrjVzyBFYsiwaeDl5i?= =?utf-8?q?3fZhQmPTn/3LoS0wL/6KsHctucVrsVSS7aNYUUX+tIeiRPX8QsuzWrDK6lXpGD0xH?= =?utf-8?q?THvExL/bsoWC3WCNDKCaoOzYJcjBKaGY7zwJZHggsfCUzW5wYHk/KXryGV94tPZme?= =?utf-8?q?rkqE3Qzt1SLFtCcct4cHNuOApENOSqbaDY/p9feHpf+J1OhN3wxjdrwQ+JAG1w7ZX?= =?utf-8?q?UI1/73QIXJrrRmH5lQfadvGgWSCCzgEgSYWNGSbcee0rYl52cBxOy3YzWqieu8cKX?= =?utf-8?q?Sya7yaiBFn/ZbBCt+sXXfDdj7YHCRpZmoolCs/N58SDlc10t3fa0jnmcVgU4wmktV?= =?utf-8?q?wPA9vCVAmutwEScszzuBrd4RiGTOnx9nmO381VkIbFu3R1LOj14XQbCzCt8bNkyJK?= =?utf-8?q?phwKuujv1qeBr+5o8mca1vKJHYyw+z4DIEgh6M+trIAJkB86Wq8pX0y3tHYKnMUUY?= =?utf-8?q?nscZQ1kYj1JGTqO/TJnE5WuT4nAimkgAj3JE0U7VaTPB4G/mhCfnYV8=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 876d5711-11af-447c-c406-08dc38646484 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:41.7485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tqkA9toy9lGR9MtdksDcWAWYRtZoR0xAZylA8esY37Dis7jk58E18KpWVtqx4vDKs56PjehIlijeQxKzizspQOZ6+2KFgtRLMjQkswHsCNk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055156_338044_0F3913A4 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The onboard_usb_hub driver has been updated to support non-hub devices, which has led to some renaming. Update to the new name accordingly. Update to the new name (ONBOARD_USB_DEV) accordingly. Signed-off-by: Javier Carrasco --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index ecb3e286107a..6a6ebec173dc 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -876,7 +876,7 @@ CONFIG_USB_CHIPIDEA_UDC=y CONFIG_USB_CHIPIDEA_HOST=y CONFIG_USB_ISP1760=y CONFIG_USB_HSIC_USB3503=y -CONFIG_USB_ONBOARD_HUB=m +CONFIG_USB_ONBOARD_DEV=m CONFIG_AB8500_USB=y CONFIG_KEYSTONE_USB_PHY=m CONFIG_NOP_USB_XCEIV=y From patchwork Wed Feb 28 13:51:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575512 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74161C54E4A for ; Wed, 28 Feb 2024 13:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J8JFjOszqvOoml8Th3KsZSCTahJWqqGtGDfbOUOfRNA=; b=ZS9kSqnPPPs3QDUQA+soIp+Jb7 zBcBI/J9tM6DfVsFb9gdPXnm3nBuLX35hiG56TT8LCJX0yqXCrvAahK3ZZHcqRXMRAxSW4wba3t48 I2ygu2+0gVfRPJoYv/B35NNWmuRA94X0QmIFXHlxgPA9o6ynnrl3QWBIFWuH0Y0LKvn94wO0VhlPz Y4sOaK0S57h3H7MgWAc9F/9CLKqYhvHIWwWSrSL1z0GRUtAwLuROQe/S8H4Krcyo4KJRkTmpr2o5d SKMTLQnyL2nh/O46Cnt3f5mRA2Dz7lX0l2b66y31WX/Nb8nvvh4uwjm8hf+w/43MNCMowz720kuzb xLDsfipQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKM2-00000009YEo-2dpF; Wed, 28 Feb 2024 13:52:14 +0000 Received: from mail-db3eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLk-00000009Xxe-471r for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:51:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LeF8qy+uiXA3HI55U4qIV18yxDbiapz0WM9BRdotXj1eCelM8xUHNt2mDfgqKzkDSiOtlIWCAxHd3LFFV8G5dw0zLob3GQX7cJzq2nMuAA0AZWEYvKfCz6meZ4Qmy1SOue0DN99LEuk8CHTDGdo5fO2ogUffpzDHMNFdDuGR89b5LHtIVKMlj1xH7UBGhackZ63M9pD6fSSryhrWOt8jVR3k/8iPOMG+scMZXT7jpeHL51PVF8m11AkOc7t3XyOedsQgyAEWFH/4qr33ZQKtgn+xJeKYurQrveZiXDxDV72sL9sgNoHGZiWyJ6Qj/hCbtfdpOyBYRvASmDq/1T7Pig== 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=k5SXUlle2NVEXwDFcWjTn+XnAibneyXcGO3oVO7aYIU=; b=aNf+S8+AJ1vPzeYD3D3/jOQ/O5MRsNoPJOAbVSbQ/OjWRw019/ObxBVCJTj9QJZn5VskBzBC3VLasBhsSzZAG2tZW24r/vAXLAkJcrHmzRnciWxV9p+f2IAGeaIS2KYXgdvmvL8086k7D41tH6+yP0+VzW2JNK7wIW3jNJXNFpsjA8nCL0cJbdiiCqux9QI80STRijB8NuRalCy209Wzlyq9VK8D1HMI/tG+LOPUAKSwrN5OGyiB5E2/oEUje0tgrTWVoDux+t90LyMrPhG0VWic/m2oFyB0W8/Fg6VTNep10SBVWwrlx0zel+bPkXVod0XMlSbwT7JjnkO2hWpj/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k5SXUlle2NVEXwDFcWjTn+XnAibneyXcGO3oVO7aYIU=; b=nksWASWUJtTZfr4ZUl9jF1YGQ0L5j+W9xizP5TWqGdErX3biKgwUJoiMbdVJb1mvRIE+iM1dyCONuE3Fcpvkp+bZygV9qjf1Wy8sPxYVsk9SxMM8cF40NREVBecVJHKoqZHWougYUNL18qpPs63I6UrX6250Kjw1+mDuCId0c1Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:43 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:43 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:33 +0100 Subject: [PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices Message-Id: <20240228-onboard_xvf3500-v5-6-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=4013; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=moj7dNPzywLu5KBQuWEF56AL6ondXwteo2SwhW8gJKY=; b=QRj/qc1Eh7opso6M3JwpKRV4SYDiDZ+bYYZa0ss103gWaRUSBk97Zg/2pfEyJ0JJP5DvFa+c0 n4qoet/jCZnB82ocwcpygGVBJn7ddafJJWuTAAlzBMKhXULBtiJYw/O X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: 07085d1b-f809-472b-bcb0-08dc3864656f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l+xdbm7iEuH4vU3B6xmAgcnVSZ+BzLEQ4BYVFlwDGJAGFIIMm1iJy1L/6xMVj1npe0U97GNlG4XeuAueUxypNcX95OolgWapvgGyJPMtMaCuDy+olOCyB3TDLLNeDwnN8zOsOCBSq7kvS7IsbwkXG5DRJCcQzKMvvuVIFMKvMsHcBa0jf3wZLdGT1GAGUDTbDRpbqMLx3koYr+jXvFkLry2VL5XykmsqbY5UE7Eg56vLv/lP8hSs2q/5PBOJXWzMYF3fIkMSBF3i+5jv0KXSWM3RhGeeX5P04xd7Tv0/cIO5qtm4fi5B7dPorH/8v3mXQvW5Wh3A3kHyYrYEFoepCKWwy2+rSUUTT9A6Z+A/jCqeqjFA4MLjWfxeFwzttZF8k2brCmlmWhuaACsc5N+9LOalAJMwqyZMRzq4FnMgbPriWLYB9Trj8uHAHLQ6VKqCEkWjTYoIPFi7PEQ6xF65mxfk61UBdZyI4fpvwpypnPg3nT2LFwzAD7K24eEciUGIIrDuqHFQ4XXEmPbwKDdWCq+sNVcnNMdlhzGN/6XBSBpKAELS2YOOCaXHfbt/gludCKyTatp0hwQeYSBJs0dbLpqRL1uFDnobsFfHvgh/K5oWEouJKMasm2PXwNB3TwVYyPs049slGWN6Iadojh04Kagf0E44oBmZskgvHcG0IDkflKJ4qj5ma6tt4L01raRXSrjKKeY5wlfzevtCjf/D9SE5qRII7D3t0pTWBv9cl0E= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GqWNqurMkfRfFhGizlH0qgs7P74B?= =?utf-8?q?k9cQC79rGMIOg0HJ0R/6a7tqDKtcZCDQ1N3WQJdyFpaVh7o3TciPSGXRYWr18nmLg?= =?utf-8?q?skkdi2wJSlYLvVyO6SrfVh3OFVqNwfA5nR/c3LJhiSSS7RD5MAF28PwO2ziddLxOf?= =?utf-8?q?cFrl7rzaccsWIA0Vk3Sqeg8tk1QhaSH29ThL2F4lVd2zGHiKngfpNSFTKdaVGYm6T?= =?utf-8?q?GFy1IcbCvzqQBy+0TszIoBpJgcksVQ29j3sYGA/pLL4nBdUU9XuJ/bm5qI7fs2MGl?= =?utf-8?q?SzlRQcUy6W0F5U/SJDs8pPPp8SkjB46pLj3/H5Osl132Ov2Gum1ZnXfoRihP8ysbg?= =?utf-8?q?3xzaSMn4bAt8eksKrOm41LTwP/93UTQMu5IpXtSzEMAKxS6zbiTPkU9XKk4+hikhK?= =?utf-8?q?AnndLMUUqjx+dAgfcEzwz22tRoU8WZQFWEEwEmQFNtJzpRde4GTBiRYYuogvuQ/tH?= =?utf-8?q?HEBlRDKs5aYsas7KOyNA7rW9HLnddkeK99HZMl3hcYh+Pp6lntYDS7LMERgTM5a4Y?= =?utf-8?q?CVDq0BIxaCfGDOzubXpXtRNNb1+DDiZbSQeL4gje7BYcS0uDg5V2Ju3kpkVpx2JPB?= =?utf-8?q?cPLNWNEwg+i7vAOkm5aEj/elVvNy2KYXBWhpNdIbQUYpIbcOwTeJ7UkyenE6YWpP7?= =?utf-8?q?Tm+YedQl2CdsIykPbriTD4cmyyS6LC+rI6/b8Znr19cdGJFk8gjpUeVkA3A/URgbe?= =?utf-8?q?Z3ZYhLPK5WkrNOB2CtgL4P73seEvb6Xjc6yaGEYAGHwQMQ8/sSadPZIqXgsPxgPpl?= =?utf-8?q?1sol+jltrE1CQityr9KNIE50vzR0iikaV4ICTLc96mngtoR7iTOZWYRMAw2/zCQCR?= =?utf-8?q?xkkpBKRxA2spVIQu9PoAvtc5zwIQncKa8OVSBFs02FhXo88fgFK9PXN46bo4atOXE?= =?utf-8?q?aNXAqT7/f0gdmUL+CaM9ToHCdt2S8fZps1JmfDwRuK6NrCwImG94AHBVgV87nDajn?= =?utf-8?q?xJGLzkeoBPIVCxddhNc17uz7363nZnGBRf4XEtysJYBPtJxWz5QYL3lUjiMZv4tD9?= =?utf-8?q?hWWAmULAlbk6TYLZBzyirnWmhIIl3YRzjHsmT30fe8oLLZMZG5O5PH7JSq8JEZdOP?= =?utf-8?q?/jc0C0xI+4NGaSJmx9eQ4UwO+VC20o2RHfMoWGtQBt0oWZrqRipJ6A3k0SH0Xr/h+?= =?utf-8?q?iNGOQBYmllDQYho8G/VfuW7hE1Bjn+y6VGVB2z8OCIa/T/4YMWWMRiBArePG3kcHE?= =?utf-8?q?HYlVzd1gyyScqUci3IVsg3OXQGw6C2DoN1ZkSqc2ZZmusqFocxHiEYkJ/mmO4qZBG?= =?utf-8?q?TkMd+Ib2/+AY2ce8q9gIfQbCJ0jmQSuv4sTdUSCAFHUb2beiZT4MOxgfxKwVljOwV?= =?utf-8?q?Iy2aob33SriakPG8eIMk4fLR9JnS8zcZNdRPKoQJDtk0txj33Ov5V3uFQj+ZuvdhG?= =?utf-8?q?GCgCmf3Gk1xE6nYAHY551QM6xWp5qC3B8jVkPvDXaWyucNImaXLuMjye41CAeGLt0?= =?utf-8?q?W3Ki60rLuVk8VDDHi94EuuoQAnIdd4N3+wTQbdvn6kMr9bG2o77JnBckVnE5ITIlH?= =?utf-8?q?c9i4nqBVBm/FeYwBUNUExikS8XEd+URY09o2AR/1T8RL3SplJ/aKkOo=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 07085d1b-f809-472b-bcb0-08dc3864656f X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:43.1062 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oOxr4soj1bARsuWJ1vmKOO8S3DxJoXtun0O1lD77L6D5cTE32NIcZF57V6NBM1NVemtI1jJTqnaI9Bia8ftJntYiG5Bd7x/18hFLGj2IWiU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055157_212179_4D9CC80B X-CRM114-Status: GOOD ( 19.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Most of the functionality this driver provides can be used by non-hub devices as well. To account for the hub-specific code, add a flag to the device data structure and check its value for hub-specific code. The 'always_powered_in_supend' attribute is only available for hub devices, keeping the driver's default behavior for non-hub devices (keep on in suspend). Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_dev.c | 25 +++++++++++++++++++++++-- drivers/usb/misc/onboard_usb_dev.h | 10 ++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c index e1779bd2d126..df0ed172c7ec 100644 --- a/drivers/usb/misc/onboard_usb_dev.c +++ b/drivers/usb/misc/onboard_usb_dev.c @@ -132,7 +132,8 @@ static int __maybe_unused onboard_dev_suspend(struct device *dev) struct usbdev_node *node; bool power_off = true; - if (onboard_dev->always_powered_in_suspend) + if (onboard_dev->always_powered_in_suspend && + !onboard_dev->pdata->is_hub) return 0; mutex_lock(&onboard_dev->lock); @@ -262,7 +263,27 @@ static struct attribute *onboard_dev_attrs[] = { &dev_attr_always_powered_in_suspend.attr, NULL, }; -ATTRIBUTE_GROUPS(onboard_dev); + +static umode_t onboard_dev_attrs_are_visible(struct kobject *kobj, + struct attribute *attr, + int n) +{ + struct device *dev = kobj_to_dev(kobj); + struct onboard_dev *onboard_dev = dev_get_drvdata(dev); + + if (attr == &dev_attr_always_powered_in_suspend.attr && + !onboard_dev->pdata->is_hub) + return 0; + + return attr->mode; +} + +static const struct attribute_group onboard_dev_group = { + .is_visible = onboard_dev_attrs_are_visible, + .attrs = onboard_dev_attrs, +}; +__ATTRIBUTE_GROUPS(onboard_dev); + static void onboard_dev_attach_usb_driver(struct work_struct *work) { diff --git a/drivers/usb/misc/onboard_usb_dev.h b/drivers/usb/misc/onboard_usb_dev.h index 470736483cdf..106480ce72b5 100644 --- a/drivers/usb/misc/onboard_usb_dev.h +++ b/drivers/usb/misc/onboard_usb_dev.h @@ -12,60 +12,70 @@ struct onboard_dev_pdata { unsigned long reset_us; /* reset pulse width in us */ unsigned int num_supplies; /* number of supplies */ const char * const supply_names[MAX_SUPPLIES]; /* use the real names */ + bool is_hub; /* true if the device is a HUB */ }; static const struct onboard_dev_pdata microchip_usb424_data = { .reset_us = 1, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata microchip_usb5744_data = { .reset_us = 0, .num_supplies = 2, .supply_names = { "vdd", "vdd2" }, + .is_hub = true, }; static const struct onboard_dev_pdata realtek_rts5411_data = { .reset_us = 0, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata ti_tusb8041_data = { .reset_us = 3000, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata cypress_hx3_data = { .reset_us = 10000, .num_supplies = 2, .supply_names = { "vdd", "vdd2" }, + .is_hub = true, }; static const struct onboard_dev_pdata cypress_hx2vl_data = { .reset_us = 1, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata genesys_gl850g_data = { .reset_us = 3, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata genesys_gl852g_data = { .reset_us = 50, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct onboard_dev_pdata vialab_vl817_data = { .reset_us = 10, .num_supplies = 1, .supply_names = { "vdd" }, + .is_hub = true, }; static const struct of_device_id onboard_dev_match[] = { From patchwork Wed Feb 28 13:51:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575513 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2E5BC5478C for ; Wed, 28 Feb 2024 13:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=u1oVN5XH3WzE3kyN0HKhKs1jc6T48gE8vY1SfG4JSmo=; b=vpKJoT87E8dGBGQcP6oqbF/NMl WmEmvgMM1FEivk/o3ERXlWHQKDmLnA2KNFkYINvESGBHtvjQVT7uiOzZR6X7w2kQJErD/BJi8nifC DtFg+Tm/IEBY8/pOx5i6xCoApJ294l+RXIx2rv0VlvrPPawEPkZZOfGucutDwNJUWmaf3Iro/P5Lv CC4+42FTNUcfuIaymRUjv2HDA/i389G+hO8WBShyuSegbP0sxCYAR4q8gJGN3O/5Zb4EdabkxFjhR Zoof7dx9jKIRTBTVcHi8N7mOjxTFzbCs4+9s/9PbUZwmCxW4nUSx9PZSJO4hlD1c5tflo3l8YMla1 V4F5E4/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKM5-00000009YHq-3Ox5; Wed, 28 Feb 2024 13:52:17 +0000 Received: from mail-he1eur01on071e.outbound.protection.outlook.com ([2a01:111:f400:fe1e::71e] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLm-00000009XxM-1Lnw for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:52:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmwDZx0FQypwvRFfPJjrSo63lwrWLopb1XMxIbGA/NqdDPLa/SmcF9dtPfw1/yYG2Wej0UrsYsQ15r92NdJt3T21pBXM4mG59kO39C2Cc+vxwSUSvPX47rI94Z9DJjXQ/T7aTiR2Aq3twGvfet9bs6xy/KAKN9Huds2vjIXV8wljsgzvUtjxrjJ9nh+zW5Dp8oLdMMclPvLV8EOm/GST+wyFUXI5IO8RKOFBYfGAoYOdqVgmFaa06M0Lr+X/KHpmKynwS0lcwqEliBJbO+I9IXHWPWSwUQZp8oz3ZZ1OeP9GJA3e5P4rvKUz+0lVrUyKFX2SoXXPBxZpIupC2Renwg== 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=wngdV70IOdXxwG/t4ulJ5gsPc03FZIHAJnqJg9zDh+M=; b=OptgRq/tf9lTsngAVB16HIjn+s/9Wei4xiq2LzYMcFo1CRC5Y//zwHLLg8DR9uiLUUwstgiLOyiy6zbO2STHCk3qmrQDLWU7ApNsOIs1ik9otNQOO+j9bacL1VrzJEBtKJJQiG1zdcw53tozSqX0iNz8/RvC9fDiSnPncf8AsEFtYAEI299Yi7kZxrM25rsupVEXPWrGv75qFbXBwpT906oHvn4oJ9knE9tw7+oIRWMVxkDDvxWaoJHdmRHUsCufmNFLqD0w2syip1+FoS/I/Xbtv9/NL/iLzUBh8XbfrPSR09l5U6OjWLauPn621fGgwFfUpxtVgmybMD5cJUChsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wngdV70IOdXxwG/t4ulJ5gsPc03FZIHAJnqJg9zDh+M=; b=nIIafiJfhqAvxT4RlrjHWrhDpFQnRvYZ+yu5XI7VMT3h3nxrwPMu0s4QRYi3D8KgF73Elw1eShH+JJzJmqSijQ9BqYmieO7Othuc+HPBogurtyvOjiuExWcrixYe1JNJOmnmhC3Bk0ddkF3hEksmHbLBP8HkRCsRyBBKbu2pbNM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:44 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:44 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:34 +0100 Subject: [PATCH v5 7/8] ASoC: dt-bindings: xmos,xvf3500: add XMOS XVF3500 voice processor Message-Id: <20240228-onboard_xvf3500-v5-7-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=2130; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=rrF8Q2LYwFLaBUHIvIcp23yKN8GEsR4HPVSTq8weH24=; b=UzauIOpsKUfwQwer3RbntJs5Bp7eUgfsvYEmriJ2gaVuc6bqU7iy3ABXYXuKNMwcS/ExRFrWY ZdtXDxEL2z2AHwZJlALxCqjRhPIeLQ3Lc6/+rBIfMa4I+SBcwgKjR6N X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: 0db46445-2f8a-48f0-2774-08dc38646637 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gHluEKnXwqNstruL5T/a5Zsij9HCmKeLk1Tafh8ebMLuLLfimijfcvre4Rk5kuTGgF+SBEt2TiKY1lc02mV7jsY6MhQI8CQoWIJvEfp3qktKlmfrPT4PlGHYblpmGPtVgY5RHlD+rn2DRB0wMzjlqs+RbJd+l1S+OlObxcBYOfr4y2W+JWyxe+W90e3NrGG+1TD93aKJEgVfqUvSvqhgUeQbsOUq8VXcIVw/M7lDovm67xPyq6ryc/dFNktqFh1IjZcFbAyZqC3xs6yfH6D4HDlpC+bKsZE5KL5m3ewpeSGJaMV9J8xjOVbgcmZOe3YHqYt3FY3MPOI0h1hKHE0h379TPHqh67tiUhgAEiIMvihcB9H/PHgeZeug8h1tk1DwzJuKmqksScZrJ07fsZZ4XL9g8f4LDFTfc6qr8zDy0/7+T6X+NkdO6hZfc7CDyteNjRlzRL72ANzz3WG2oUqZ6wBXX/Sd7xyQaVBJd7pKLh4KEyscBBZDOq8ciFQU00xUmOMvsKWBDgeQaq2OGl7S318N4zS8nK4Ss3MXDdmbTK/FsBtjmyNmpnM7UzxT/mZFrD0kFZMvHxxCQCMrl8j3rVscNEnbBah3EEv+IXRaBnyCBF0QjDs2ioDblvVxha67lwg535uem1zxYThzPUXmY/Hrs1XinGSF6QJMFFoZise85vZxr1LSEcEBvJBEA+N0rj4ZxjfERtEkfxcAIDsoTFUG2UrkPkEEDh+KUcqMq64= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?J0y2byept8IJSDOW0WtZ1u6o3PnU?= =?utf-8?q?sQ+nK76Vp+vKBqqx5f4uw4h/TQFMYLo/MCCvaW06Y3jX9nS8/IYhm36z0j1dGdrcF?= =?utf-8?q?4x1A75IEcWLcO8EoPHSDhSbUbQKT5vZxEJB/dBat2UuFih4+fKI0Or1+BVmbsbPwl?= =?utf-8?q?d+cFDOR+r9EMBrYopYk2dDDkXSAPQ0A9ulHeynzMBPbJkOtUKDVGpMmaV7VZcpP5F?= =?utf-8?q?RVMncCcNb6mkRGXmrzMReSSA5MFRGe9v6iHBmzok75If5GZLzL62AlRrEXnlfNeJb?= =?utf-8?q?S9oqwqdpaRXjXI1MVZgYuiqgkTgPDInBFcaJISbxnilCwUBVzIEYlmSy+CuwEElMu?= =?utf-8?q?+jJQih8K0+sLSL61u8Vjb7kMmo3kTBtD4PTzBraLJBX4KpUempvMRhKP7gLMrZarm?= =?utf-8?q?LLSesG0AyFjY60SOeCxZsQYkg1ScdcMGUNf9k5EILyfTEDf+5XfPD9/DvFrm/xJYY?= =?utf-8?q?+EQV+gCYGalXyxuK590l0IcoL4ZHeORoe172f2dXmyJw01VWiMl7ZX2SgIvWRX3Rv?= =?utf-8?q?iVvEd95SaBuG2Fyn8rqzBDEk3uTW1kE/hoecMz5WNM8mX+QbSB8Ho7Xc52jjwgqI4?= =?utf-8?q?l/hv2gzVKEtXLdbxdVfgRz3ypDrjZgd5dzyxz+lXBpPjelcMppH6KYoCgOtDQFDDC?= =?utf-8?q?bqpqKaDXvS4nHgq9LcL9c22E2fTcNxF9N8m1aytF0BRMmKZBKXdHnv1pG4z1GBtJs?= =?utf-8?q?5GqpGhbZD7V0N+lMIAqKhYerHSZDQLphOoRWoDshpi3Xhi92QKQm698zhjbEUeuJb?= =?utf-8?q?zx2NoHm8CC/nONXf3+bVaZz2EnJ2R58D/hivY8WAwlxYPThlDaDtim6VQwCfjrK5k?= =?utf-8?q?thGHYHmAXmawRM14mmPPj1UaBoB0bx3bo6G/Iz78wpgXnbpg2lv82IJhVoJ5EMtqH?= =?utf-8?q?EKkb+faZ27HSwpfGmllKsWVfwcmzGjO82tLnJYC0vSJM5TpKYP3ctdj5AW0ZjFVyr?= =?utf-8?q?8kZGgM/jxk9hdO4YhqfS0X1+h/wHZUIp8stfii5oUi5btyrQy0GPGZ7csVUMNOCVI?= =?utf-8?q?Dzvdyv3nM9zQy4PDxBg/YmRbZPtD8pbpoyx2cyY44Tx4TKCSvQZo2dbQmGnSsRWl3?= =?utf-8?q?GdGJKnH+iECl0S5j1FR50iesTX0Ddm/RlrvuOoekfyxVpclQYFcv8i1poyuDxEAG7?= =?utf-8?q?jXZGXIE6YS8NSK/EfQMgjaGDMn90ZcZRFbMFF24BMXas+Bi/aPmLT38fPhIxM1jU1?= =?utf-8?q?yhI7SD2yKJxfCQ52jXx+XiWC6GM1GF6nNdREX6j6xq2AUox9Za/z2kQ1DvrL3PnC7?= =?utf-8?q?NnOg9a7Mq7N0uMpRnydO20p/Ax5fh26PiuYNCwbjo/xyBwHCMVC0OD+g0ISrFTtu3?= =?utf-8?q?TUMk+bpqInE6pD7I3WeoMYyxhDnXsof3jr/kjMHlU0XvvlK1evGzVF1AWjHMEKtOe?= =?utf-8?q?k6MfpGA+Msm771QnRmbZmnReFTpk+9MDYAYxu79+jgnS0xYMo6fxrfFkWunDCy/3Z?= =?utf-8?q?Owc+swxEH9ppDDVqi1QTKqCmCqjdADVEm0+JoZAK4XDAEUDMfqPDsh/gQLPapD0BR?= =?utf-8?q?cPIBPl1QGE6vY1pvNUkNOksGRqTUtcDVnO2Pk2GneO0GZdIJWSdPlfM=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0db46445-2f8a-48f0-2774-08dc38646637 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:44.3650 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Gf2U0v/kzSgp7XCA3Fmw1wPsg54ilOWXzkYBt/vzJ2/V9n1UINStLcMthWw87sOUybWsRodqtuR6jOYxzT4beGGcUHjlyVSR53+uzJJLGJI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055158_509885_12E35C95 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. Add new bindings to define the device properties. [1] https://www.xmos.com/xvf3500/ Reviewed-by: Krzysztof Kozlowski Signed-off-by: Javier Carrasco Acked-by: Mark Brown --- .../devicetree/bindings/sound/xmos,xvf3500.yaml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml new file mode 100644 index 000000000000..fb77a61f1350 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/xmos,xvf3500.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/xmos,xvf3500.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: XMOS XVF3500 VocalFusion Voice Processor + +maintainers: + - Javier Carrasco + +description: + The XMOS XVF3500 VocalFusion Voice Processor is a low-latency, 32-bit + multicore controller for voice processing. + https://www.xmos.com/xvf3500/ + +allOf: + - $ref: /schemas/usb/usb-device.yaml# + +properties: + compatible: + const: usb20b1,0013 + + reg: true + + reset-gpios: + maxItems: 1 + + vdd-supply: + description: + Regulator for the 1V0 supply. + + vddio-supply: + description: + Regulator for the 3V3 supply. + +required: + - compatible + - reg + - reset-gpios + - vdd-supply + - vddio-supply + +additionalProperties: false + +examples: + - | + #include + + usb { + #address-cells = <1>; + #size-cells = <0>; + + voice_processor: voice-processor@1 { + compatible = "usb20b1,0013"; + reg = <1>; + reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc1v0>; + vddio-supply = <&vcc3v3>; + }; + }; + +... From patchwork Wed Feb 28 13:51:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13575514 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B399C47DD9 for ; Wed, 28 Feb 2024 13:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wRrbpBPAYCSaI7bIfBUEN6512ZvbHK4CqDyrpGa8EJY=; b=to/y+jzlgR2yDiys0rKeu+V1Qf xcPfuhyPPrKsDG0nCPZvk4++64gcNyO7LehhjL1VpS0WABukHmgeCt/uLT74GhwIr3D5XTRWW8qbn bdco4vl/6d1FCy+dOBJ9NZwGMA/saGP10QluqkGShkaRRuPKq8T/OTs2IotuaRUn4zGqukLNm4QJO GBdtipdb2lCjxO2fbOjCiGYjXJCi174qdWFSAGhgXx4L7x2eeksa3tDaipRohbDUiyithkWpW6p/t 4hNm8c9AqF/YjYyxb+3qtMymgfqWs6WINLG+pJqVqpKnmJ+Nj9ho4Wl0y0K3Uf/HIiZFeF9Fwqorj xkvVt4yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKM8-00000009YK7-342o; Wed, 28 Feb 2024 13:52:20 +0000 Received: from mail-db3eur04on072f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfKLn-00000009Xxe-04X0 for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 13:52:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mgwijRSU0+lyb5LVRyyWWsiBmanfdTp30Q6RavFctKy3SmTamTmm+dTRI/kJoAL//caHPa38v3vblu8sfGM+eqHGOhNPD+Pghm67Y4NEfjhqZcYPmzHqqdIgiFyXvyMgbEAV319gVvizf/t/w+vXYquiPBZ8dv1gFsBAv32V6uim6S6Vnw/QsaqmgTJbznhGj29z9/JteW9O7u9J48KWA0lGsL7aV4xK2dZ+4G4/ZuclLZc2beqtNkltBneui6ru2vnlmSTBPd1w+XbpGvrXZ5CKlEE1olRruIlOCCBU/L7gKJsK9YZ62/ksFchiZep6ZbhmRymu6rHoHfmxLmr0UQ== 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=SWJQFbvE5Vzw7duE5+7kn6h6+qqEiBfC9uNNiiWRXsE=; b=BcsDuNnz2GRnWumWk5bY2oEAMsdXeLpd6zfrf4lo+EjLy+R1a0hregVluviEu56pDhlAQ/FJ3b/O2gV3U/aY2ZNxWkJQS9MPnIrTug7taM1NaKwRFOMUuenhgHsDxNwKZQI7V5J2V9R6zL4xbEGbBye/ecaSV9lrCt8KPFzvo+/JZSkcE49fOFH6KgWQfARroGGa5aKx+EKfVU3Sc4MVBCon0WAcKrY1S+OG1ubHaKaWG6yoDkyFpuxNO4EiRapkaepH7pk9ib5wUhINnUh4RjCZX1Y/jksVVWTkOed4APqu2ujxzzoHb1OBvFImq/+2XKXT1Xn6KAvgLLbu9dLtiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SWJQFbvE5Vzw7duE5+7kn6h6+qqEiBfC9uNNiiWRXsE=; b=dD0sFLYdYjnkrBfd8tvD/rgd7rNyb/otEYmCP3aCaQ03lP75FgOARySiQrpkIjBVITz27K3+wMwQEsLFSyakbUvIfRzYFJEmyMtBdcrYQ70lGfkgAwRUI3rTMzcD0v9aDRrFsTAE8l1aY0EWywnwKHPkLefIHdRJA/9LhoMGkaQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by GV1PR08MB10523.eurprd08.prod.outlook.com (2603:10a6:150:16a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Wed, 28 Feb 2024 13:51:45 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 13:51:45 +0000 From: Javier Carrasco Date: Wed, 28 Feb 2024 14:51:35 +0100 Subject: [PATCH v5 8/8] usb: misc: onboard_hub: add support for XMOS XVF3500 Message-Id: <20240228-onboard_xvf3500-v5-8-76b805fd3fe6@wolfvision.net> References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> In-Reply-To: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709128293; l=2770; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=7uolw8TzhAMtSEj/CErKecOOv5yl0AvDwugbftw5sT8=; b=J7u5aFfV/29o6IHj8U3C5wqNGUtp/9+gol4V8q8R4714FtU2RZDDDxddvF/2hrNQxYBLUM9co CIERoogcgAEAZFeTCRDHTL3tlpEHfCl0dBP1v/5qH+KREPNqBvYdGS3 X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0184.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::19) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB10523:EE_ X-MS-Office365-Filtering-Correlation-Id: d8dc843a-9585-495b-0d20-08dc386466fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KxBlBDD3hshvbYewtq4NWLS4yemLbwNK0AsIFyIaTWumT3Bfr/qMEBlPQeFQWFnVmA/49t1wDbxVbjH2rdu33ySuQdT0wPbjvCbvaKqvW6XwXHbLDapPZI4Ntd+SjNVo7ZIqmGi5XYNHKlmeusMEbaqU/XMhkVIj6vxH232FvlUXeP6i4tlip8sNG1A9YVoDRuarOoz2Nm7I6F4AaGsTExoLYqr3lbLD04Z9YCfzGc3Ed28WuWNaqzFfxLzU3jz2eXgAfOz5ygJ+e16fjpAWqKoySE2eNM57Kp0RaOqJ/t2C8sw42uhJ3Pr+VEsZY6X6ArDlHHijR0NzO/kxUspZHiUO0JPqYclmrNMvj0J3C0eVb86CHHS55ilQhmFpZpVRLkU5RJDeK0MlOECCG7ZzAn/dmz2krVecLGLUQfQor4GuVuu7CUgNXsd2iB28LCKvFXdwKRXy/+z//AdBQe2EU0aGmOJ4SX1NsQKfkRQaFEwYPnsHlMz7aElpzJvKwqF8Q9P/43SYO87ikxrbdVaoWY1SpxVAHDUBQm6QIlPEOdUl8hRH4DZb687lc0Ms/WnTgb508MYCjkiwJqMj5guWQ0D1V6ojJE2MOA5KJWAy4uFns7V2BZlT8+xatQiySTBC2SD1opjz+bvX1pFRorTLfFi6TkLQU9ks8c+5ErkeCI7idHUc9lUFOYTwQUD8U+CCrFX6o4j7nV4GlIO6vbjq6z38JaxgQ3ikBUs5jjl1a+g= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Vdf4fBKMXW6qPTixbpZuDC3WmFJR?= =?utf-8?q?56M46rXza4GWrgDcDn03JjPvPhVIcQvc6wFQHTOuOMcsBvCdk8CjQ8P6v9aSsfU6M?= =?utf-8?q?9I20KG4SYFE5x+tWVtujyJe1ILRdy5raXSyO7GBad7fHSHVtPjW4QvK+suxOtRmkS?= =?utf-8?q?BwB+TGVIQyXuSMDroqdTZC2ksL7ZR7aaQluMbB3BmK8OjNstJ5WeYPZeSwSIhH2gQ?= =?utf-8?q?Iun+Oj2XIw3EH0WKhnD4M9HWLFGGSM8d1zFmuhFOt7tiN5QiO9OzA/Npv4x+QQQ24?= =?utf-8?q?X8cKeZXfWcas2+MQdAYs5pY7NgAbKt5sGg1h4zsu3ww5Q5r0XNsBUswOcFsU3Y32M?= =?utf-8?q?QL02A4D7cQGED3qYuMSFNQPPy/0QkLqIH+BgjwNNUG+Olk3iAgbID4EmDLTPKl/r7?= =?utf-8?q?HMLBCwMBqqFayVI1KP+KyAAqsaN2bGYrq66+Osnua7fYWFyKmJTe0l+2Pqznvhbh2?= =?utf-8?q?DyOyDxeBp2DZ8K0Jg7BIDROEbC7NJxJuB6wLMfmLyLdJFtyWLmeUK10fWzACJyNu/?= =?utf-8?q?yKoArfPK4oN2Dp5z7cEfQJi4ijS+TZNJzLxabjKgUyFJeqWUA/s1UlAsu0XqLITmN?= =?utf-8?q?ZpSevufbu4gSrarquAg/Fe9VwLzIrAqO73MhxbNuIOgmurzQFFAyvsHtz4qGxQgp4?= =?utf-8?q?5EdFohsgJJfdhTNemE952IZKgkpTlbA6WCIQukRYMLegpjr6Prksmz41RuPAlVioI?= =?utf-8?q?Bly8MgGmmDtl+pnlke9BRvtXc4BfxFWKAOlLE3bK4GSYVlHrXP7BINl3UMiFnnqmj?= =?utf-8?q?0RhCBa4hPTeTabYka/soxAqwUbq9tHvs8VRl6uZDwh5Fcfr+6hwAzMrN4+up9LbaO?= =?utf-8?q?f/qnlDdw5+StF0Y/dH3SGyI3IwKu21qxlwWHT16VuTB6dCEIWi3y4Skqfg56O7u6O?= =?utf-8?q?iBBe+kHaVb/XNG+Ad3wRX+hDzfOl8iLrKVAvkbl5vj9r4E6bugCr09HG4WiDiF9Gl?= =?utf-8?q?Jwfh10gogdYSnr6SGUi2Knghl/gF/i7VJpbTqyGZlyHsP/1d7WuOJEaUNzxAEcS/c?= =?utf-8?q?UAY76AGxl9oUNyLbQ9fLsWALYMOSoETNKgLQelA/OfyaC38a8DrxURp7IbYcj0AvU?= =?utf-8?q?6mqSaeAgOh99Urox5s2fzOfuuhZaa0WboICepBMHRKbNMFwbVGNvhzyr7WFL9XDG5?= =?utf-8?q?79lGxfd6j5ezEwrxCHuP00Efnw40ZTkdxCkegFT0AA+Pu85WlLbCMiiLRUFD0lQ6e?= =?utf-8?q?VkS1fPZCG20jJMIMUIPl+/6A2aQsTUyynR8VrOG7AIPUguGZ158iRVFvghc9rBlIA?= =?utf-8?q?Adr61O9wyx/qOR/XaC4A4LdsHTeLpm7Z6c8o51x+USBtWlwAndfOct0TzWn/VDuDr?= =?utf-8?q?obz7MHrVWizhI4zTbvuvB5zyCCrWUFjyKN2ImHcwmUR7R3xP75UM21hXo0Ld2e8ks?= =?utf-8?q?BzioaYJi80XiLCIMgwwtV6vkCLYucxR6UOsmw7B8viGYT9BUyV/S/Up4pbEww7ozZ?= =?utf-8?q?lky6rrAHVWaPlxR5UEC8CUIqr6ajz0U2eNjyfXeRXsIlCsxRsl11Dd/T7ai+ZINkp?= =?utf-8?q?OlE0sGwjyRSbzMh3UqI+o6JB2pWXFj96whN0oM96s88YGlWlfscNUhk=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d8dc843a-9585-495b-0d20-08dc386466fc X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 13:51:45.6784 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OlqCgjQUn8ut0e6Bv+MrbOUZvxVg+frWzdZDe8hXYGRMrmBNJ03hec2XpTkmWrAfGhUy3lX5irVBCWnm4wWcgdtVryg61Q3+V/xGBSK8Jp8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10523 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_055159_211285_DDBD2482 X-CRM114-Status: GOOD ( 16.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The XMOS XVF3500 VocalFusion Voice Processor[1] is a low-latency, 32-bit multicore controller for voice processing. This device requires a specific power sequence, which consists of enabling the regulators that control the 3V3 and 1V0 device supplies, and a reset de-assertion after a delay of at least 100ns. Such power sequence is already supported by the onboard_hub driver, and it can be reused for non-hub USB devices as well. Once in normal operation, the XVF3500 registers itself as a USB device, and it does not require any device-specific operations in the driver. [1] https://www.xmos.com/xvf3500/ Signed-off-by: Javier Carrasco Acked-by: Matthias Kaehlcke --- drivers/usb/misc/onboard_usb_dev.c | 2 ++ drivers/usb/misc/onboard_usb_dev.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c index df0ed172c7ec..50f84c5278a2 100644 --- a/drivers/usb/misc/onboard_usb_dev.c +++ b/drivers/usb/misc/onboard_usb_dev.c @@ -405,6 +405,7 @@ static struct platform_driver onboard_dev_driver = { #define VENDOR_ID_REALTEK 0x0bda #define VENDOR_ID_TI 0x0451 #define VENDOR_ID_VIA 0x2109 +#define VENDOR_ID_XMOS 0x20B1 /* * Returns the onboard_dev platform device that is associated with the USB @@ -497,6 +498,7 @@ static const struct usb_device_id onboard_dev_id_table[] = { { USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 */ { USB_DEVICE(VENDOR_ID_VIA, 0x0817) }, /* VIA VL817 3.1 */ { USB_DEVICE(VENDOR_ID_VIA, 0x2817) }, /* VIA VL817 2.0 */ + { USB_DEVICE(VENDOR_ID_XMOS, 0x0013) }, /* XVF3500 */ {} }; MODULE_DEVICE_TABLE(usb, onboard_dev_id_table); diff --git a/drivers/usb/misc/onboard_usb_dev.h b/drivers/usb/misc/onboard_usb_dev.h index 106480ce72b5..858f5814165a 100644 --- a/drivers/usb/misc/onboard_usb_dev.h +++ b/drivers/usb/misc/onboard_usb_dev.h @@ -78,6 +78,13 @@ static const struct onboard_dev_pdata vialab_vl817_data = { .is_hub = true, }; +static const struct onboard_dev_pdata xmos_xvf3500_data = { + .reset_us = 1, + .num_supplies = 2, + .supply_names = { "vdd", "vddio" }, + .is_hub = false, +}; + static const struct of_device_id onboard_dev_match[] = { { .compatible = "usb424,2412", .data = µchip_usb424_data, }, { .compatible = "usb424,2514", .data = µchip_usb424_data, }, @@ -99,6 +106,7 @@ static const struct of_device_id onboard_dev_match[] = { { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, }, { .compatible = "usb2109,817", .data = &vialab_vl817_data, }, { .compatible = "usb2109,2817", .data = &vialab_vl817_data, }, + { .compatible = "usb20b1,0013", .data = &xmos_xvf3500_data, }, {} };