Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3330969pxf; Mon, 22 Mar 2021 04:05:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNoh87jxQrtaGrRL5crj6UYkZBimHE+As9nZwBqTxSU/uL+oB5fMhtnK/hq4PQbtr5wWJ2 X-Received: by 2002:a17:907:3e8a:: with SMTP id hs10mr18924789ejc.267.1616411100649; Mon, 22 Mar 2021 04:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616411100; cv=none; d=google.com; s=arc-20160816; b=PpDsqmiIcvO2YGApV8/m+RkTxRqffNE4SSTRFyBQyTD9yktPtDblxA5ExFuFoX1sWY IMXirhNlUlJKeV5OgW8hqlLJG2p1SJgzSkuawpZmHEwpbZBSCI2GsR28FZymNN0cHIko ZF3rAyNeBmBk+zMO7IffNRWJ4MvU7TL+Vzwnlc5pFgpT/Nx8qqf5kjrMCt9DIxQTSsTY 5HTi0UmH1yWc4S3Yp6u5bDcFN9YnXX6oPfK8wrJXqyC4KVYv8x0Onj3+rN7YJNfi49tW iUbHBMZSHeMQiQIDzabRJLUY2MdHdSRA6Fxv0u30lF/K00EBetq5YByTNccBaS501xs+ QbZg== 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:references :subject:cc:to:mime-version:user-agent:from:date:message-id :dkim-signature; bh=rn+4zXp8k+v1kOYEDeZIw1a495X4bZmAUx7vNTbAlGM=; b=NMkW2OEFeny+NLS1U01706cp5AzsGlNClmZs64MjclfVDZ++dWqzkU7ZlMvJVWkvqN Y/bD1jEA68xfIJBSelHvq0Xo1lTF6h4fhVX2LUmJ1Xvezz10y6RWxY3TYEknlXDuLK7K sXhRAZvfIiEKNsqiUw1qPcXcSVVTkdUE/mLbX/lbcI8gJByoSz9jKkA5PtR4zsdfOJjg 1wAYrYC3SaOCUbGW5oSUutM79tQI6R/J9A7Vh7GWenOsNrf3dLTNbHu2ultXBfv9pGqH 6LDynkXTxbOqrjgx5+y9MWPPIcIML7aT1Fl/nFNLMTwfLAaWJEEvXoyNClP6KqAJlypd 4Oyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rSpCXPhE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si10402021edc.356.2021.03.22.04.04.38; Mon, 22 Mar 2021 04:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rSpCXPhE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230478AbhCVLDc (ORCPT + 99 others); Mon, 22 Mar 2021 07:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbhCVLCz (ORCPT ); Mon, 22 Mar 2021 07:02:55 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25220C061574; Mon, 22 Mar 2021 04:02:54 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id x21so18743560eds.4; Mon, 22 Mar 2021 04:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=rn+4zXp8k+v1kOYEDeZIw1a495X4bZmAUx7vNTbAlGM=; b=rSpCXPhEr8x4lIlJrqDkprRWJnzBpI2PMU2yHmmUJb82VSfsUSXzA8akPPAj2OpHCB 4zQDtVFYe90aPu0uMRb6LO5+YEAyoooHEB1FUVRcxsWCiP89jGUlOVociuMRsHb+omNu 9MLIs5KkaVoFJtY/bcmiZygMG+vuPHjPGdRjBmzE1CmHB4npxn5mXShRz4FIsUxuypQ0 XOsx/QptYo0fb1OQX6rsE9P9YGgmoJddZKltXzXX2N2SfkzsuHiaYCyrXy3h00atc01W NjBKd6hfWplpTDAgjZLBLna/YTUkomoZkopIfwGIYQ+QUhLTWlTn6HR97QPUXulJOqDQ thig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=rn+4zXp8k+v1kOYEDeZIw1a495X4bZmAUx7vNTbAlGM=; b=UQB3K8YIt+hkpJXiq3xxEKHQhBWcJxCQQi3uCb7rtIfMldtiUV/c70driGA+MS3wPL 5lfp3bHLt5P24VgLuoXptGbnuvlO9SmZR9xyag9P5Z1k78uFKf9eMdu7wR+m06M4lAgZ q+NnPHXUlOrhUUK8lNojzua3dBreeR4QjkKLmiCXI2ru0nV56iXzyyJkw92H/K49Tt0Q Bta+t2MVvCN/ATdgTHsGlwBwN+SC0i5qNKfyF7Rw8UuK2Sq62wFTe2IqFKFYx9uObfX/ j5BXT2XdDFszxXVcRzgZwpwCzg5gBRiPRnhcsVoMyeFsf7nSh1V/kyKHmLcARjD/zIui Z6DQ== X-Gm-Message-State: AOAM5336veixlo7f2vPrpyvYAhNQgyL+mpYzySp4258Nmfy141Q+yKCN Zuv0Zo3URF9z+d+axwrD/QU= X-Received: by 2002:a05:6402:5252:: with SMTP id t18mr25586178edd.258.1616410972952; Mon, 22 Mar 2021 04:02:52 -0700 (PDT) Received: from [93.173.65.134] (93-173-65-134.bb.netvision.net.il. [93.173.65.134]) by smtp.gmail.com with ESMTPSA id 90sm11797082edr.69.2021.03.22.04.02.51 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 22 Mar 2021 04:02:52 -0700 (PDT) Message-ID: <6058792C.90801@gmail.com> Date: Mon, 22 Mar 2021 13:02:04 +0200 From: Eli Billauer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 MIME-Version: 1.0 To: Greg KH CC: arnd@arndb.de, devel@driverdev.osuosl.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Subject: Re: [PATCH v4 1/2] char: xillybus: Move class-related functions to new xillybus_class.c References: <20210311095033.20956-1-eli.billauer@gmail.com> <20210311095033.20956-2-eli.billauer@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/03/21 14:24, Greg KH wrote: >> +config XILLYBUS_CLASS >> > + tristate >> > + >> > config XILLYBUS >> > tristate "Xillybus generic FPGA interface" >> > depends on PCI || OF >> > select CRC32 >> > + select XILLYBUS_CLASS >> > depends on, do not select. > > XILLYBUS and XILLYBUS_PCIE are currently enabled as M in several Linux distributions. Making them depend on, rather than select XILLYBUS_CLASS is likely to disable the driver in those distributions. With "select", "make oldconfig" sets XILLYBUS_CLASS to the correct value smoothly and silently. Besides, isn't this the intended use case for "select"? A config symbol that doesn't depend on anything else, and solves a technical need to compile Y if X is enabled? Or is there a way to use "depends on" without this problem? Regards, Eli