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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC600C433F5 for ; Thu, 13 Jan 2022 06:40:12 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1n7tlv-00026S-5R; Thu, 13 Jan 2022 01:39:43 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1n7tlt-00022b-Tl for kernelnewbies@kernelnewbies.org; Thu, 13 Jan 2022 01:39:42 -0500 Received: by mail-wr1-x42f.google.com with SMTP id h10so8310417wrb.1 for ; Wed, 12 Jan 2022 22:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZwQn5sbVfxfSJZ8oRO0nggOkOgfxKrDU9aDpF4cRI04=; b=ZKUu/HHGMvMjNSjJ9tFuBcvRcfNhjO5x1MfbJEu2uipRW8jp57lvgxb9ujXg4N5S8k QgxEHhXeSFCRgdifjyYI8WCN2LlxBerVrJT3Mt5FPQ8tD55ymp6UX9vRHmBB+VWFsDYY gjZSZYgBcnMn0aYWUV9kEQw1gkxUNvgp8z+xlu1PQ9hpS4aBVHwKvAOqZZvi54LMadJN qZc4gq6qmlk70b/0VGtsTl95xoT7dgXGAbsqD58DLKTk3dOTwWKuqM2azUhZ+jQlkHQN KpwSgTSqv45AA0Lm6ISlSG5iIedwIziVGes4vOem+8AkNHnGT8UAszv4vBQrqI7iElqy N4jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZwQn5sbVfxfSJZ8oRO0nggOkOgfxKrDU9aDpF4cRI04=; b=etQIQbeCu9rXhwIhOsMkv2FYWRb/YNFTxyqHx/KdLd6ZrflzL8aQ7g7fM28yIF6GA3 u642tC4sRtvaEEkLoD4YOTGT9N/Dc9bb2JuO9fVwS2J6kmNcYuiUP4Cf/U7p0xhUG9zk huZr3VI2zHNB4SHie46i6lPn1+PoE0Dd4minmhK1le9aNA+FlUf0o7kSx6AhJc9h8GLy ZpLuGqJ8y09nEwjsAZXjrWFK+ExOGfkgLQKtVYYrEDaTkIa52pHJe2hoZqJ+WNxOy/fH iaJybSLgESBG0FaBc4xFjd3TALj9EPyqvkX/Hs8XtZ4Mro9dKKCh1moC+lZ50JGLyzMI QTQw== X-Gm-Message-State: AOAM532k6/naRzVwrNQHYGR8wkNfkZxJqTZbml+Ex/Hba3Mzvv1yi3KL h7ZTlPC7+K2rVjp7lehZxvvdR5gebl8= X-Google-Smtp-Source: ABdhPJwjL3Al1tXjO5bxFbYp3qg9xCS+9zUtNXdpIc/m3RQ1MJUNjK1qwIWDDIgPrVNcauX9+cn5BA== X-Received: by 2002:a05:6000:1d91:: with SMTP id bk17mr2561026wrb.684.1642055979817; Wed, 12 Jan 2022 22:39:39 -0800 (PST) Received: from ?IPv6:2003:c7:8f4e:611:2df2:dd36:4667:dad8? (p200300c78f4e06112df2dd364667dad8.dip0.t-ipconnect.de. [2003:c7:8f4e:611:2df2:dd36:4667:dad8]) by smtp.gmail.com with ESMTPSA id b14sm1943115wri.112.2022.01.12.22.39.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jan 2022 22:39:39 -0800 (PST) Subject: Re: Where to find the information how to write a state of the art USB driver? To: Greg KH References: <28e1c700-da54-8793-8c60-4ec3697fe35d@gmail.com> From: Philipp Hortmann Message-ID: Date: Thu, 13 Jan 2022 07:39:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org On 1/12/22 10:54 AM, Greg KH wrote: > That driver tried to be an example for an unknown device, doing multiple > different things that no single driver/device would probably ever need. > Also it can almost always just be replaced with a simple userspace > program using libusb, as I bet your driver could be replaced with as > well, right? Yes it can be replaced by a userspace program but even this is not required. For the USB LCD a userspace program is available from vendor. For the USB to serial Adapter the driver exists in the kernel ch341.c. It appears as a ttyUSB0 device. I think what happens to very custom drivers that could be userspace programs can be seen in the file /drivers/usb/misc/usblcd.c - It is written in 2005 and is only supporting one device from one vendor. - I cannot find/buy a suitable device. - I have tried two times to contact the author of the driver but: The response from the remote server was: 550 5.1.1 : Recipient address rejected: User unknown - The idVendor = 0x10D2 does also not help because RayComposer - R. Adams does not response and does not seam to offer such products. To me it is unused code but how to verify? When it is unused what does the kernel do with it? Putting it to the staging area? Thanks for your time. Bye Philipp _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies