From patchwork Mon Feb 15 09:36:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 61925 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp956551lbl; Mon, 15 Feb 2016 01:36:33 -0800 (PST) X-Received: by 10.98.42.10 with SMTP id q10mr22100921pfq.73.1455528993239; Mon, 15 Feb 2016 01:36:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx1si42282892pab.57.2016.02.15.01.36.32; Mon, 15 Feb 2016 01:36:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbcBOJga (ORCPT + 30 others); Mon, 15 Feb 2016 04:36:30 -0500 Received: from mail-ob0-f172.google.com ([209.85.214.172]:33140 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbcBOJg0 (ORCPT ); Mon, 15 Feb 2016 04:36:26 -0500 Received: by mail-ob0-f172.google.com with SMTP id jq7so19779990obb.0 for ; Mon, 15 Feb 2016 01:36:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nY36CjBPvJJ+efFxZUVgIVr6zJBVTH8Q4g9Keuu4800=; b=R8Mc4Utsgjk1T+gR5ZI1/fH/ddK/p/wK609YZl0ZNypFcCwghSx8SpgR0xbhdwEn3H PlEIiYtaseBaeH40rzE1kIWgP1FvPWpLCxW/O7y2JYwFz91dhaXiF8HxWoi1y5jlSgi1 rTt4QMNC5QmePGyiRH4vz/bGgAMmCZjjIclQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=nY36CjBPvJJ+efFxZUVgIVr6zJBVTH8Q4g9Keuu4800=; b=b+GCGXPdRbgFcoZTcwsgPB+XsundK0zP914/rQ80myfsgtGtV/ym+g8eVUoNJ16FHX 5ypLfkSmbaapE9eVLH+FYFqKSVdcizElqHIy2zka+6uaoBgwDOziw6uQRcipoeMi8Aqg Du4zBHFgBcvJ94U5omtLh9Tkvm0+6kONlo2xBuGJGbgAT20f7Z5DuojIpY/WlFFPSEqD 7rOjkqAbdLqIrMPCGLei5HXZsWycgZHG5KoirNrtU/ccdxcr29euq1tNhe+OxYmLzoYG 7GGjkoa1Xf0EvINhYLBfcuPRjxdeUQ+xROSq9E0rZ+lqMCZEg9Nqjge/vL4wBRZul4B6 d0Jw== X-Gm-Message-State: AG10YOSejJw+eTwVnIUoVf5oioqpxhMC/eMUcMWgZtAVRyTMetYbR8C6xq6eLbD1aHfw8WiX1qzOnL/tJY7U/fdd MIME-Version: 1.0 X-Received: by 10.202.232.19 with SMTP id f19mr11062564oih.113.1455528985794; Mon, 15 Feb 2016 01:36:25 -0800 (PST) Received: by 10.182.55.105 with HTTP; Mon, 15 Feb 2016 01:36:25 -0800 (PST) In-Reply-To: <8760xqd7e8.fsf@yhuang-dev.intel.com> References: <87ziv3n5fp.fsf@yhuang-dev.intel.com> <20160214080643.GA31304@qwerty.qwertyembedded> <8760xqd7e8.fsf@yhuang-dev.intel.com> Date: Mon, 15 Feb 2016 10:36:25 +0100 Message-ID: Subject: Re: [LKP] [lkp] [gpio] 3c702e9987: kmsg.user_verbs:couldn't_register_device_number From: Linus Walleij To: "Huang, Ying" Cc: Michael Welling , Arnd Bergmann , Greg Kroah-Hartman , LKML , Johan Hovold , Markus Pargmann , lkp@01.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2016 at 3:39 AM, Huang, Ying wrote: > Michael Welling writes: >> Could you run cat /proc/devices? > > Sorry, the test mechanism is not flexible enough to run some shell > command in test system. Could you provide a specialized debug kernel to > dump the necessary information in kernel log? We can collect dmesg > easily. Can you try this: cd->major = major; Then dmesg |grep CHARDEV should tell what we need to know. Yours, Linus Walleij diff --git a/fs/char_dev.c b/fs/char_dev.c index 24b142569ca9..74a2d433273e 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c @@ -96,6 +96,8 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor, goto out; } major = i; + pr_info("CHARDEV: allocate major %d for \"%s\"\n", + i, name); }