Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2669958rdh; Mon, 30 Oct 2023 04:31:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGS35j1XMcE8oufG5HMM7QoqaNELRSNLUrl5xSZvxKuwPNzKJYk7VMHN5aAuNt8GfssUDm X-Received: by 2002:a05:6a21:71cb:b0:163:4288:1c3d with SMTP id ay11-20020a056a2171cb00b0016342881c3dmr7703710pzc.43.1698665474424; Mon, 30 Oct 2023 04:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698665474; cv=none; d=google.com; s=arc-20160816; b=sACy8t5/lbuGoj/Y5nIiLxDIIdsLsDZPuM6CkFHZ5pQIA5AAuZeiFX9sQx9se9bXA5 pWfJgiqbcPPD5BWM0qO9WcsRqh7Bc4t8oOISd65RsRegmLoS/ZdkyqRsAUeTYyT0O98m 7P53XGZbaInVp6evW0ltN8mRdukOSaFbr75k9OiNZQK0Ut7i3n9pdk7hV8jhUxVBVzNi 7k6zYCoRkKFq8tKwJTIK72BAQi1br0REVH3J3cv1U3zW9tcdP6i//R3dK78e8Ku57m53 MJSpQc+sja3vQaucGMGJFnuhB6vBGLxptQMytSlgx0s3liIlue2nzXiFq0VqQk13Q7tV XHgg== 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=xTZSgjdmmaONYk1h7NTYbJzces16vptw0y0+I8bBCo0=; fh=oyPHf/2DaoRmdRwIgn9mtXgVPU3T0Px6E0zXmiwKbxQ=; b=N7jkron0MmeMoGvmlybreFXxobnOl70F+mojF41vqA+ytsDMYa5gQJkBZUdtWW3e4D l+jAGNv3FcWkEeJZLfMqJ71cXiSuUHORQc+zW3CCiQDQc2wtXkmXZPA+6YkBy3KyX5PU /+uTAChwbYbUWDr1cQ6WotBBbwyCuJkP/e0tMVxNyE1Nq25n1ilT6pT3bRm7VEof4Qi+ QysLltAJ0lU7BffW8IkCpLHBJTYAOB5Fo5Kc+Wj1mwBygNX355ssBHDrA6X2rXxxPkVB uv4NSLzrWwcus06i5Aem/wurwVHO3DWi1+KXjDJLbp23TFrem6QkNZmzgRPJ9YQKx+/z 89Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ewS67qD/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e129-20020a636987000000b005b92ab9ce80si5033353pgc.460.2023.10.30.04.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ewS67qD/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9C55D806005A; Mon, 30 Oct 2023 04:31:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbjJ3LbC (ORCPT + 99 others); Mon, 30 Oct 2023 07:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232994AbjJ3La7 (ORCPT ); Mon, 30 Oct 2023 07:30:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05041C2 for ; Mon, 30 Oct 2023 04:30:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19F5FC433C9; Mon, 30 Oct 2023 11:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698665456; bh=q5C0XeoTb5hF68Y7iJ6RhFTSeQ2+oNiU+mCivDgdJug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ewS67qD/AN4O2GttzBkCrJ9iizj+il5TiSzrNQwNRqWwCeSz+eQ8oR3tTF/e7V4jQ DakM3od+7l9fNCldh9moD5Yhj4uqWRL6trv9OaXN1SYmhaJPORzYFlW989Cel6aErJ TU1D5AhVE1erOcIcZOZ0kvc8RvmA49konJyxQSr8= Date: Mon, 30 Oct 2023 12:30:53 +0100 From: Greg Kroah-Hartman To: Tingwei Zhang Cc: Masami Hiramatsu , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Trilok Soni , Jinlong Mao Subject: Re: How to pass software configuration to driver built as module in boot up phase Message-ID: <2023103021-revolving-clapper-632d@gregkh> References: <1c001c6f-9902-4803-9406-39e3325422bf@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c001c6f-9902-4803-9406-39e3325422bf@quicinc.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 04:31:09 -0700 (PDT) On Mon, Oct 30, 2023 at 07:21:48PM +0800, Tingwei Zhang wrote: > Hi Masami, Greg and Rafael, > > I have one driver that needs a bunch to software configuration like 1000 > settings. These settings can be different according to the use case. That seems very odd, what type of driver is this? > They are required in boot up phase so we can't reply on user space to make > the configuration. > > Boot config is not preferred since we'd like to build that driver as dynamic > load Kernel module. > > Could you let me know if there's any mechanism in Kernel to do that? What is wrong with the existing ways of doing this that all other drivers use? thanks, greg k-h