Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9994688rwd; Wed, 21 Jun 2023 14:55:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eQHgxohXr4hKhSeetJBq2R9U91qKb4WhqKUbsPTik2abwKQz12XbU3SHFFX7cjIDkBg1b X-Received: by 2002:a05:6a20:8424:b0:103:b436:aef7 with SMTP id c36-20020a056a20842400b00103b436aef7mr30992847pzd.16.1687384551930; Wed, 21 Jun 2023 14:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687384551; cv=none; d=google.com; s=arc-20160816; b=owBv/BSatv+TXSPqfer4v9im8Aq7Wi/wCFg0zb8mynyIPq8hW30MnQXe5C8GbFDB6c 5jYQ6yvnVcLbtx/AA6QJFh73G09wHnUUeFs7BK22GoauepETUsR1e2YnNOI4qA+KfvT2 W1i2XEoqZPBbc/1gEKEGcfUT3/IdU99KZDnknsDb2VpbMqdIQ3AVAWniGdB4Ew7dEQWi m24nbj/YRJo5QuK8X/OFN7coZSkUAUTHfVuvGxi4xy6yDehR3sOdfBawBW8fcR7cNmav CjbGtxe4RYqBYa58FE9p0xvTkD/kU8Br5f3o3G6zhorCVjO1vt76e5d+k1Aw4wUzFJyh pkrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0LvSQUp8WvXtAGQ4Ez7xlJWh7l4nI8L2oKtIOhjswdU=; b=UxjuetZyclglpIrUhzs5eDflLmx38JtpSdDwo87L8bdvc9bjbupH8ImPsARsRfhdok Z6osomMMlUjoCFC7Md3Bmn5SuR3whQInQAeiAj7oiabnNdDNszou8qOC+Sq0YIX2dcnL rvO+x1UKgxXFo+x6m0YW/YGzHV3Yn0ZN0OEAs3qYlfQg2RPnpWdrShhPcmEbKlW2Pip1 +bdXs7V667kvaPdeKua2UzUAdN66emEZsEYIYvXsNtGFOt35U7RYE7yAIybJLhcSB1cC RB6OaZhTl6Dc5BqtOKVQK7WdjRfaD4ZSh6X5w7FDIwsiTOQoejipuCUkKT6EA/STAowW +Suw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1A8p1Hhm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a638c43000000b00536b4c4b695si4657217pgn.136.2023.06.21.14.55.38; Wed, 21 Jun 2023 14:55:50 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=1A8p1Hhm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230122AbjFUVTU (ORCPT + 99 others); Wed, 21 Jun 2023 17:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjFUVTT (ORCPT ); Wed, 21 Jun 2023 17:19:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82416197; Wed, 21 Jun 2023 14:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=0LvSQUp8WvXtAGQ4Ez7xlJWh7l4nI8L2oKtIOhjswdU=; b=1A8p1HhmdadYqjMQnx+zVWyu5+ Ladz/59FpJjBs3OqTVrvo4cgy2X0TAsG1qf9oCRCfJ9HsvgKIH0tgtH90GUWaUNi/H0fUCxIxBEUl 8qlTGD1mUcbgEI+vEtmoOvrBdB/l7JHljqlh0FsNd0ej7hlWvhl+pCWfjlzLCvy4Ap5xfqitK/pQN WIxrjcshc+HPms5Jx+J/7ihZeW4OWL5aAuRac0aOZyRFTB8aVe4M85XJpJlh1ijiszehnHn1m/5+s i7jRvnuMvPc9lDT4L6axQ3BIc8fjOFBSr06RW1CgobbtIs7FMp/un9dUYKicv3kqItFyjZGlnR8kE zkFsLRDA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qC5ER-00FllS-36; Wed, 21 Jun 2023 21:19:16 +0000 Message-ID: Date: Wed, 21 Jun 2023 14:19:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] s390/net: lcs: use IS_ENABLED() for kconfig detection Content-Language: en-US To: Simon Horman Cc: linux-kernel@vger.kernel.org, Alexandra Winter , Wenjia Zhang , linux-s390@vger.kernel.org, netdev@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle References: <20230615222152.13250-1-rdunlap@infradead.org> <66fd6106-16a5-d61a-4202-02ff99b84f76@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 6/21/23 12:37, Simon Horman wrote: > On Wed, Jun 21, 2023 at 11:08:05AM -0700, Randy Dunlap wrote: >> Hi Simon, >> >>> I did have better luck with this. >>> >>> diff --git a/drivers/s390/net/Kconfig b/drivers/s390/net/Kconfig >>> index 9c67b97faba2..303220251495 100644 >>> --- a/drivers/s390/net/Kconfig >>> +++ b/drivers/s390/net/Kconfig >>> @@ -6,6 +6,7 @@ config LCS >>> def_tristate m >>> prompt "Lan Channel Station Interface" >>> depends on CCW && NETDEVICES && (ETHERNET || FDDI) >>> + depends on FDDI=y || FDDI=n >>> help >>> Select this option if you want to use LCS networking on IBM System z. >>> This device driver supports FDDI (IEEE 802.7) and Ethernet. >>> >>> I am assuming that LCS=m and FDDI=m can't work at runtime >>> because there is no guarantee that FDDI is loaded before LCS. >>> But I could well be wrong here. >> >> There's probably some way to make that work, but I don't know. >> >> I think that your patch is acceptable. >> I would prefer to also add to the help text that if FDDI is used, >> it must be builtin (=y). > > Thanks Randy, > > Feel free to take the snippet above and work it into a proper patch. > Else I can take a shot at it. > OK, I'll send that. Thanks. -- ~Randy