Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1692211ybz; Thu, 16 Apr 2020 13:48:31 -0700 (PDT) X-Google-Smtp-Source: APiQypK9iNW8JW7T6AEgY+Yf2tnk8b33E+MY7B3EIPA95svwnKR+bw6VIv5V1DO/52xkj1vpC92R X-Received: by 2002:a17:906:e210:: with SMTP id gf16mr11655422ejb.214.1587070111229; Thu, 16 Apr 2020 13:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587070111; cv=none; d=google.com; s=arc-20160816; b=yZ4t7RGZGVb8/e/inBKnQ3SAGSA3HT1X563lC0jE4xwoZ/EfxEHyAGOBTKtOliqsLJ UOkGxZErD0pubVrNwYy+ZT33XRyyuK0IY3MZD3xaleo5BsUzyp3l34Xrj/epQG8PypJM z2T8waHXhq2gTMuVfmfGhyXHarB7QvCEN+dVll+v+zeZPJXPyIRVlDlZ4++NHNC1K975 5UQ4BSvEodN0nIckhc5biGvtM8EIlrOrwJZg7ZHR1VeOHAt//f7lgbQN6HrhtPu7EYt4 bgWB2x+1WEt16RRK3i0ODA4qMcNfOTx1ir1TnelGKf+K34MLZ1ujbowbpvkQGwUdUUVp 4zFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id; bh=ZLQyMxJbuu0hxEzCvWkX513UpKRSq8DPagmdaIDVpuw=; b=dN8D2huQQfV5TQmb17QMkwE2nKhalW9ZlYErx5ZSmaxQmH5LUYDbe6OsdAE9xIDgD/ JXtW0EiaqmEy/MZd0TY/AdrnF3OmdDD0A6wXJy2g0XkphKeQUY+Vvz22dYIEvHXc7Xep SGGnaAyCCToFrTstuDXvWaUL+3AvVBfvfCAdRE2i0+ni2jiaacrZApHUH0KMuPcUVkys K7Yq3Ptwi6t1lebMPExAqCly0dIzoWEK3+H0GC4nrodzs6fbIY7O6oEleRge2Yrsrxjo s9Vs1LG2yJ8b/oMB0X3WPG9ISqLgprr1IgF9vuz1TK+ObwMwzcaNRaXKwOgJZsZBSpzV 2WdA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si10797488ejb.184.2020.04.16.13.48.07; Thu, 16 Apr 2020 13:48: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730305AbgDPT7n (ORCPT + 99 others); Thu, 16 Apr 2020 15:59:43 -0400 Received: from baldur.buserror.net ([165.227.176.147]:38602 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgDPT7m (ORCPT ); Thu, 16 Apr 2020 15:59:42 -0400 Received: from [2601:449:8480:af0:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jPAfj-0007F3-PU; Thu, 16 Apr 2020 14:59:40 -0500 Message-ID: <16f8fa2d26d88f22ed05e9870709c2fd5c3960cf.camel@buserror.net> From: Scott Wood To: Wang Wenhu , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org Cc: kernel@vivo.com, Michael Ellerman Date: Thu, 16 Apr 2020 14:59:36 -0500 In-Reply-To: <20200416153537.23736-5-wenhu.wang@vivo.com> References: <20200416153537.23736-1-wenhu.wang@vivo.com> <20200416153537.23736-5-wenhu.wang@vivo.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8480:af0:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: wenhu.wang@vivo.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org, kernel@vivo.com, mpe@ellerman.id.au X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for * this recipient and sender Subject: Re: [PATCH v4,4/4] drivers: uio: new driver for fsl_85xx_cache_sram X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-04-16 at 08:35 -0700, Wang Wenhu wrote: > +#define UIO_INFO_VER "devicetree,pseudo" What does this mean? Changing a number into a non-obvious string (Why "pseudo"? Why does the UIO user care that the config came from the device tree?) just to avoid setting off Greg's version number autoresponse isn't really helping anything. > +static const struct of_device_id uio_mpc85xx_l2ctlr_of_match[] = { > + { .compatible = "uio,mpc85xx-cache-sram", }, > + {}, > +}; > + > +static struct platform_driver uio_fsl_85xx_cache_sram = { > + .probe = uio_fsl_85xx_cache_sram_probe, > + .remove = uio_fsl_85xx_cache_sram_remove, > + .driver = { > + .name = DRIVER_NAME, > + .owner = THIS_MODULE, > + .of_match_table = uio_mpc85xx_l2ctlr_of_match, > + }, > +}; Greg's comment notwithstanding, I really don't think this belongs in the device tree (and if I do get overruled on that point, it at least needs a binding document). Let me try to come up with a patch for dynamic allocation. -Scott