From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9616 invoked from network); 30 Jun 2022 02:00:04 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 30 Jun 2022 02:00:04 -0000 Received: from oneirism.org ([149.248.45.90]) by 9front; Wed Jun 29 21:58:22 -0400 2022 Message-ID: <7D988048F85DBE9613671D3029F9D7CB@oneirism.org> Date: Wed, 29 Jun 2022 18:58:01 -0700 From: akw@oneirism.org To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: secure cloud singleton table Subject: [9front] [PATCH] nusb/ptp: increase payload Reply-To: 9front@9front.org Precedence: bulk A silly little patch, but some ptp devices (like the camera I own) use USB3 endpoints and subsequently require the data size of the payload to be 1024(-12 for metadata). This is reflected in libgphoto2's current ptp driver. diff e6d31c1715cc50bd3d9a0301a41647295f739071 uncommitted --- a/sys/src/cmd/nusb/ptp/ptp.c +++ b/sys/src/cmd/nusb/ptp/ptp.c @@ -45,7 +45,7 @@ uchar type[2]; uchar code[2]; uchar transid[4]; - uchar d[500]; + uchar d[1012]; }; struct Node