Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp427812pxu; Fri, 4 Dec 2020 06:45:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYdjCUHfHs17YjWs4AOtQ2GfBxI+1NWWgqDR4W2ywdv2jvtzVVRTI2cq8BMZwKfhewPHVj X-Received: by 2002:a50:9d04:: with SMTP id v4mr7866413ede.363.1607093130221; Fri, 04 Dec 2020 06:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607093130; cv=none; d=google.com; s=arc-20160816; b=bkSaPdzoOT9B9Mw49hxV5H1vTRvodUei1QLoFHNIMrWb1EfLuYqsrc7QCIn900qmAJ 5DlmnPgZAIF0IydHTGoccTEcphzS1qASGLowSUWc56RRiHovHMNKtrZxmxPXu04pWqVN ofmbBOSFfLZh3QFvMXH3eiUf0c7xsztYDZaJOdn2HZ7RR71rg7fogaTGIXvgEurB+7mS pkZpqXd50EgI3B4t8ASd5RwR+kTWWPDsgTT8ALT1IFIxccWRdj1qeIcHI9KMRVweQEj4 HRFTvooBejPJCDkIoYFdwbOUYMEqj58BKn8wbGExRwEon8wvOi5TA39Fwmol9DXGqhPt ec6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Ulvi+cJW73sNAQzYhXEuWReB9rnRQXnvkznBorTplew=; b=e0meRiO1Seqf0QX5p6CmHgTSRNzL/JkpX98o5QMsmn1HByyj25TpcmhD5cqQj3ezmO 8r9w3uVwSurVeKbdiHJOozEf/Yoq3OXg+8a9pWaK5M4sxmzxc2hneFDnZH51/NuSaIpz fPjPjenkFFwu2opTdhfCsSukM7Qf1v0Wx3rSR9fsFhK6Ifp39+X66MLK6jNPw4xYky00 ap72h18GsgFC69USVBZpS1YSvhS7ARo9MrL4pb8c+hYkIuqCItJ/JIzXDUw+NoNclgXe GcyY1VjPx0ClitvuyNOg5NqnrZZ9pqA/OGeMTd/r7RlhsS0lVXhbuMWYm7toWNfioo5d RUow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si3075914edl.562.2020.12.04.06.45.05; Fri, 04 Dec 2020 06:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387464AbgLDOnk (ORCPT + 99 others); Fri, 4 Dec 2020 09:43:40 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37731 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgLDOnj (ORCPT ); Fri, 4 Dec 2020 09:43:39 -0500 Received: by mail-lj1-f196.google.com with SMTP id z1so6892568ljn.4; Fri, 04 Dec 2020 06:43:17 -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=Ulvi+cJW73sNAQzYhXEuWReB9rnRQXnvkznBorTplew=; b=J+f6TBk1NdV2jprBpYpEqQahqtYGH8HiELgZLQnWd7NNnNbPxCDvsOUxKi3gGAL7NL N7cLPAXsCqSFwqhuC7QUv0EKCcRLTL6VbFE8BE2ZL7S00CN/vxMSA9racR8hiFEu+gGp d086Fn/acBj0o5E1bM9n/cMSNL8w4ZVRiwDkk04+zF9gzBuvhyCnebWd0lj1FTxjNYIn f8sN10/ej1a5te6Q4m5y4npSvNOce0dqdhRCUpHEZv4Yn95OPhsdQUQpjdshFdgoR9x2 tnKaDKBJiFHESBgmSUBTtEXFswR6Bx9Ab/GhzbvTADf8+EeydiTYsGqq67xuWSvG/JAe eTEg== X-Gm-Message-State: AOAM530eRp6RW4vUu0NYGvGvAT9eXjdiaOyLc2HhGIp2Yca8mrFp/OKv t1KhvhPCbscsgDN/Sfz5miY= X-Received: by 2002:a2e:8011:: with SMTP id j17mr3717519ljg.325.1607092971879; Fri, 04 Dec 2020 06:42:51 -0800 (PST) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id q13sm1783435lfp.2.2020.12.04.06.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 06:42:51 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1klCIv-0005MC-IZ; Fri, 04 Dec 2020 15:43:25 +0100 Date: Fri, 4 Dec 2020 15:43:25 +0100 From: Johan Hovold To: Anant Thazhemadam Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 06/15] usb: misc: emi62: update to use usb_control_msg_send() Message-ID: References: <20201130011819.2576481-1-anant.thazhemadam@gmail.com> <20201130012925.2579632-1-anant.thazhemadam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201130012925.2579632-1-anant.thazhemadam@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 06:59:25AM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, data can be used off the stack, and raw usb pipes need not be > created in the calling functions. > For this reason, the instance of usb_control_msg() has been replaced with > usb_control_msg_send() appropriately. > > Signed-off-by: Anant Thazhemadam > --- This driver looks like it shares origins with the emi26 one so the same comments apply (and especially not put large structures on the stack). Johan