From patchwork Tue Jan 3 23:35:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 38704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4869396wrt; Tue, 3 Jan 2023 15:38:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXuZzToE3OG9T3FHg1Ydhs+2OXnEjgV3bQ/lzh4MaEibWqqzDpgkU2yO63i87rmAIylruHkb X-Received: by 2002:a05:6a21:3294:b0:9d:efbe:a122 with SMTP id yt20-20020a056a21329400b0009defbea122mr70670265pzb.50.1672789081784; Tue, 03 Jan 2023 15:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672789081; cv=none; d=google.com; s=arc-20160816; b=NPVNhAsuLQReoz4LZ21K5huR7MWh3s8PA1NdvyfqvAkFwW0UWLlcsVpyyZDkDBu/qA qjKx8gLFvzZKRaWQcSryH/qn8WeoF4SYiqI4eJTTVCFasUMq6LKZpz8H4GlN5nMzA7/T Rxnv0JLvqqZD9mcpbRh1DDp2gVXAsSz7YGt5KRZEEbnZ2LZG3WNhUtm9UGO5CnyXwS/7 gJNxpj0AmLySc0F+MMbKKUDqBvWOYD6oV0lC3/ApoxR7/6yPLE+GPfaj0xsmRKThMTPe zu37mAQmUNa0qDG1ssowr4PmTx1oOWuZ73SsaU3k18FzEOS6cE9/SAipBLyIvtwUiysp IjpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Fm8GAHA4wHOZ6aH5j10PuHm5s/aZ6TljNeVHuGhMRwk=; b=ZFnRmH/6mKfEBJqf9BtAE9Nba6usl7gCb6Am6faS47HjBl/17N32PSVyF1IkkzkXn0 d0rRBsAOLacXed+4seeqJoyQC/g1ESaexwOVB6EHMITjFEunRodPHLkoF4F8wwsWDcCl qFGdknKmqlRVR+EHD1wUBfYDKJae+G3eCxNT0KgKxfe3ATumIJdM0cCNi/HM/CmIeIfm 018wZ8o3O7e6Vh1ervO8e+WUSyv5/b8IxP+AjXBsRbT9yTBKSDfdNBwz40b0c9EaVXo/ +/li+KyEwoklPZfet21mOuvdXRicKWLXaW3UAw2BtMdNR3RvGeodfS2iVxkOBupHXD5I JGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QTSUiaPp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a631941000000b00477810a445asi32286160pgz.589.2023.01.03.15.37.49; Tue, 03 Jan 2023 15:38:01 -0800 (PST) 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=@linaro.org header.s=google header.b=QTSUiaPp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbjACXfg (ORCPT + 99 others); Tue, 3 Jan 2023 18:35:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237900AbjACXf1 (ORCPT ); Tue, 3 Jan 2023 18:35:27 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C0713E3C for ; Tue, 3 Jan 2023 15:35:26 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id bt23so31316572lfb.5 for ; Tue, 03 Jan 2023 15:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Fm8GAHA4wHOZ6aH5j10PuHm5s/aZ6TljNeVHuGhMRwk=; b=QTSUiaPpbGJceQRcTqfXW+fhAp/0bRlZ9/jR1kVkMF+m6O0/Jhj2v/E3CtGWtHhJTc fGUPGKXKsuxbDkIniisGJjvVwfpYAFdd1BMCkZyGe0WZPVJrV8vIvsSjZpmGrRfIDG4u Bq1I9EzxVDuFg3E1KO2iZjZCukYVUzG9h47QzdrWK60Bp/HUy8pxWGC4wC1hZvR4dRaM RMV8U/TRiXzw279/8nS29dYjLEBl8azTEBmpwtUWsZl+iYh+tjE8ZPKxST+ymIriz6Gb 9Ug0ED9JU3UPSPU8IbR7cJ7/mdS3pcAZ2cZturYPUU6RU90dWgUx53Z6NQrAIuvrpJRN vF6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fm8GAHA4wHOZ6aH5j10PuHm5s/aZ6TljNeVHuGhMRwk=; b=trgR/zs6vYrwjfbdP63gPpzIOwBQPnKMTaZ31XHcVR6PMy3F/GcEkQCJUKS+NSbRa4 TkXvpcC90HDgMPm4WYPay8QRa/11xZF2B4DQUAy4KCwZPw1RI7uqZgs1/2eQ7bgcFIV0 wSmPc9x2RamRWgxyr6CqNLgDFPOjYVPyyxg7F5R1BHYP6/3ffQB5I016r8SkzaCeTycl 4Q2N5aBt8SzQXxVeKpK29+OxR93X84l991DPHaE0iMCQWpd9ZsJSsyT7mJCWBfEbrem8 Dbk6Ger24FReGezlrIhV++0Sdf1EIDUi7OjChCAYCg5TFOD2e3h1pwSE3DJeNtVTca/m JQog== X-Gm-Message-State: AFqh2kqoKy8SZdFSjp0/3mm/ipk8bxfXmhs2zQw6RgSJRHVzGDZ6Yia8 +zETPDV326bPrIXyUvVnWGV70g== X-Received: by 2002:a05:6512:220f:b0:4bf:982f:f63b with SMTP id h15-20020a056512220f00b004bf982ff63bmr15779860lfu.21.1672788924538; Tue, 03 Jan 2023 15:35:24 -0800 (PST) Received: from Fecusia.local (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id b11-20020a056512070b00b004a45edc1de2sm4939801lfs.239.2023.01.03.15.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 15:35:23 -0800 (PST) From: Linus Walleij Date: Wed, 04 Jan 2023 00:35:18 +0100 Subject: [PATCH 2/7] usb: fotg210: List different variants MIME-Version: 1.0 Message-Id: <20230103-gemini-fotg210-usb-v1-2-f2670cb4a492@linaro.org> References: <20230103-gemini-fotg210-usb-v1-0-f2670cb4a492@linaro.org> In-Reply-To: <20230103-gemini-fotg210-usb-v1-0-f2670cb4a492@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabian Vogt , Linus Walleij X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754046484532501298?= X-GMAIL-MSGID: =?utf-8?q?1754046484532501298?= There are at least two variants of the FOTG: FOTG200 and FOTG210. Handle them in this driver and let's add more quirks as we go along. Signed-off-by: Linus Walleij --- drivers/usb/fotg210/fotg210-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/fotg210/fotg210-core.c b/drivers/usb/fotg210/fotg210-core.c index 8a54edf921ac..cef12827e797 100644 --- a/drivers/usb/fotg210/fotg210-core.c +++ b/drivers/usb/fotg210/fotg210-core.c @@ -127,7 +127,9 @@ static int fotg210_remove(struct platform_device *pdev) #ifdef CONFIG_OF static const struct of_device_id fotg210_of_match[] = { + { .compatible = "faraday,fotg200" }, { .compatible = "faraday,fotg210" }, + /* TODO: can we also handle FUSB220? */ {}, }; MODULE_DEVICE_TABLE(of, fotg210_of_match);