From patchwork Sun Sep 27 12:49:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petko Manolov X-Patchwork-Id: 1372051 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=AVFqeCvf; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4BzlpS00NHz9sS8 for ; Sun, 27 Sep 2020 22:49:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbgI0MtS (ORCPT ); Sun, 27 Sep 2020 08:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbgI0MtS (ORCPT ); Sun, 27 Sep 2020 08:49:18 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD3FC0613D3 for ; Sun, 27 Sep 2020 05:49:17 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id i26so4561284ejb.12 for ; Sun, 27 Sep 2020 05:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=asWmuNPbv7O14B/CqJ1Q3xDQ3n30hKEpCeMHeYXCIHE=; b=AVFqeCvfsCAGsGp+CPkJIKaDP04FRBmne3+1Ji3H8JBJLqHTP57nXl39kk3Iq9G8OW k6Ig+zwFnCUW6LQy3LN1aQIUctzLFH58cJ4+jDRIkG8fRcDaJW+KHFTtnDVofuOZ1f6c uU4+DXcrojFBRC4upmYN8lsFfiRXnp18vc2qs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=asWmuNPbv7O14B/CqJ1Q3xDQ3n30hKEpCeMHeYXCIHE=; b=BNR3Vp0oxPi572EQHZ945CTyYhUEl3DCcm0HlcXz0GWE0TUDDQ7laH9OPmdL9otUNq bEbfAQh96OJCuXUPb2OkUfKOcWcb/AP43cjmZwbiT8/rT9xxEeVNQe9GaZSwMjEnRsfO BqdkyK/wbk8sB/0mByizLDXq9gfJ0E6PvxXvN7VJvZW0j0BpwRHgc9VAOwrVmFz5ANyt GZWTB/5cDJcH3ccYgAvPiIkTUnwzN5yZnVAUo8m3mGSELDnyzhek+mFDr4GhOtuUSmzc M2GyLbJ5QP3Dd0l/w9edMxh3XAuW2xBnVWA5bIo4TMoY7M3X0/ZH5XmWxs6cselunjrz 4ZWQ== X-Gm-Message-State: AOAM532VmUGxoelwge/xtczHyJBe7PasHv1ADrIr48giju2v2WwpyYhE 9GkyhNLHbbogmgyunCevhzUBWA== X-Google-Smtp-Source: ABdhPJw2vRQtNip6I3qzR/LkuWDKso34YvFFPDIKj0R45xCixJL+4qpfdkzWEKaS/RcOj0GwqSyAZQ== X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr10746155eju.199.1601210956480; Sun, 27 Sep 2020 05:49:16 -0700 (PDT) Received: from taos.konsulko.bg (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id r16sm7234275edc.57.2020.09.27.05.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 05:49:15 -0700 (PDT) From: Petko Manolov To: gregKH@linuxfoundation.org Cc: linux-usb@vger.kernel.org, davem@davemloft.net, netdev@vger.kernel.org, Petko Manolov Subject: [PATCH RESEND v3 0/2] Use the new usb control message API. Date: Sun, 27 Sep 2020 15:49:07 +0300 Message-Id: <20200927124909.16380-1-petko.manolov@konsulko.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200923134348.23862-9-oneukum@suse.com> References: <20200923134348.23862-9-oneukum@suse.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Re-sending these, now CC-ing the folks at linux-netdev. Open coding, occasional improper error handling by the caller of usb_control_msg() and not flagging partial read as an error requires a new API that takes care of these issues. It took the form of usb_control_msg_send/recv() and this patch series is converting Pegasus and RTL8150 drivers to using the proper calls. Petko Manolov (2): net: pegasus: Use the new usb control message API. net: rtl8150: Use the new usb control message API. drivers/net/usb/pegasus.c | 61 ++++++++++----------------------------- drivers/net/usb/rtl8150.c | 32 ++++---------------- 2 files changed, 21 insertions(+), 72 deletions(-) Acked-by: David S. Miller