From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32397C46467 for ; Tue, 10 Jan 2023 16:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjAJQJT (ORCPT ); Tue, 10 Jan 2023 11:09:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjAJQJI (ORCPT ); Tue, 10 Jan 2023 11:09:08 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 2A0225A88D for ; Tue, 10 Jan 2023 08:09:06 -0800 (PST) Received: (qmail 677922 invoked by uid 1000); 10 Jan 2023 11:09:05 -0500 Date: Tue, 10 Jan 2023 11:09:05 -0500 From: Alan Stern To: Andrzej Pietrasiewicz Cc: =?iso-8859-1?Q?J=F3_=C1gila?= Bitsch , Greg KH , Christophe JAILLET , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v3] usb: gadget: add WebUSB landing page support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, Jan 10, 2023 at 02:28:55PM +0100, Andrzej Pietrasiewicz wrote: > Hi Jó, > > W dniu 10.01.2023 o 00:19, Jó Ágila Bitsch pisze: > > > > + buf[1] = /* WEBUSB_URL*/ 3; > > > > > > Why not #define WEBUSB_URL? > > > > in a previous iteration, I had that exact #define in place, right > > above. However, another reviewer found it pointless. Maybe I should > > instead put the define into include/uapi/linux/usb/ch9.h > > > > Hmm. ch9.h had been called ch9.h for a reason. It corresponded to Chapter 9 of > the USB spec. Adding to it something that by design is outside the spec might > not be what we want. But I don't know. It wouldn't hurt to create a new file: include/uapi/linux/usb/webusb.h. Alan Stern