Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2666251ybf; Mon, 2 Mar 2020 13:17:01 -0800 (PST) X-Google-Smtp-Source: ADFU+vv8UUG8y0vBUh0Omehn5PNhaMlBtuVDpIDPr0elwXWhkywz+3PXNRKm/Xt197e1ffaoVIFo X-Received: by 2002:a05:6830:11c7:: with SMTP id v7mr840647otq.41.1583183821765; Mon, 02 Mar 2020 13:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583183821; cv=none; d=google.com; s=arc-20160816; b=0OGe+Geptj2arvSINmbjeTOJMXPLsU+KPR6JhpeG0mjXZ9LdWv7cIs4uZdLl+EkaOJ UKYu3x9IHMaqBm43mLzzljykHRVFLTVIJkMh5BB7ZdYKAeNeFgMaoPld70MS2DW0pG/0 YdX1R8Jh1J/prwhWUzAYucXoXoRYWyfVwKQm1m0XAxsA0mGANJj8pVlU/Wdh05O+IGQ5 0bJJjfiDW6JQOsZnRkVlSEO9EKu4cK8PL7a9cafHjHM1lxxZjSmwGLZGog/ACeLvkUQD suj0KAnr8k6Nrb38D+eMjGrdDWQvCTJaF7e1nGpOJPYs7HVcBaOiXU/QeFV4xyozFZt7 CB6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=8AnoNeDdMH20PXacSn59CEXHM7eY06izLZGO6XE29os=; b=H6uBH5qOab3XwpyGrjB/Us5WHStKJVxxcOxF9ibMrLcFwT3ARQkDveQkMNL8BAkWb9 lH8YIx+d+vu6LRU4tor8ZB2+amFcio/KYHNHO/ckdnOpfQ9iGidjOJMVSvunpJJU5zvL KoWkhOIng3B1+9LNFvUBGTTBpNxoCjY+wODLHDUToQEak6bI9kZKdX7jck7+bwL4Fakk EV0Pp/8Z7lULfHTupOMXzh11f/KGqTabSk/sgbH/gXoQv2dvYtS2WfVvh2sTvVerSyMj mkzDcvKtCv8U+8iui6AJ6yy5Sgs83/QEsrvsQS8hQ7n3IBa1YiJtHaz+EGShU5XRL49H h0ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WcULC1Ma; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si6868558oif.256.2020.03.02.13.16.46; Mon, 02 Mar 2020 13:17:01 -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=@gmail.com header.s=20161025 header.b=WcULC1Ma; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbgCBVQ1 (ORCPT + 99 others); Mon, 2 Mar 2020 16:16:27 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35378 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgCBVQ1 (ORCPT ); Mon, 2 Mar 2020 16:16:27 -0500 Received: by mail-wr1-f67.google.com with SMTP id r7so1697097wro.2 for ; Mon, 02 Mar 2020 13:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=8AnoNeDdMH20PXacSn59CEXHM7eY06izLZGO6XE29os=; b=WcULC1MazSLvQr+LcM5zwVVaXuY97FoKzhszrsw4F/LwFYLFLVXMHQX3tkfDyezwOa tEE7focHjQSacFVL9LLodx+TXUBIYiLuGUjtB0avZ0vFJZFsjeuDz3w+dfAYQVcUq602 /PRLd50JJi+SjoP7JwnQvCIP7O4aaK2B3IAV3nrIsWZD86RZorxYIFnvrxBvhPko6vht iLAWVZlfPhfMWIsUW6USdGq9g1XcOCt7aOH/kG7bYblAkGxOiMdt0Tk0skhMkaj+jVc2 8NmHYTGLftCpmjuCafaiyQkrsGjMJZWP49hHtRpNX1lJlKMwbbMEFC+yFVBCGiRaSDD2 rb+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=8AnoNeDdMH20PXacSn59CEXHM7eY06izLZGO6XE29os=; b=EvJ8MWadIoXsBno7HKv6yZPtbxNh7z9p6R5zW81LnJXfoue1Vpg7zowIYAkhxgzUqi LS7EtzuLt1RMu/r34wkfHro94SrYnYrWkURw4jG5S147KCyimugNwIWM5FP48KHXR4g+ U57Ws2NiYxQS9oSuWfUEUm1qc7ivXKoc7TltUlA+0pnicKTen5rrjvQ5rg8H3tOcYeoJ ZrG+EiYFgnOsAoFmgnawvv+rPiUmqweS/tyKKnAZsTo6f+AilQddGAlMSvvTaMGx0223 hRsy9Egf9l89jqx72fylc7+PxiOzBJzsm47u4Hc68BZ54LTQ5zqnqP4HEyG6YRtPCzWn zr5Q== X-Gm-Message-State: ANhLgQ0Y9dYorSYDcKW8gWaDJEaeKTp9jvTxc6R+Vchy+xg6Oa976ivD MPEibss6gHXk7X6H6+cJTBRRg7Th X-Received: by 2002:a5d:4382:: with SMTP id i2mr1351265wrq.424.1583183785458; Mon, 02 Mar 2020 13:16:25 -0800 (PST) Received: from [192.168.43.18] (94.197.120.139.threembb.co.uk. [94.197.120.139]) by smtp.gmail.com with ESMTPSA id m3sm9482886wrx.9.2020.03.02.13.16.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Mar 2020 13:16:25 -0800 (PST) To: Greg Kroah-Hartman Cc: "devel@driverdev.osuosl.org" , linux-wireless@vger.kernel.org From: Malcolm Priestley Subject: PATCH 2/3] staging: vt6656: Remove function vnt_int_process_data. Message-ID: Date: Mon, 2 Mar 2020 21:16:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org call vnt_start_interrupt_urb directly from vnt_start. Move debug message to vnt_start_interrupt_urb. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/int.c | 11 ----------- drivers/staging/vt6656/int.h | 1 - drivers/staging/vt6656/main_usb.c | 2 +- drivers/staging/vt6656/usbpipe.c | 2 ++ 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/staging/vt6656/int.c b/drivers/staging/vt6656/int.c index fcf92cd1234b..139be3f845c3 100644 --- a/drivers/staging/vt6656/int.c +++ b/drivers/staging/vt6656/int.c @@ -23,17 +23,6 @@ #include "power.h" #include "usbpipe.h" -int vnt_int_start_interrupt(struct vnt_private *priv) -{ - int ret = 0; - - dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n"); - - ret = vnt_start_interrupt_urb(priv); - - return ret; -} - static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr) { struct vnt_usb_send_context *context; diff --git a/drivers/staging/vt6656/int.h b/drivers/staging/vt6656/int.h index 8a6d60569ceb..0b7473a7f190 100644 --- a/drivers/staging/vt6656/int.h +++ b/drivers/staging/vt6656/int.h @@ -41,7 +41,6 @@ struct vnt_interrupt_data { u8 sw[2]; } __packed; -int vnt_int_start_interrupt(struct vnt_private *priv); void vnt_int_process_data(struct vnt_private *priv); #endif /* __INT_H__ */ diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 9135aad0863d..a22f88b1f5e9 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -549,7 +549,7 @@ static int vnt_start(struct ieee80211_hw *hw) priv->int_interval = 1; /* bInterval is set to 1 */ - ret = vnt_int_start_interrupt(priv); + ret = vnt_start_interrupt_urb(priv); if (ret) goto free_all; diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index e93c2175543f..0e29dc2f4b0d 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -176,6 +176,8 @@ int vnt_start_interrupt_urb(struct vnt_private *priv) { int ret = 0; + dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n"); + if (priv->int_buf.in_use) { ret = -EBUSY; goto err; -- 2.25.1