Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3181977pxf; Mon, 15 Mar 2021 03:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Z8R6ZDscN6T8nAgWvoI8hBjcN4n9CDBUMWvuZYPeVQxHmgz/7YDN7Vy6JdKKPQy06JX5 X-Received: by 2002:a17:906:9509:: with SMTP id u9mr22888325ejx.225.1615805209614; Mon, 15 Mar 2021 03:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615805209; cv=none; d=google.com; s=arc-20160816; b=QlteiB8xOilVTrsIH96R3R10ohxTRGg1PqZFyVa0GfTQyT4k5sO7ejJGFs83PGCp8X LIKo251T+iT1C3jSBiV0BMXyXUWYS+EQApfs5aiUtRRf/k39rwJnJnIsG1tlbmcPl7tE rcGwNpqzJFXLs/N0p21Mj/I6OQ0wBUGnRcio2MqMbvGzlIKtIudHgQY+3oqYioY8e0B6 I0jJrhjIqKP5eZUgexEQv1utZpy+981YkUTnoY76KLZs7e5yY4UNGxF7wIHLLA31f2Tw ULhkn8+htR0Lxko1C7b8cBlZ9/t27imyipfH50iwhIHiYyKeCZYQ8vtK1VpkxsN+Eh5M 7VGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature; bh=GB6KYAeCq5H8xwND8MSXl+u4m6AjdomSk4QHJkEUdpI=; b=NVvacbZx5qnkI3cHe2guXUs3rkZa8FkaE+hyRibVto9c3ch/cUG4RzDVhq6eUX787i PHMSRG8BUyvzTHLNCXGVqm21ZTVCvuFm/Cqj/9bK8EHk/yvzhKXeWCIRfa+oedQNrG/t ofJCj57wprCRf7Nk1lXrHb9bd4y2aFAD8sT8h7trSbQNkCfeKHnh0szk33uHqgvKI+5D YeAt0w863CPDGXmBUrjDM+BmNCv/vXNG9n7wjKKA6F5jZVoJyRfaIiqmvCJYYmMcZLbR 6wW30AYDKBPE6JyxeOSRb/geHiAVF0g7+h+BbBSVCkUltzSU+aEZwmYzpe0+s0bc/wjx SOFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=lbgRdHoy; 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 fx21si10481995ejb.91.2021.03.15.03.46.27; Mon, 15 Mar 2021 03:46:49 -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=@mev.co.uk header.s=20190130-41we5z8j header.b=lbgRdHoy; 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 S229767AbhCOKo7 (ORCPT + 99 others); Mon, 15 Mar 2021 06:44:59 -0400 Received: from smtp69.ord1c.emailsrvr.com ([108.166.43.69]:41595 "EHLO smtp69.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbhCOKog (ORCPT ); Mon, 15 Mar 2021 06:44:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20190130-41we5z8j; t=1615805074; bh=xlOfUEowI6NCZiO+ZHuwX6ae9Gxb/RcMpL8ZU4SGWU8=; h=Subject:To:From:Date:From; b=lbgRdHoy4kG9XgEwL6I8BMAihM46vUOJUmFupDZcf6jZ4mw3hpebCWoz+LTuwoDrm oDCSAv97lMioLo74LkVq7O8UkwATw9KLcofj1KqXr0dFVKISYSIZ4eGhcHyfulbyj+ A6UfvvSTEm7o/VP/esH+0n9wpDiDsDnZGpvvk1i0= X-Auth-ID: abbotti@mev.co.uk Received: by smtp17.relay.ord1c.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 76D6D6016D; Mon, 15 Mar 2021 06:44:33 -0400 (EDT) Subject: Re: [PATCH] staging: comedi: replace slash in name To: Tong Zhang , H Hartley Sweeten , Greg Kroah-Hartman , "Alexander A. Klimov" , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20210314035757.2740146-1-ztong0001@gmail.com> From: Ian Abbott Organization: MEV Ltd. Message-ID: <5d7a5e1c-35ab-58cb-ebcd-da5b280c802e@mev.co.uk> Date: Mon, 15 Mar 2021 10:44:32 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210314035757.2740146-1-ztong0001@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Classification-ID: e06d8992-0b05-4806-b625-31fc857a83a4-1-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > drivers/staging/comedi/drivers/cb_pcidas64.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c > index fa987bb0e7cd..662d6ffb8f60 100644 > --- a/drivers/staging/comedi/drivers/cb_pcidas64.c > +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c > @@ -677,7 +677,7 @@ static const int bytes_in_sample = 2; > > static const struct pcidas64_board pcidas64_boards[] = { > [BOARD_PCIDAS6402_16] = { > - .name = "pci-das6402/16", > + .name = "pci-das6402-16", > .ai_se_chans = 64, > .ai_bits = 16, > .ai_speed = 5000, > @@ -693,7 +693,7 @@ static const struct pcidas64_board pcidas64_boards[] = { > .has_8255 = 1, > }, > [BOARD_PCIDAS6402_12] = { > - .name = "pci-das6402/12", /* XXX check */ > + .name = "pci-das6402-12", /* XXX check */ > .ai_se_chans = 64, > .ai_bits = 12, > .ai_speed = 5000, > @@ -709,7 +709,7 @@ static const struct pcidas64_board pcidas64_boards[] = { > .has_8255 = 1, > }, > [BOARD_PCIDAS64_M1_16] = { > - .name = "pci-das64/m1/16", > + .name = "pci-das64-m1-16", > .ai_se_chans = 64, > .ai_bits = 16, > .ai_speed = 1000, > @@ -725,7 +725,7 @@ static const struct pcidas64_board pcidas64_boards[] = { > .has_8255 = 1, > }, > [BOARD_PCIDAS64_M2_16] = { > - .name = "pci-das64/m2/16", > + .name = "pci-das64-m2-16", > .ai_se_chans = 64, > .ai_bits = 16, > .ai_speed = 500, > @@ -741,7 +741,7 @@ static const struct pcidas64_board pcidas64_boards[] = { > .has_8255 = 1, > }, > [BOARD_PCIDAS64_M3_16] = { > - .name = "pci-das64/m3/16", > + .name = "pci-das64-m3-16", > .ai_se_chans = 64, > .ai_bits = 16, > .ai_speed = 333, > @@ -984,7 +984,7 @@ static const struct pcidas64_board pcidas64_boards[] = { > .has_8255 = 0, > }, > [BOARD_PCIDAS4020_12] = { > - .name = "pci-das4020/12", > + .name = "pci-das4020-12", > .ai_se_chans = 4, > .ai_bits = 12, > .ai_speed = 50, > 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. -- -=( 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 )=-