Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3811922pxf; Mon, 15 Mar 2021 20:49:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykRWEdJE+huG1/uPOmNmAMkSxdEtlbDHLmDg2YbjPrYzUU3M0XWU9AVpb/gvZUP+8FYQve X-Received: by 2002:a05:6402:84b:: with SMTP id b11mr33222860edz.56.1615866540896; Mon, 15 Mar 2021 20:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615866540; cv=none; d=google.com; s=arc-20160816; b=g7Cu1FOmm1OVhyDr34u8sCAb9WYZNrt+R+zPl9Q0x5a40EqzRjUzRv4e4rH/StDmjn NSVuHcnjpz5LpXI3k4XI0QuslV8taYb+dUVsm/1/U/53h+eEx89Qk6vhPQcTEmM1hPoJ 8cuFEXKVXy2Wfgc8tTMOEH+98nB4Ql6OB2OKOa0A4juQG20pOnUKVg6tRFmnm7q0Mxmo VLYeo6BkvylDvbyhmMXD4H7Wt9CSL27hdps+A15JVlp4Dp4oAZxZ8qGIdYgcL4RJrSXD xGhuqbUjLCyYYs1rmgboMiQ1Eu0nTYPo6o4nJMuDz/+gO8CwwojYBRoiPd0bNjFLoHY7 pnIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SaSOoIxes03bHpWUooj+6+ewuXi/Vmtw63TM+HLF9L8=; b=Xnft78Qc/L7HXO8AevMcQ8rsIiF282+aLDn+MdAt/Tc+GLNPKk1h389huUInp16lkl nztO1QMYvWvLLwkFYbM3uah/1TBMkD+lqGZUBqYgw+fCKdi3FZZqA7/hELvl/uqXSqQN iqauAS5A1yMbnWtwO3T0IQQKZmND43TlWmtpwiEEJLmgdIDPy0/JByWTB1/tNb2y/g9b OU/L1I2fvf/saI1/MhcJGAhkDP6+NUkB/hy5iyrCqmMlfT+AKvGKPaIwWQmuhtodPZXY hToHinidVyOxxOpYqP/G4dvXGPYTj7BXEGUbjsm+8BUdbSi1JUTUqUR5MfLkSuaN1sFv Y+jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eS7HTA1C; 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 dk21si12937805ejb.324.2021.03.15.20.48.38; Mon, 15 Mar 2021 20:49: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=eS7HTA1C; 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 S233915AbhCOUA7 (ORCPT + 99 others); Mon, 15 Mar 2021 16:00:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbhCOUA2 (ORCPT ); Mon, 15 Mar 2021 16:00:28 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFD9FC06174A for ; Mon, 15 Mar 2021 13:00:27 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id p10so10556349ils.9 for ; Mon, 15 Mar 2021 13:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SaSOoIxes03bHpWUooj+6+ewuXi/Vmtw63TM+HLF9L8=; b=eS7HTA1CDl8ccn1pHkFmhPOk8/AlrZMfGwncoeCi7AQIQVOd79gAx9m6kj3QYnUb47 MxlkV2rY2JMLdkoIdm6yz4mCVdgGgetyBtzMRVAis1d1g73dH5hjfofSB1CR5qCKLvJo 8TfKD/SIC92DISesqp7OPW25vs9bXG6kB+vHRLoZ4u6MO5JhIyCxwu/3ntQp4DB3KcY9 yRKoTRYgguy5FukC/xT47rA0l5Se1jhjRTH91kzkMwMnCGiqwVsDtZYpZ9pRPOzF80yh vugMKOjJHGWs/UcaarhoQpq1ZKnHzeFvik4XQlwrat8noWxZP5ZfA0mSZdFjFFFPEvn5 0D1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SaSOoIxes03bHpWUooj+6+ewuXi/Vmtw63TM+HLF9L8=; b=jAyOdXTJALNZERQa/5niYLUo2t8OGZ0+81XYwA+tSUkEA2REKGb+Rt51YNGmdHxpqy 1F1/kpfTBEm2ikcE67V5YK1aldqIKdTG0N68qv7ZxPb+irEiJhAZAkln1F+6G7vGQvmZ ASInO1SF/wH//glY7X4HfqhlgVb5oUIRx1K6FrgVBcHxH3ETRwYbZJmpoGLdWRPQLw4v bWpodT/lNhvWtZOo++RBUYfQnQCs0dtvTMd001k5GKf/6a9QJ5xnXOE7flTPbpToahUD bE0GksJkfOcf2PG95tLqygSFzyWgnbGgqmhAw0D25On+e2upOaTBqgpogMWJ0glWoO5v ANtA== X-Gm-Message-State: AOAM5330GanGAWpOlDFhqa7eTzdimXqem3zpYvqn2EsmabfugxMsnjic b8CA7cD6+ds8uqVM05Uwp5/WnGUU4iMhfAw2DYk= X-Received: by 2002:a92:740c:: with SMTP id p12mr1052065ilc.9.1615838427364; Mon, 15 Mar 2021 13:00:27 -0700 (PDT) MIME-Version: 1.0 References: <20210314035757.2740146-1-ztong0001@gmail.com> <5d7a5e1c-35ab-58cb-ebcd-da5b280c802e@mev.co.uk> <858341a6-c105-1440-aa4d-ea0217f2ec89@mev.co.uk> In-Reply-To: <858341a6-c105-1440-aa4d-ea0217f2ec89@mev.co.uk> From: Tong Zhang Date: Mon, 15 Mar 2021 16:00:16 -0400 Message-ID: Subject: Re: [PATCH] staging: comedi: replace slash in name To: Ian Abbott Cc: H Hartley Sweeten , Greg Kroah-Hartman , "Alexander A. Klimov" , devel@driverdev.osuosl.org, open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Ian, I have submitted a v2 patch based on your suggestions. Thanks, - Tong On Mon, Mar 15, 2021 at 6:48 AM Ian Abbott wrote: > > On 15/03/2021 10:44, Ian Abbott wrote: > > On 14/03/2021 03:57, Tong Zhang wrote: > >> request_irq() wont accept a name which contains slash so we need to > >> repalce it with something else -- otherwise it will trigger a warning > >> and the entry in /proc/irq/ will not be created > >> > >> [ 1.565966] name 'pci-das6402/16' > >> [ 1.566149] WARNING: CPU: 0 PID: 184 at fs/proc/generic.c:180 __xlate_proc_name+0x93/0xb0 > >> [ 1.568923] RIP: 0010:__xlate_proc_name+0x93/0xb0 > >> [ 1.574200] Call Trace: > >> [ 1.574722] proc_mkdir+0x18/0x20 > >> [ 1.576629] request_threaded_irq+0xfe/0x160 > >> [ 1.576859] auto_attach+0x60a/0xc40 [cb_pcidas64] > >> > >> Signed-off-by: Tong Zhang > [snip] > > Userspace applications can use these strings to determine the board > > type, so changing the strings would break those applications. > > > > I suggest passing the comedi driver name "cb_pcidas" to request_irq() > > for now. > > Oops, I meant "cb_pcidas64". But you could reach that via > dev->driver->driver_name if you want (where dev is the struct > comedi_device * parameter). > > -- > -=( Ian Abbott || MEV Ltd. is a company )=- > -=( registered in England & Wales. Regd. number: 02862268. )=- > -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- > -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-