From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACBF2C433EF for ; Tue, 12 Oct 2021 03:26:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7645E60EE9 for ; Tue, 12 Oct 2021 03:26:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7645E60EE9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=vanguardiasur.com.ar Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W/lKhJztMjMdpYfj7WwqvkXZ384kKMRITcyaxJ0XqBU=; b=jPsxk7WCta9ycd aLeb/uQ4Y4/ZaCbYangTKbZ5HiPv1p+5yeI2rpyILMk+VNAZtdJLybaXP804PFbT1RJS7yfpyOOTH o5EHImQ781ECv1OgwSYL+6XAqceCHHj/HwnDaHZ/PmVdQL012M9F4Ssd5LI6jIkaDfHAHaK32kvUc 0wBQgrcnUi6gk/7sWRcGDd1CJeCmzG53yS2dYGDtfhuIShKcQ9WpqkVJlI+NN/OWdhaPbcaH/rQIi sFLqydqanw+HSYOsXNP3nfrhawz3mbgM9T7jfH5dtzwAsDAoqEYTyCVnrO5H5SmThg5gAZwcQQWCv bfL/YkE1mUA9Ktdwe5MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ma8Ok-00BKKv-Bm; Tue, 12 Oct 2021 03:24:14 +0000 Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ma8Og-00BKJZ-Sr for linux-arm-kernel@lists.infradead.org; Tue, 12 Oct 2021 03:24:12 +0000 Received: by mail-ua1-x92b.google.com with SMTP id f3so12523975uap.6 for ; Mon, 11 Oct 2021 20:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=05JfAVZ+h7mE5tV9xgtjhMjstYtcv3IxzoXo5DOS8Bc=; b=XGM4AalAX1+8HICtDV3dnndPWh3DVI6pEv6JOSiquVEJ1SblB3Wh3SA3h/YwHdvHIw TFeHRn7DVGGovIQm7GiSEo3TTWu35UdhamQiNmKjFLeewc2jMEfCNBXcewwbWg3pV/RE aZr/IatgS7PASkKmeIKcom7ExlE6sslE3J1fMgCoBWeYfE1k1KOtcLvXJlYdCyYbOgai Y3zwAT51islrFirLE3tZfvAVm3kIk07XXO+eyI9isVaswWeHdttF+IyKI5PCSz6pQJgB u6MIriWEatRnfAGsuACo/ebRYPdGwQ1MhyjI2KZoOS97VFWWq+Hds8CNDsG6ZQ2R+iKX 1Ziw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=05JfAVZ+h7mE5tV9xgtjhMjstYtcv3IxzoXo5DOS8Bc=; b=zgnZvYfHMmhQcS8volk4JoKj0rFmMIbDwcSLL9zMHZrca/skFd+F4zbHNzqKUKsk2s uttsy4Khg8hmmZwei1epZVmsNUZg3Qn831jANC5BEhlCODSIIkdyAQ1WADLrb4DrHfgg W/3WERMYRHlX5S6upm2SI/PNp4jCHbKiDxRm3Veyj8+wvIUTkp0fKQS2tQD8z6mkvq+g hiB7UXa9bh4gWSXH/ZVZa4NEZnNPe2XTHSEvMoYBNQx9HXQ2LhgxW7FMjSIBMoLroFpu wNk5/27eYWL5/E9WgkyN37K7z1a3ANqR+xp26IOYYH0/FVC4w86zRwvPJYkOcdoWSKSP pnkQ== X-Gm-Message-State: AOAM530wCUcAwBi83EXJ6XDj3Z0ACNixTXuQ3I6DCf49bzpKMhIoAdpG zmcM5DLWF/8aO6pBCOyXGeuFxg== X-Google-Smtp-Source: ABdhPJz6WgBYu+RuHEVXvxf+e7LXJGJEwNqVoWCRKe+0ncKGBgDXKyCoe2oWAuKnrdznsGHQS8IaDw== X-Received: by 2002:a67:d48a:: with SMTP id g10mr27580438vsj.3.1634009047974; Mon, 11 Oct 2021 20:24:07 -0700 (PDT) Received: from fedora ([2803:9800:98c2:8470:9f4:8e2a:88e5:ec01]) by smtp.gmail.com with ESMTPSA id p8sm4317509vke.11.2021.10.11.20.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 20:24:06 -0700 (PDT) Date: Tue, 12 Oct 2021 00:24:02 -0300 From: Ezequiel Garcia To: Mikhail Rudenko Cc: linux-media@vger.kernel.org, Helen Koike , Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: rockchip: rkisp1: use device name for debugfs subdir name Message-ID: References: <20211010175457.438627-1-mike.rudenko@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211010175457.438627-1-mike.rudenko@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211011_202410_968640_C8A99708 X-CRM114-Status: GOOD ( 17.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Oct 10, 2021 at 08:54:57PM +0300, Mikhail Rudenko wrote: > While testing Rockchip RK3399 with both ISPs enabled, a dmesg error > was observed: > ``` > [ 15.559141] debugfs: Directory 'rkisp1' with parent '/' already present! > ``` > > Fix it by using the device name for the debugfs subdirectory name > instead of the driver name, thus preventing name collision. > > Signed-off-by: Mikhail Rudenko Reviewed-by: Ezequiel Garcia Thanks! > --- > drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > index 7474150b94ed..560f928c3752 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > @@ -426,7 +426,7 @@ static void rkisp1_debug_init(struct rkisp1_device *rkisp1) > { > struct rkisp1_debug *debug = &rkisp1->debug; > > - debug->debugfs_dir = debugfs_create_dir(RKISP1_DRIVER_NAME, NULL); > + debug->debugfs_dir = debugfs_create_dir(dev_name(rkisp1->dev), NULL); > debugfs_create_ulong("data_loss", 0444, debug->debugfs_dir, > &debug->data_loss); > debugfs_create_ulong("outform_size_err", 0444, debug->debugfs_dir, > -- > 2.33.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel