Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2270728pxb; Sat, 19 Feb 2022 06:52:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzk173+Keg2R6FBRug7iu2HEwLZOaG+glqEy8SBmU8a5azq45l+9YzSMyGlBjv/B5xByiW2 X-Received: by 2002:a05:6402:528e:b0:407:80ff:6eed with SMTP id en14-20020a056402528e00b0040780ff6eedmr13142701edb.165.1645282330609; Sat, 19 Feb 2022 06:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645282330; cv=none; d=google.com; s=arc-20160816; b=OU1WXxSAEsqeDfmYfc40zuY+tK/+oHKyByuIfQEsxTdCjDb7ayBfNl5qSIDC0LV0ks 5CI9jHNWKCyRSP4SEzm6spdXj+dfOnb4zfDN7EKuUhvBTrzrB3tPzYwfHo9nSHCNgMDa h6c+8U+qh+X4jegbGUt1In7CnRQYGjfIT9eEi+901O1SJN6+Y4yBs5UaXToaDpBrNFMQ 7HxZPqPA+jtI0e5lG7uGIOYHFMVPiefjw691mgfr1qf7a6fBcBvgJio5HLu3e8armZbN qNjm9hwX0+YIZVO+lBVqVcko8MKx3ubjsnYXVEZKrJ//12D6k1ZTDUte2BMjSHDpN92t tsNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zy3lpljUhgGFQa7Trxl9AjoN2QHLcDwI9zp6DyfC73w=; b=jgfj9fWHxt6dowO/4pOu+OPnW3n5k7I2iLrRvBrrrgKP1Kh6gWtalDKXZNm7pCUP47 LjFv9C6F6gjemFnZenMncxdbSYIzi//v7AFbm0U2YC5oaSbpz1Nf35uLOO+Q2oQfT9SE pWW/RCfTA0+dN+YkCS/OuFNPnBNY1wFZ+DmTr69vZ5qQ3L6gqG+17JMVb62cY1rv8QFI i7/mnfapJFdX4Lkp62s6ZIKYxWQay4czoUO4bvQ5OQxQMjVS6tReD1fDYhRZplVjPaqM Wtc+BOf5RodygYevBDVxUbxZngiG26JwN+Yn5v/nNg6BuMM83IwbetQAVk75TcVPW9p5 mo9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WIupzCRz; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17si9643992edc.591.2022.02.19.06.51.45; Sat, 19 Feb 2022 06:52:10 -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=@linuxfoundation.org header.s=korg header.b=WIupzCRz; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbiBSHdm (ORCPT + 99 others); Sat, 19 Feb 2022 02:33:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234553AbiBSHdk (ORCPT ); Sat, 19 Feb 2022 02:33:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55BC48311 for ; Fri, 18 Feb 2022 23:33:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4CB55B8006F for ; Sat, 19 Feb 2022 07:33:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A8DC340EF; Sat, 19 Feb 2022 07:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645255998; bh=614FNkoWHrfwRnbpfM3As7ed3TVJxAFokHvmZjVr8IU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WIupzCRzvfCi47ZKZBcMIFmdWd7BCtN0ts570dK8MSngQkewmmnTfVAcEUrxy9fkV M6M6H4X+KhEX/82l+GrvKXmJeoJl0DLMbrATlvh0qSxpjsmqoyNjGuAA424dsS/DCC eGZ/YH/FpCYS9xXR1YvKFsgjPp/CO/gBB1HhV4+8= Date: Sat, 19 Feb 2022 08:33:11 +0100 From: Greg Kroah-Hartman To: Desmond Yan Cc: Scott Branden , Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] misc: bcm-vk: add kconfig for supporting viper chip Message-ID: References: <20220218200811.17136-1-desmond.yan@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218200811.17136-1-desmond.yan@broadcom.com> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 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