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 X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30F8FC4338F for ; Sat, 24 Jul 2021 14:22:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 101A860EAF for ; Sat, 24 Jul 2021 14:22:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbhGXNlu (ORCPT ); Sat, 24 Jul 2021 09:41:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhGXNlt (ORCPT ); Sat, 24 Jul 2021 09:41:49 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF270C061575 for ; Sat, 24 Jul 2021 07:22:20 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id a80-20020a1c98530000b0290245467f26a4so3389229wme.0 for ; Sat, 24 Jul 2021 07:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to; bh=OidAl/do55yUvpdpYmXLHY2+V3Sv+YT3yBTaUkxEFC8=; b=gFfQYYAJ6yTRr25GAdy/lLRAgmvZK4QwxtQ6LMtq05JWpWTrWcQxOSY1tRDFBpAHbJ GbDjQmX/SNMhApGKWT7LXSwHuKrDQK0dod1vXOBkZPWF79U2XVc13+6JdTc7OW31t7QL L9tYyho9EjVodkQxRhU7CgM+natjKJ2BeTkkLGbe59nh6q0WxCXeCPts8c3UcVpLCgkh MZ8nLg3WcXaIElg1O/H+gDEl7gkFT4esdEVxWSdw6DCBewY5iSxE8nuhXXoSPTgFxcWz y+lPEeqP8pOoK3EqWpq6GsQ0rvYymTGtFRa6YF6coreofUxdDpF1762P3IjhAz2tOEdR sBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to; bh=OidAl/do55yUvpdpYmXLHY2+V3Sv+YT3yBTaUkxEFC8=; b=Hx2oyWpRPE0k5Vll/SbSRuewkdzzj696ZZvlSNHJFLLXlYb0hM5CnA0tAnD/OVYgGN c6THCvp5II2eTG59kmPf/tYOaT+0vAi1czF99MGGehbD7UNtvUWplLp9l/Mq4/aUqoBZ Av6pV+LqAM6Bwc3pv4wHakuT8KCAmxTk015WRBm1LghNPmh+0VQ1NCep1naeLCpvNrfH TBXCeAd2nL1Izlnl8x4cN0l6TrB5C5LXZBOdHaTFHNLNBktPaliLhPkvorZeJJDlubHe JVofKlGAtb/2M/GzKLw6y1WPocXQ4kVdU2dA+nLuFjKEijaEHROU+ElPNSz/VQZKunU6 1niQ== X-Gm-Message-State: AOAM53134//zn+6tHAZ8A2DeLebCxCev6ZUUxaIFXqwxkfGdVjunvgeb u7k1a2etxICHHKLlUl21UTY= X-Google-Smtp-Source: ABdhPJxvpu3zcNgY1ATbyrkS+0VM7dPLJ6tyK8LOF5Qxt+ReD6fS8qb6P54l9S9l9pcdLZ92j+y+qw== X-Received: by 2002:a7b:c24e:: with SMTP id b14mr7402502wmj.74.1627136539499; Sat, 24 Jul 2021 07:22:19 -0700 (PDT) Received: from pevik (gw.ms-free.net. [95.85.240.250]) by smtp.gmail.com with ESMTPSA id w16sm22498361wru.58.2021.07.24.07.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 07:22:18 -0700 (PDT) Date: Sat, 24 Jul 2021 16:22:16 +0200 From: Petr Vorel To: Greg KH Cc: linux-usb@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-sunxi@googlegroups.com Subject: Re: Mainlining Linux Sunxi SoC AW USB Message-ID: Reply-To: Petr Vorel References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi Greg, > On Sat, Jul 24, 2021 at 03:41:42PM +0200, Petr Vorel wrote: > > > Why is this even a driver at all, it looks like you can write a small > > > userspace program using libusb to do everything it does, right? What > > > exactly is this driver needed for? > > I'm sorry for not providing more info at the beginning. This is a driver for > > host computer (i.e. developers laptop) used by LiveSuit tool [2] to flash Images > > to the NAND of Allwinner devices. LiveSuit itself [3] is unfortunately provided > > only in binary form. The only open source code with GPL v2 license is awusb > > driver. Thus I thought I could ease my life with upstreaming at least the > > kernel driver. But maybe it's not a good idea. I'm using LiveSuit for flashing > > Allwinner A31, but it requires quite old distro due libqtgui4. Maybe sunxi folks > > use something newer nowadays, but I haven't found anything in their wiki. > Ah, that's not going to be good then. Really, this doesn't seem to need > to be a driver at all, and the ioctls are really strange so we would > need to change them anyway before it could be merged. But with no > access to userspace code, that will be quite difficult, so I would push > back on allwinner and have them work on resolving this. Understand, it makes sense. Thanks for your time! @Sunxi community: am I missing something? Using LiveSuit with old distro chroot and Xephyr with out-of-tree module isn't fun :(. Kind regards, Petr > thanks, > greg k-h