Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp188910pxm; Tue, 22 Feb 2022 08:41:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAfTMKw2Dq6xrHUn/c7VdjlCbzjwssm9CwWjME9Al9ru4WOIlwia7VM4mahn8TVlG7efyh X-Received: by 2002:a17:902:da88:b0:14b:550b:4caa with SMTP id j8-20020a170902da8800b0014b550b4caamr23350097plx.111.1645548063955; Tue, 22 Feb 2022 08:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645548063; cv=none; d=google.com; s=arc-20160816; b=UCvfbINdCvdIfIu5u0NZnmHFkUxXrqDOjuYVziuf6+XQA2FYZxNwapu7kR9hat9ekN XcokZPuqaEITJztDsAqtHFT6YDgaRGkMQd9JytAboHcC0qucHpKr/LqSucsOLC5wcEu9 M9i68wMSWCYTA4iCFC1OZprJZw5Fy7cTtvZ8dJ7sNsCnv91IR2iEeFY0I+EmlPyX5pUY eJBqUvJ3gayEsZUx+IMM1gT+JQa13BWj/0GB9YDUeoql7GetcO4rQ8amLMfEJGfadGzE i9YgPwIDGasYQaf2R5YLUUsrW9jMxrqvlJ4HFjbFNaytMdJKzPFQZKRpxikWpF7rpDoU sEYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mdZz965AiNgu7XYs/4JM/gAPu6cnfP8S+NyKdfSJamA=; b=UHEesrpWx3q6TFu9Ja9Tm6DYL+xdEMd+1U0AnfdAuh2gqVJNyLuuX8mvPWedGE9TL2 02XssLhwQu6ZoavaVesVreIahV3N5idCogd2S5eZwfPV+E7Uldg7pRWvHovEYpD3O2bY x/m0PZcbr8aUtNKBfNyhzevS8wvbgzkMw3zr1qBrTZnrhr9iEecXMcJypDx7XOXxkD/v G698+SFDhUJ7sRkD77TXJjA/ZySwmETM1MORsQmG5W3zdjk3rF8iQxUJTjpw1HiW5SQD ExSjVFLqjOyXYFLYEravQ8cye7tFrPwbu1bPzKEs2gn0FH4siRaFeGQY2V1x0KGZtI9L sSaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=RvmmEc32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6si34777843plr.396.2022.02.22.08.40.07; Tue, 22 Feb 2022 08:41:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=RvmmEc32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232345AbiBVPlp (ORCPT + 99 others); Tue, 22 Feb 2022 10:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbiBVPln (ORCPT ); Tue, 22 Feb 2022 10:41:43 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E1E616306A for ; Tue, 22 Feb 2022 07:41:16 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id j8-20020a056830014800b005ad00ef6d5dso9940092otp.0 for ; Tue, 22 Feb 2022 07:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mdZz965AiNgu7XYs/4JM/gAPu6cnfP8S+NyKdfSJamA=; b=RvmmEc32iSHPZu9eb8X2iYgT85hR+2hF5evOwHAo/fKqZntjJCV4DNKhUcui4nWaCu fRo0Cn2wefDFuaKSP2QAJa4yNNiKO+v+qqRJ7FWbhWiD8dpZWBGgUu2cQgggNcI+/fQL vCGwrwtSMtEaPWFO8jDHpsJNmlutyVL2tzV0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mdZz965AiNgu7XYs/4JM/gAPu6cnfP8S+NyKdfSJamA=; b=c/SpEeIVztcxFfFe50lkhGTZMIE2ei+ukXAfXtzGaHyFeXWpP1TfcUTdXWbN375goH VHmIF35ihRF1vc/astB5tS4hO9S/g5ARehhBAswMuT1PJh8bZiGXA8dvgrHXAGKee2jn Rjq+EDCKmErlKCj2Zx6eD0vvLOyMN9YzHsqJzA/N1/SkLddU2tZOFPbPBuBNYU36JtcC ZpjpKj89Js1vyl+ZDTiRbXW+JKPJCy8i/p5/cm9SAgpCRmgZBo7qASYaKdUQJXMWYlcE su+O5Svc45L+4UADJ4EkR7JkB3uZfSHhTRmGD2Z5W3QhH++JSckI31pAiUPLspZSDaU/ /Xmw== X-Gm-Message-State: AOAM531d0naex9ArNxADUVresx0e7HzsuIm2jYu//8yQZ+WrBYCJAmny 2iJ0pHmWYJxFBJ6ZkZPSQ11TmmGJmGpLBVtSM7HKKA== X-Received: by 2002:a05:6830:1687:b0:5ad:4b8f:a3bf with SMTP id k7-20020a056830168700b005ad4b8fa3bfmr6273162otr.365.1645544475690; Tue, 22 Feb 2022 07:41:15 -0800 (PST) MIME-Version: 1.0 References: <20220218200811.17136-1-desmond.yan@broadcom.com> In-Reply-To: From: "Desmond Yan (APD)" Date: Tue, 22 Feb 2022 07:41:04 -0800 Message-ID: Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip To: Greg Kroah-Hartman Cc: Scott Branden , Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000f53b2505d89d2dea" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000f53b2505d89d2dea Content-Type: text/plain; charset="UTF-8" Greg, This is to allow the customer to use their own driver, by default, which is their preferred option. thx Des On Fri, Feb 18, 2022 at 11:33 PM Greg Kroah-Hartman wrote: > > On Fri, Feb 18, 2022 at 12:08:11PM -0800, Desmond Yan wrote: > > Add kconfig for enabling bcm-vk driver to support the viper chip. > > Default is off and only explicitly configured that the viper chip > > would be discovered by the driver and loaded for usage. > > > > Tested-by: Desmond Yan > > Signed-off-by: Desmond Yan > > --- > > drivers/misc/bcm-vk/Kconfig | 10 ++++++++++ > > drivers/misc/bcm-vk/bcm_vk_dev.c | 2 ++ > > 2 files changed, 12 insertions(+) > > > > diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig > > index 68a972772b99..43910a378163 100644 > > --- a/drivers/misc/bcm-vk/Kconfig > > +++ b/drivers/misc/bcm-vk/Kconfig > > @@ -16,6 +16,16 @@ config BCM_VK > > > > If unsure, say N. > > > > +config BCM_VK_VIPER > > + bool "VK driver for VIPER" > > + depends on BCM_VK > > + help > > + Turn on to enable using the vk driver for the viper variant. > > + Used for development environments where viper uses VK driver > > + and VK firmware rather than an alternate firmware and driver. > > + > > + If unsure, say N. > > + > > config BCM_VK_TTY > > bool "Enable tty ports on a Broadcom VK Accelerator device" > > depends on TTY > > diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c > > index ad639ee85b2a..41dbfa4fa4a5 100644 > > --- a/drivers/misc/bcm-vk/bcm_vk_dev.c > > +++ b/drivers/misc/bcm-vk/bcm_vk_dev.c > > @@ -1633,7 +1633,9 @@ static void bcm_vk_shutdown(struct pci_dev *pdev) > > > > static const struct pci_device_id bcm_vk_ids[] = { > > { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VALKYRIE), }, > > +#if defined(CONFIG_BCM_VK_VIPER) > > { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_VIPER), }, > > +#endif > > Why do you need a new config option just to add a new device id? Why > would you ever NOT want this option enabled as there is no other driver > for this hardware? > > thanks, > > greg k-h --000000000000f53b2505d89d2dea Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQagYJKoZIhvcNAQcCoIIQWzCCEFcCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3BMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQ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