9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] [PATCH] nusb/ptp: increase payload
Date: Thu, 30 Jun 2022 00:54:39 -0400	[thread overview]
Message-ID: <E33A6AC3497FC0B2737BACA38DED0D91@eigenstate.org> (raw)
In-Reply-To: <7D988048F85DBE9613671D3029F9D7CB@oneirism.org>

Quoth akw@oneirism.org:
> 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

Looks good, committed.


      reply	other threads:[~2022-06-30  4:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30  1:58 akw
2022-06-30  4:54 ` ori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E33A6AC3497FC0B2737BACA38DED0D91@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).