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=-18.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 13739C07E97 for ; Sat, 3 Jul 2021 19:24:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 634866191C for ; Sat, 3 Jul 2021 19:24:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 634866191C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=stuge.se Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E15D189E47; Sat, 3 Jul 2021 19:24:53 +0000 (UTC) Received: from foo.stuge.se (foo.stuge.se [212.116.89.98]) by gabe.freedesktop.org (Postfix) with ESMTPS id D15F789E47 for ; Sat, 3 Jul 2021 19:24:52 +0000 (UTC) Received: (qmail 26299 invoked by uid 1000); 3 Jul 2021 19:24:48 -0000 Message-ID: <20210703192448.26298.qmail@stuge.se> Date: Sat, 3 Jul 2021 19:24:48 +0000 From: Peter Stuge To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Subject: Re: [PATCH 1/2] drm/gud: Add Raspberry Pi Pico ID References: <20210703141321.35494-1-noralf@tronnes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210703141321.35494-1-noralf@tronnes.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Noralf, Noralf Trønnes wrote: > Add VID/PID for the Raspberry Pi Pico implementation. > Source: https://github.com/notro/gud-pico > > +++ b/drivers/gpu/drm/gud/gud_drv.c > @@ -660,6 +660,7 @@ static int gud_resume(struct usb_interface *intf) > > static const struct usb_device_id gud_id_table[] = { > { USB_DEVICE_INTERFACE_CLASS(0x1d50, 0x614d, USB_CLASS_VENDOR_SPEC) }, > + { USB_DEVICE_INTERFACE_CLASS(0x16d0, 0x10a9, USB_CLASS_VENDOR_SPEC) }, > { } > }; A VID/PID isn't neccessarily tied to one implementation; as long as an implementation is in fact compatible with the driver I consider it okay to reuse a VID/PID, and the 0x1d50 conditions are met by gud-pico too. That said, there's no harm in adding another id. :) Reviewed-by: Peter Stuge //Peter