Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1319487imw; Tue, 5 Jul 2022 07:29:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5w8JZOQHde3as8iIVq5/4Za90FbhovXgKR95KF2vTwHJjTbzmbRo2HxlMBYR+uOgcqmdw X-Received: by 2002:a17:902:e74a:b0:16b:eea0:d4eb with SMTP id p10-20020a170902e74a00b0016beea0d4ebmr5757214plf.17.1657031374576; Tue, 05 Jul 2022 07:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657031374; cv=none; d=google.com; s=arc-20160816; b=NmCFnunY21pbebttjciLasUf14giEVmSh/cD/Nymak/G1sfVuQDkVhUQ6GCNC/pubO IVruJbLge9EKgFmxokIQCU7RN2BuCb7bKJS/snyg0KLh1juK/eW7b9ojgyO8JP5TBChq 1pAKU3SGzTw9TgvfJey/EMxk8vGrUj3Fc3Chg02mayZlAs4EvOVP2HEVq0iPCYdBodLg tYwhe7JErzoIgC7EfOnH0W4OA1AFzDSLaaTpAJNxOFEGr9jvyrrUJ41BhZFTwOtZ2MKZ O70DPbMaStbkSHlVXE+ZUf1Wwvmb7SZx+EBC+xoHXiA09YY30TKQckHMJhwDulC2o3Ei dROQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d5x801p6sG2uKyVUwKP2eKz1C2UwPgcQQGtQfJ09AyI=; b=rQBGjB3csUPsA/hkTpQVHctYjJ/LB+5whIWgukLNmbvnnUBLK8OfqlfFlCcZb6kq6/ w0pcJVvxEoAD8Qs5M+RBNOt2T+EfdUKT03ZvgExvHtv/Tt6zw9Ry/Dv33GdSm0XMoMK9 GvGNrhxkFI6K7pqqtBSRhrD9c+S4UkUPOMZK6bILS/Bk21QMIi87BMlk7lVidGWs5X9y XEi0j3UlWshgQMCWgGzMI5OUn6mA2WTIHpyjyQLywtLPTiibFpCiG2siHlXAJeI5E97K bL/W0VZWVcApg1QmFN+F932r8qa672wJEuCzdYBc06uX5WJBMYzGpEyZ2BitDezDnFz5 LRVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=QgdokTNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a656c12000000b0040ce4de349csi48926877pgu.291.2022.07.05.07.29.21; Tue, 05 Jul 2022 07:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=QgdokTNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbiGENtW (ORCPT + 99 others); Tue, 5 Jul 2022 09:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232417AbiGENsr (ORCPT ); Tue, 5 Jul 2022 09:48:47 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF80820BF0; Tue, 5 Jul 2022 06:19:59 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 1F7FC22248; Tue, 5 Jul 2022 15:19:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657027198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d5x801p6sG2uKyVUwKP2eKz1C2UwPgcQQGtQfJ09AyI=; b=QgdokTNmJUacparO9BWuFl7pCzSzRClcu/SalHSXhb/rhnhuuzQdjU5p4jubxbNA0g4Dje iElAaac1iJmworsIYoOm7a+OeVyontmvafRFpHiC80Zr4w7eKSP8fm6P+JrhocKxIDLLKe fCm9HX1xBTKu1hJf+R8zmst8Y3I7tFo= From: Michael Walle To: Cristian Birsan , Felipe Balbi , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Saravana Kannan , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH 2/2] usb: gadget: udc: atmel: convert to platform driver Date: Tue, 5 Jul 2022 15:19:51 +0200 Message-Id: <20220705131951.1388968-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220705131951.1388968-1-michael@walle.cc> References: <20220705131951.1388968-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver won't probe on a LAN9668 because the pinctrl driver isn't ready yet. Probe deferral is not supported because the init section is already discarded. With fw_devlink enabled, the probe won't even be called. Convert the driver to a proper platform driver. Signed-off-by: Michael Walle --- drivers/usb/gadget/udc/atmel_usba_udc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 48355e0cee76..53ca38c4b3ec 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -2060,7 +2060,7 @@ static const struct usba_udc_errata at91sam9g45_errata = { .pulse_bias = at91sam9g45_pulse_bias, }; -static const struct usba_ep_config ep_config_sam9[] __initconst = { +static const struct usba_ep_config ep_config_sam9[] = { { .nr_banks = 1 }, /* ep 0 */ { .nr_banks = 2, .can_dma = 1, .can_isoc = 1 }, /* ep 1 */ { .nr_banks = 2, .can_dma = 1, .can_isoc = 1 }, /* ep 2 */ @@ -2070,7 +2070,7 @@ static const struct usba_ep_config ep_config_sam9[] __initconst = { { .nr_banks = 3, .can_dma = 1, .can_isoc = 1 }, /* ep 6 */ }; -static const struct usba_ep_config ep_config_sama5[] __initconst = { +static const struct usba_ep_config ep_config_sama5[] = { { .nr_banks = 1 }, /* ep 0 */ { .nr_banks = 3, .can_dma = 1, .can_isoc = 1 }, /* ep 1 */ { .nr_banks = 3, .can_dma = 1, .can_isoc = 1 }, /* ep 2 */ @@ -2449,6 +2449,7 @@ static int usba_udc_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(usba_udc_pm_ops, usba_udc_suspend, usba_udc_resume); static struct platform_driver udc_driver = { + .probe = usba_udc_probe, .remove = usba_udc_remove, .driver = { .name = "atmel_usba_udc", @@ -2456,8 +2457,7 @@ static struct platform_driver udc_driver = { .of_match_table = atmel_udc_dt_ids, }, }; - -module_platform_driver_probe(udc_driver, usba_udc_probe); +module_platform_driver(udc_driver); MODULE_DESCRIPTION("Atmel USBA UDC driver"); MODULE_AUTHOR("Haavard Skinnemoen (Atmel)"); -- 2.30.2