From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f66.google.com ([209.85.219.66]) by ewsd; Sat Jun 13 10:18:26 EDT 2020 Received: by mail-qv1-f66.google.com with SMTP id ec10so5741083qvb.5 for <9front@9front.org>; Sat, 13 Jun 2020 07:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5qtgnzE7KkDySRHt7b+zOxXzEiHNbECWne/sFaqJGwU=; b=OfAqrv7Z5Gz4kzup/lNpYyJwFeJY53qvS4Phtx2vcXZy1RQey8fKpGoQ2nfVLgft9F q6O6rtpQuAIgzMJRXDUyegqYYv/sqjRoHpr5KLlC1czLChQfcbTSJcJk0zdTs2sfivKS P3o9P1noRUjR6YUtvYA91zIga2gn4WHbHCns6d8Ntt5sytJg8mM8MdPHePutqkWVfA+X 4TxKdnc/tQiPcvDc8YXrg/w33eZCTXdElov8qA5HsIYJaPUwSvlQoK9DFXWvST0+W+mv nEK+fKsKIH1RyWpNgrbAh3VGtBud8shunqQv9fxiS0Xkp0s32n3pSKnQODZtVjMeMtTw DNeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=5qtgnzE7KkDySRHt7b+zOxXzEiHNbECWne/sFaqJGwU=; b=KBOWw+fadqVxe7lsnshuO4bY/txLHNyJlNN5HiCXBpSlEYjdK4ILOBJ0aO33iLVoz6 lLjBqkO8d/esVnjVUji5XRDb20HPBLzdG8dAJB4c8g9BuvGRsUH4LpsuyqZI/bM6t4w1 gGAQP7IpoWp+Qk3vUQQNlAx60uLcd89ZbroVIgxLSg24wyEmdsY51ekYNd+aOFC4Rp+P wbvsbYmuRemKBpGP+cJE2enjNWQ4Brdmm4sYWXmmRvkz16hWG+cf0ezsA6tcwsD06wz4 54eXte+1f4NYOBwVyoPuI8fUr84Mnh3whJF8IVtJsNaSobszf+WYgojqlV7jnVadEb7r G8NQ== X-Gm-Message-State: AOAM531HUu/4z7E+YLo9mLSBvzC+gKA8X0p3l7A/Hcpz2sLZopCqDMeF FWeApgNf5qYhWkW5/J8KrsHF+jdctsXVwb7Xr7SW72GT X-Google-Smtp-Source: ABdhPJxkHcT5JYh7h6GuhEOMawpqAREFI6N8l4We/HMm9JDFCrAkwfUKeVSdGwI28jbXTG+9RyAFX5cH7inBnMg3EMo= X-Received: by 2002:ad4:4f50:: with SMTP id eu16mr16013353qvb.223.1592057903440; Sat, 13 Jun 2020 07:18:23 -0700 (PDT) MIME-Version: 1.0 References: <7400801DFC95785720AF0E41835DA9C9@felloff.net> In-Reply-To: <7400801DFC95785720AF0E41835DA9C9@felloff.net> From: Eli Cohen Date: Sat, 13 Jun 2020 07:18:12 -0700 Message-ID: Subject: Re: [9front] new nusb/serial driver To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtualized converged SVG shader hardware database hi cinap, I need to work on this driver more still, and look at the openbsd driver closer. I'm not even using the interrupt yet but it seems to work with this device. what I meant was, epintr is found on the first USB interface but epin and epout are on the second USB interface, but I can't just set nifcs = 2 because it's only one serial port. there is one serial port using *two* USB interfaces, one for the (unused) interrupt endpoint, and the next one for in/out - echoline On Sat, Jun 13, 2020 at 7:04 AM wrote: > > what makes you think that? > > the only driver using interrupt endpoints is the prolific driver, and it is > used for getting serial line status for a port. if you have multiple ports, > on different interfaces how are you going to know which port the status > is for? > > prolific driver only supports one iface. the previous code would *NOT* do > multiple calls to findendpoints() because nifc == 1. and it would sysfatal() > if findendpoints() failed.. > > so my assumption is that the interrupt endpoint is indeed per interface. > > does this make sense? > > -- > cinap