Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3183651pxf; Mon, 15 Mar 2021 03:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxqd/J1wS99NLqaTxJn2H+43KQkl4u+O7e1AKNjXlsFxu3hLvFS5o1xv3TiJMzzTZZAhIX X-Received: by 2002:a17:906:14d0:: with SMTP id y16mr23224940ejc.242.1615805425146; Mon, 15 Mar 2021 03:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615805425; cv=none; d=google.com; s=arc-20160816; b=DPYXB91fZcITcQxJdnYcAf8n6OLLm/Nu90F6wiOc0Dq1EFrNe9PGS9r8Kk7TrigBZm 1cvuY8m0E9dm6bLxkrDvGgHjc2ppzsfDhHYV9d9xMN0pqwSiSOc/BF6Xw8A1gJXlvZZN Ff6J3SteaIdnL2Ok2dpZM8Gwo+P5a8UEOCq5A+VE9BbZmoevdFd2cz+ShTiYZPemgTSo JO6oiXjzWy3B37shKm23QRfLgS+6VKb1vHKkgoCOAV86YVdbzTy7JGNOPtX56S6zY12w clJ5XDK/R7Jemw9jasg1M4JiPrpTTx+3PIFj1dn3z15zKnIaak3Od/+jbm+yHP0DapGe /TWQ== 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 :references:to:from:subject:dkim-signature; bh=hI+K+D5qwddI85Ke2fOuzjfXGHK5EHrc1K9RmF1tyLo=; b=chayfmGmFr9aFZlB/JchBJOG39eSfvbe66SIWLH9fWbbTzkj3KbMuaIHLw1fFc5LL+ nvjaGVwNHuSoPeWrv6GOp1NHGp/Rot7YwpXbdeHCqVa0D6yCiRwF8sweuLNETNFOeUFr iZEfCtwzSciwMK7lDEM01RS2jNz7AcGGE+rux5L1BegpUzNZ6ud6oYktm+BcI1/20lH4 Z3YgJH8T3MS5bakp6VUhvdAgocXRnsqNJNfn32kpqBng1FB/6bxVtfDEHFr//zGJKxvB Z5NWlFqW/eTKzVNgZv6d+NQQvBdLk8CEob/TCDAmvKfgiZJ7bBS30keadZij1Z73fg7Q zlCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=SZe3qWNz; 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 b3si10494098edy.588.2021.03.15.03.50.03; Mon, 15 Mar 2021 03:50:25 -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=SZe3qWNz; 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 S229699AbhCOKsq (ORCPT + 99 others); Mon, 15 Mar 2021 06:48:46 -0400 Received: from smtp123.iad3a.emailsrvr.com ([173.203.187.123]:39678 "EHLO smtp123.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhCOKsk (ORCPT ); Mon, 15 Mar 2021 06:48:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20190130-41we5z8j; t=1615805320; bh=ID/APZIEOSDLvZtwNC0fyYc9o96mxOxli1drtsMViJI=; h=Subject:From:To:Date:From; b=SZe3qWNzYovz0C0jDIhxzIzjAPkslNN0MOMVeOb5vWivQ9mzGe+7ZaF9Ux34lu/OX A6HNhvEzPUSbdVO4t75ULGszVj1bSYvgSg8739wudP24ji9vivqd3eQLrKb/itn6Ef UaReDGOakxmQnctFNcvV5bAOmRnlX2oHDHz9wdqE= X-Auth-ID: abbotti@mev.co.uk Received: by smtp24.relay.iad3a.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 512E524A8D; Mon, 15 Mar 2021 06:48:39 -0400 (EDT) Subject: Re: [PATCH] staging: comedi: replace slash in name From: Ian Abbott 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> <5d7a5e1c-35ab-58cb-ebcd-da5b280c802e@mev.co.uk> Organization: MEV Ltd. Message-ID: <858341a6-c105-1440-aa4d-ea0217f2ec89@mev.co.uk> Date: Mon, 15 Mar 2021 10:48:38 +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: <5d7a5e1c-35ab-58cb-ebcd-da5b280c802e@mev.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Classification-ID: 67750dd0-3b78-4775-abde-c905b639c76c-1-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 )=-