Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6138169pxv; Thu, 29 Jul 2021 07:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznL96Bw4Q+wpf0iHfD6VdVhCoRumNYkYPnZH2gGQJ4s9g4v0/rsu/bCELnknEkkNKa/9rY X-Received: by 2002:a17:906:95ce:: with SMTP id n14mr4565427ejy.130.1627568611882; Thu, 29 Jul 2021 07:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627568611; cv=none; d=google.com; s=arc-20160816; b=zKyd9dOzCz2EZxrwMcXK77cNlLX1PzJeri4pLNTrNwzxUbSjRQbh+iCbvJexpCZNIF ixcpaQ+W/MvTMztX1CKzySNsvOsyirKuArp6uYNp0HDQXA4It62qBL2+NFGjIkKs3opT ILJNWAt/qUA0cWN9tNd34mvmll5tXXH2lLNfGVHFdNlrQDlCA6QhxWKQ8ujwwPvmnwID ZIXMRucWY70YglpDCEUlREsv4sBot5QKkxpi5jLkgLhloX4Z4iYZQzdeBAhfetA9WgG1 ZpfyIH9rZ0aq4A4/94vjOBadjI2B8R+8xssPR38B2GE7AI3xLfPMNzaP14CzekrD946z Ptsw== 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=F1MJS4je1Oiq7mhlbgvshdM+wBGyXHC/8oJzd/GZ1Bg=; b=dl+nBxDmS8STzim9iDJVXuvZnqHXBpUM+Li0Oqm1qFtlvdyz5IKLKoghzo+s0XjSeY ChGfIUZubYG1t4YA09CaouyapAlbnNTNuTaLGjUGssm/e7EoRyg2wTvhiF5BC1K3Q4TV NtSrL9ki3y91vmLEXVrkoXSPibSIFc/z6RQ3dK2KOKiyguHM25OFwEGXl4xxHyFv1k3K d4P3u3sVuprgM+4uuNP0Lozgf7+G0CWizoBMr9TL/gVUhP5LMtycFWTdzzc23a9WbxEQ lptOHClgMgXE1pAQS9eL1KM577YUCTIs+DNwDf6GZgBRALtSuoHZoeGUsbxIifxEsNqO udCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ow6fkhcP; 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 c8si2797553ede.304.2021.07.29.07.23.08; Thu, 29 Jul 2021 07:23:31 -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=Ow6fkhcP; 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 S229750AbhG2OVF (ORCPT + 99 others); Thu, 29 Jul 2021 10:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbhG2OVC (ORCPT ); Thu, 29 Jul 2021 10:21:02 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F20C0613D5 for ; Thu, 29 Jul 2021 07:20:57 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id m1so10554703pjv.2 for ; Thu, 29 Jul 2021 07:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=F1MJS4je1Oiq7mhlbgvshdM+wBGyXHC/8oJzd/GZ1Bg=; b=Ow6fkhcPEh5V54oLfWWwMO7N3w8hOXvUHnRCEDo6zEciRgrCaJsWFsAcGnHwmh2vzD FPMisuZ3FNXTf1ixYZPueZXd8SlW0Sz5U+WAicNuv3cCxFOuib10hY1RfAbe25NVplGQ cFbNTcFvibLllrPwkX1NyOUGsfubqOt4JDVkl6QEMBEexnkifJfcBERFxqsXLxDQlC6C sWvxUebaqrJx4zyMhNnHramYFQuvyDG0DUp+CZ8TnJsj2WONURIPg4QNHM4xLMgwjz4d aQIxu9xpzTPCVDDZQL0Apsap6Nh+R7+Z0NH4Xj2u0w2G5KRLYVz10F7gqa8OYyYtCME9 Ig2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F1MJS4je1Oiq7mhlbgvshdM+wBGyXHC/8oJzd/GZ1Bg=; b=cTW6uqA7U5SQoJDi92dYGYnNh0A67WrSRvpoATz264ks+BEwrXyzijdoPdScPvfy46 RD+hRQMw281usLa3L1W+AH2a47X+wJfdpb9NNLhP/O9aFjzO8+yxkaxnQ5IqFGE+eZnK xEQkjfZXblNC2vDthM6pxg1wYlU6PoEZgS0v0hM746XyZqoUPAH5DhaOi0XtXKq8A0SG 56hUa8HYJIllwsLMjdk4oxdBmMmZcPrXxCHGyjL01/RTU7yv77ccUIwCqLQwLimGse8j 5p7g8W8t9gInYsURblJ6EbzFNpLIr3mLFYxI/YCSD6K5IJxYkrwWIFzJUcioDMTFm9sk vs3w== X-Gm-Message-State: AOAM530Pz0HEUpZWFODQVaOU/HpAVKVaWUkLY5E2gtZvRVOFjYDtXUwC KidpNP+VXAB3Rhyyd5iZzWs= X-Received: by 2002:a17:902:a9c3:b029:12c:31c7:9b81 with SMTP id b3-20020a170902a9c3b029012c31c79b81mr4901232plr.30.1627568456660; Thu, 29 Jul 2021 07:20:56 -0700 (PDT) Received: from ojas ([122.161.51.5]) by smtp.gmail.com with ESMTPSA id p3sm4091663pgi.20.2021.07.29.07.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 07:20:56 -0700 (PDT) Date: Thu, 29 Jul 2021 19:50:43 +0530 From: Ojaswin Mujoo To: Stefan Wahren Cc: Greg KH , nsaenz@kernel.org, dan.carpenter@oracle.com, phil@raspberrypi.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] staging: vchiq: Set $CONFIG_VCHIQ_CDEV to be enabled by default Message-ID: <20210729142043.GA25192@ojas> References: <70d91b0482e19d7551d3258ea54c970c1b996317.1627495116.git.ojaswin98@gmail.com> <20210728200607.GB17046@ojas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 28, 2021 at 10:21:41PM +0200, Stefan Wahren wrote: > Am 28.07.21 um 22:06 schrieb Ojaswin Mujoo: > > On Wed, Jul 28, 2021 at 08:45:55PM +0200, Greg KH wrote: > >> On Thu, Jul 29, 2021 at 12:07:16AM +0530, Ojaswin Mujoo wrote: > >>> Before this config was defined, the cdev used to be created > >>> unconditionally. When an earlier commit introduced this config, the > >>> default behavior was set to disabled, which might surprise some > >>> unsuspecting users. Hence, make this config default to 'Y' to be more > >>> backward consistent. > >>> > >>> Signed-off-by: Ojaswin Mujoo > >>> --- > >>> drivers/staging/vc04_services/Kconfig | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff --git a/drivers/staging/vc04_services/Kconfig b/drivers/staging/vc04_services/Kconfig > >>> index 63caa6818d37..2b70c37cdd09 100644 > >>> --- a/drivers/staging/vc04_services/Kconfig > >>> +++ b/drivers/staging/vc04_services/Kconfig > >>> @@ -23,6 +23,7 @@ if BCM2835_VCHIQ > >>> > >>> config VCHIQ_CDEV > >>> bool "VCHIQ Character Driver" > >>> + default y > >> > >> default y is only if the machine will not work without this option. > >> Is that the case here? If not, then please do not have this as the > >> default. > > Got it Greg. > > > > From my testing, the Raspberry Pi does seem to boot correctly without > > this although some userspace libraries might not work. > > > > Since the machine itself works, I guess I'll drop this patch. > > The idea is good, but the patch needs improvement :) > > Acceptable solution might be that BCM2835_VCHIQ selects VCHIQ_CDEV. Thanks for the suggestion, Stefan. So on testing with select, it seems like select defines a hard reverse dependency i.e if BCM2835_VCHIQ=y then VCHIQ_CDEV=y and it can't be set to n. Checking the Kconfig launguae doc, I found that we could use "imply" to define weak reverse dependencies, such that BCM2835_VCHIQ=y auto selects VCHIQ_CDEV=y but we can also change it back to n if required. I tested this out and it seems to work fine. I believe we can se imply here as it better suits the use case. Thank you, Ojaswin > > > > > Thank you! > > Ojaswin > >> thanks, > >> > >> greg k-h > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >