Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1719584ybt; Mon, 15 Jun 2020 07:45:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxecF5l1GNNuFhfGXJ0Tfa94R2dNwOaS9PpDwmmy9LPrPxwFPbt+z69S9LxfNBlG54EuTvm X-Received: by 2002:a50:98c1:: with SMTP id j59mr24878304edb.120.1592232310422; Mon, 15 Jun 2020 07:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592232310; cv=none; d=google.com; s=arc-20160816; b=nhdnvunJL6zoD/v6/6TlkSvj6pg8HXtAdI3Z0tEA/gq9xFY0i8LuUYLvvQmhlVmO2z 7M9gdkLv5Pq/z7Xi1ljicnmMMWTRlV02Enxp5Lj60QnQC379iYgzTuz0plqdcmfgR3d/ h7CNc0qxpG/GnpY/KKSm4vLDk6s42rcb7ajj7KB9RYLdvx4+Thp4Ao40RmKA0rVnX94Z yhdRXwyPOOZ43TpPtTe8BkcCSUM9DNZcVjPqTyM7O+4dOh5q/dJ8fG/LtnJKL6KF6ZWa 0ox7UR1naAHJyyAFytuiQ1JiOmRm5no1sd6V+FiEnemqRDWayyiuVoqAhP3WBl4slUlJ +ugA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BXSm9bdDs2ZXOY0dzl3OrIOgZEFAeO9XtguFjQjgE68=; b=DVeW8LBRBVZ6oq/+b3v1J0HjVmxdz3feiYGs3qz6ZkGj2QqSxOUljrQHUcebPEKntW 1IUKQtmGzAkScER4/0tNSlwkQSnNiVIRNXux9aBnOMhtfknvp9YIKqgAqisS/lNPqRgY zaKvOBKR9WF0Mosvr0J2CP+ceuAyUu1ISqveUsBYTWJm6lkC6ZvYC74NK1gRAfCaLwGW bdT8PqRAjkXl0FrKzbATneGrLVLSYa3gbb4qXFVJjhKddRMKKEu8yLevbER0vg44Dfu3 wu3vc5Ux5aI+5Yv63w5Tgg5YgTDaxy/ZTb8GSJkDI/uHZP8GEfYlW+M88tkjSWg1KzBY QUJw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si9295257ejb.592.2020.06.15.07.44.48; Mon, 15 Jun 2020 07:45:10 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730598AbgFOOm7 (ORCPT + 99 others); Mon, 15 Jun 2020 10:42:59 -0400 Received: from netrider.rowland.org ([192.131.102.5]:54033 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1730565AbgFOOm6 (ORCPT ); Mon, 15 Jun 2020 10:42:58 -0400 Received: (qmail 18788 invoked by uid 1000); 15 Jun 2020 10:42:57 -0400 Date: Mon, 15 Jun 2020 10:42:57 -0400 From: Alan Stern To: Macpaul Lin Cc: Felipe Balbi , Greg Kroah-Hartman , Matthias Brugger , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jim Lin , Siqi Lin , Mediatek WSD Upstream , Macpaul Lin Subject: Re: [PATCH v2] usb: replace hardcode maximum usb string length by definition Message-ID: <20200615144257.GA18707@rowland.harvard.edu> References: <1591939967-29943-1-git-send-email-macpaul.lin@mediatek.com> <1592201855-8218-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592201855-8218-1-git-send-email-macpaul.lin@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 02:17:35PM +0800, Macpaul Lin wrote: > Replace hardcode maximum usb string length (126 bytes) by definition > "MAX_USB_STRING_LEN". > > Signed-off-by: Macpaul Lin > --- > Changes for v2: > - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. > Thanks for Alan's suggestion. Acked-by: Alan Stern