Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2730382rwb; Sat, 8 Oct 2022 13:10:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4JhMGc6/wfTwd0m5G1I3LUrrLHwMVUswZfGmwev5SLcUaJ36Bn1+XT4oJmDaK+3fSqR/5w X-Received: by 2002:a17:90b:3e82:b0:20d:2fa1:d071 with SMTP id rj2-20020a17090b3e8200b0020d2fa1d071mr172188pjb.58.1665259848951; Sat, 08 Oct 2022 13:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665259848; cv=none; d=google.com; s=arc-20160816; b=ocKqunH26IXKIkqh+Cv3v+ojsnllCy3opoM06n5W6n6Gc34nJobePft4RDdjp6pt6Q GCs0gqCHAbVomonCDA6D/X6F2coyCC+eKfSQx1S0GXTIG+FCxHs0mNBNsX870X0o2N4B mNFcvsB7MoMi9KYCu/LU7ZxX+InEVo7nvpXG6mT7Eo1fI86XUB8W3P1rPDB+jYmFNujD c3Jr8U25+LjdUWhi+XILtPimc3sf0000H1+q6TUsnrP53AWmG93TMRiDkv+4jdYoD+MD TqkwCMfM+8AxMfFR17zX8vENR5vr1Ozjb4aKz/hVSR2rXmRK2FecN/K/RFBdvt0UjjBE DMnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=sPqkQeKBsmSF5+T44K89btJNeNg2YCdMiWL1fgYqCFg=; b=vuCmPWNdyNrzIypo3Tetpl1awCGQQaLPbdtApQEikV8HRveMtiFcLf8m3Htf0wkgV3 VnZJtRTX48Py3pjYZDQeDy3s0wgalPNHbmFVtPHAb0QzMeW+1XLCIYgaGty/QWjY+SM8 g0b67SvXqPD/M7l3+SIOfbd6EfEjEHO0o93EJ6qr40A10VcLApopYXE/VrQl2OZwgZdO qu6pHPqCkjfCApAjbQP92oU8LUcemIpGvTVwQdV4POJUAqIhzB8TgsaqapHcXta33n4n 3DZttNpBIH9wrKqBpRlu7MOF5vgTtzMCYtFwRrWC/fKCbfwYriejZN69PS569Sdg2wo6 +VKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=QZKELon0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg27-20020a056a02011b00b00454bec0cb86si7448802pgb.182.2022.10.08.13.10.34; Sat, 08 Oct 2022 13:10:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@sipsolutions.net header.s=mail header.b=QZKELon0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiJHUKc (ORCPT + 61 others); Sat, 8 Oct 2022 16:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiJHUKb (ORCPT ); Sat, 8 Oct 2022 16:10:31 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25A2B26125; Sat, 8 Oct 2022 13:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=sPqkQeKBsmSF5+T44K89btJNeNg2YCdMiWL1fgYqCFg=; t=1665259830; x=1666469430; b=QZKELon0vdxhWIYyEL2Z4A7otMX4W0QlnwQolsrTgnlpklE KJTllaE2g5C1q5VKPpm8S/zLm5aglLDCzzqkEb5bQ1OF6+mRRVRsdMh94L6G3MqvRPWKG1orSVpuJ iohr6oEgGKAfqLxYmXBhR1qC8syyS7CwD6hzEAJJFAc3cDghD121Mabc5bguN4JalF4okgkJF34Ds BDizdeoJc+yEn8mfEXN//TJL5VrUpz+CCv/PNE611Jps9D2Alv0AmGCUfmGzryB/Eo2kE8SK1SRzh 3xaD2dw2HJanHiBty7xWrC9i7rJhjF4SXgSWc4OTE+nbJOphNlYjLKL7M+sD5ILA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ohG9K-001IoM-0Z; Sat, 08 Oct 2022 22:10:18 +0200 Message-ID: <3acec81e863aa5f184bc5a74916f1470b77552cb.camel@sipsolutions.net> Subject: Re: [PATCH v4] ath9k: verify the expected usb_endpoints are present From: Johannes Berg To: Fedor Pchelkin , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Kalle Valo Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Khoroshilov , lvc-project@linuxtesting.org, Alan Stern Date: Sat, 08 Oct 2022 22:10:16 +0200 In-Reply-To: <20221008120211.24764-1-pchelkin@ispras.ru> References: <20221008120211.24764-1-pchelkin@ispras.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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-wireless@vger.kernel.org On Sat, 2022-10-08 at 15:02 +0300, Fedor Pchelkin wrote: > =20 > + /* Verify the expected endpoints are present */ > + alt =3D interface->cur_altsetting; > + if (usb_find_common_endpoints(alt, &bulk_in, &bulk_out, &int_in, &int_o= ut) < 0 || > + usb_endpoint_num(bulk_in) !=3D USB_WLAN_RX_PIPE || > + usb_endpoint_num(bulk_out) !=3D USB_WLAN_TX_PIPE || > + usb_endpoint_num(int_in) !=3D USB_REG_IN_PIPE || > + usb_endpoint_num(int_out) !=3D USB_REG_OUT_PIPE) { > + dev_err(&udev->dev, > + "ath9k_htc: Device endpoint numbers are not the expected ones\n"); > + return -ENODEV; >=20 Indentation somehow got pretty messed up now .. johannes