Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp837395ybv; Fri, 7 Feb 2020 09:22:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxLiKBkS0nOkjHAE0njIziKlhtn/bK8C9uEEfCvyj/K4bz1mFp+Bd+wDGh4VcQdbrPZi6vR X-Received: by 2002:a9d:20c1:: with SMTP id x59mr346221ota.286.1581096164048; Fri, 07 Feb 2020 09:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581096164; cv=none; d=google.com; s=arc-20160816; b=SFeBJ31XiF+kradL6WtHIdAqRYFxApxKQX8uM2m6Whc6Hr18jBqClbbljPSE2TOoo8 2SzW9b+V6b975Lz64hAYyEBMqFYpSacw9lRvUjf+rHVpn5BsR3mIuYdmYwp/7YJ4noyP OoT/Ge50pEyTnB1WDP3riEjfxx0l90+H4xmVpxwXvVMkv2/aVAbmlkoLYs6FgOGnE6GN x6LdyBQbpPoqPzkfF8BDLBztgbiguv+UCHOeKrBhbHYLEfWGPVSA+0YkIkUniS9VJKqr 4x2AkLnSsOwj80mieFDBTiP2BnFv95ZyebB4XDXxJVtnJcZvq10J0Q+0/xPImnews6mL H1gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZxWNv6iA6gWQL1mJMZPg00oBxiFGslEj8XYJ4RCtALA=; b=w00lFFoZkLwznnlHToPdzXeLX8Lgog0Hm3W6YH+bBgL2ZHxPO3dGtvVB7vQZTM9xZe bXFpUn8yqsHkMLpo94fgpYJjpsYnMOh14cvHozVGvAnqY8kME3PPqUIU7RFUmDUB1xXb ZukXbooCuQdlE7cynhG3k/3nxnCGpvhNyZ9GZRMvNloZTosjvpStQiY9dm2XPKdgDLMJ w8xjlgf/oIbGTDLF/62QTFZrq4lUX/lpsxknpy3bw6y6+OE2ivHOmK5+VJcf91Sa1xgZ 0vRiJsZxK+SHfJq7LuMiR1qaWPeWREbfDxpeFBhd1PjY6bZgUITKEdHB/Tvk29CSG3/R IGBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZREWH0hX; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si1883691otp.4.2020.02.07.09.22.30; Fri, 07 Feb 2020 09:22:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZREWH0hX; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727130AbgBGRW1 (ORCPT + 99 others); Fri, 7 Feb 2020 12:22:27 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:26128 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727012AbgBGRW1 (ORCPT ); Fri, 7 Feb 2020 12:22:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581096145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZxWNv6iA6gWQL1mJMZPg00oBxiFGslEj8XYJ4RCtALA=; b=ZREWH0hXYGJ/JFvIPq+sS91+55cp0E4544vssZTQ1TW4rsl/s5eB2jsFkcWAsilAl4gvSM k8kICNvhyllzyPHrahNTXi9by8q9+1VM9M/kx/7n70CbltAF95/nuDDX7WN0PaAv71aCnB HuZewVNGNIULNa17jdCM1JurxDTzEbU= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-75-5lY_XQbYN0OsaummTck8eQ-1; Fri, 07 Feb 2020 12:22:23 -0500 X-MC-Unique: 5lY_XQbYN0OsaummTck8eQ-1 Received: by mail-wr1-f72.google.com with SMTP id n23so1591767wra.20 for ; Fri, 07 Feb 2020 09:22:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZxWNv6iA6gWQL1mJMZPg00oBxiFGslEj8XYJ4RCtALA=; b=ebCSbqD11/8nE3ebry8UCAticOxDwsROnm/fLM+3uPPFOcpbOX7w+pOZLdU154m4E+ a7hAYVKlDMZ7DHcb0FsYd9ZDb0osrPAEkSnwDHAwL/ROt7UjpS28+XgAU9xc/n30DB4s qMrvvdeavIbXrl3ywz3Ozjkhj2z2f+k/CI3c3cJkCWGnbic7rKbTYFBly+l3dga8IC1S CWkNEJ3ttR4+zoFpEQDGgcCyh+nu7+YIzN1KhVOMAVU6G2tP/bPF9pKqnt4glIcqDm30 R3SRwZYjYH9kU5XoHehTepqseP/GsjuuQebvG7qeBigkCFIdjL+9icD6aDuiyU/VxQ+F OmjQ== X-Gm-Message-State: APjAAAUtfhaMLamzOzIVN7mjj4Wk+zrT4ypwrzljitMYSNApe6hoBN2a QXKhWh3FEwuW3e7CnoY5xq/rQWTjJeAByM3r1L49oMzhrGrm4QAxXCSL7yETpEJD3W5uZTbc0Hf TN2rMz0YngGkvwbTOzlLI5DJa+i0= X-Received: by 2002:a1c:e246:: with SMTP id z67mr5666959wmg.52.1581096142326; Fri, 07 Feb 2020 09:22:22 -0800 (PST) X-Received: by 2002:a1c:e246:: with SMTP id z67mr5666947wmg.52.1581096142066; Fri, 07 Feb 2020 09:22:22 -0800 (PST) Received: from localhost.localdomain (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id j5sm4266332wrw.24.2020.02.07.09.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 09:22:21 -0800 (PST) Date: Fri, 7 Feb 2020 18:22:18 +0100 From: Lorenzo Bianconi To: Felix Fietkau Cc: Lorenzo Bianconi , linux-wireless@vger.kernel.org Subject: Re: [PATCH 2/3] mt76: generalize mt76_mcu_rx_event routine Message-ID: <20200207172218.GA2538@localhost.localdomain> References: <0b2e476900157cd99417328e661e71a6ffedcb6a.1580945999.git.lorenzo@kernel.org> <9206f86a-8bd5-1f43-482d-8027e1a60d42@nbd.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <9206f86a-8bd5-1f43-482d-8027e1a60d42@nbd.name> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 07, Felix Fietkau wrote: > On 2020-02-06 00:53, Lorenzo Bianconi wrote: > > Rely on mt76_mcu in mt76_mcu_rx_event signature in order to reuse > > it in usb code > >=20 > > Signed-off-by: Lorenzo Bianconi > > --- > > drivers/net/wireless/mediatek/mt76/mcu.c | 8 +++++--- > > drivers/net/wireless/mediatek/mt76/mt76.h | 2 +- > > drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 4 ++-- > > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- > > drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c | 3 +-- > > 5 files changed, 10 insertions(+), 9 deletions(-) > >=20 > > diff --git a/drivers/net/wireless/mediatek/mt76/mcu.c b/drivers/net/wir= eless/mediatek/mt76/mcu.c > > index b0fb0830c9e1..a2936f8de915 100644 > > --- a/drivers/net/wireless/mediatek/mt76/mcu.c > > +++ b/drivers/net/wireless/mediatek/mt76/mcu.c > > @@ -42,9 +42,11 @@ struct sk_buff *mt76_mcu_get_response(struct mt76_de= v *dev, > > } > > EXPORT_SYMBOL_GPL(mt76_mcu_get_response); > > =20 > > -void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) > > +void mt76_mcu_rx_event(void *data, struct sk_buff *skb) > Why the void* pointer if we have the mcu struct in a common place in > struct mt76_dev anyway? ack, I will fix it in v2 Regards, Lorenzo >=20 > - Felix >=20 --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCXj2cxwAKCRA6cBh0uS2t rK6WAP0cZtEBPWs3aE8QTcFqTouZh98U2CEsPhCam2OTGhH8IwEAonWeJZ7FArgG RtjtPMGdbMrulxhH8hqso2TZcu36YQQ= =/K1J -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--