Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3676537pxb; Mon, 24 Jan 2022 15:06:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJySLeuot3l/HBECiH4LW5EkPpkw84ybaBRup33KCzzY1sn/rjvVwNeK828ky/ZU+whr3nfJ X-Received: by 2002:a17:903:22ca:b0:14b:3bbd:82ed with SMTP id y10-20020a17090322ca00b0014b3bbd82edmr9706521plg.37.1643065584756; Mon, 24 Jan 2022 15:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065584; cv=none; d=google.com; s=arc-20160816; b=dfdyIGRooAy56KqnaYIRWL4MprjCOugywZRt89MTwORhwPq2t+D5ZiI2x0qmlbMeQA AyfEyq7ihdzeEEx5NXf1r8RmI3ktsfvuTWect/sR4J/HmkC2hDQ2hgw4JF3js2GEinVQ 0HiHP6jmA3auEb/FDbs3NfRsXdThTZF5VCTp/SJGgiuYuMp3ULyNjS3bJGqBDIZJAWe6 ioPypcjQdU1Q/zYL98fq6hWCN2sRgfXZcUOeGJDVsTMGM5EHbz0ii3hAd3w7uK21nnjJ F445bbtdMtwntURBeG10sxa5FmmLZbsvfi2ytWilBXpFIBk18yPPmwivBP2LCxRqy9eE baAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j6HewiPukioLEQo455lfHbqT3bbHIDodlSizMEXZMCU=; b=TRIB3gMU77JVHLcGNYnYKu8rRmXT/pqSoqf52NzoJjgXso371Fv8SrAItS3C4ykrj4 P8+rsNqzCSerREdzRHt5vJRXmiygyBVIZZNJN0w8I0I4lKGCnJJiOksoTd73/GEWh+tG 7NYUrmArpkO5NjgNoYnx7gGnUWyigztk3k9MHGbO9NuKql4Pqjw56qXQFlY5FDez/PkP u2WcXgiJinM8tbddQbLP+0cp1aJhMnvdF7+GmHfbYk6l9PQhlI6fYyt5fEG4JFwX+PRC 7qwg3CkLWbzo/XHcxxgg3hO/Zq0O83Ck0bn8GGUUm2/xxHxz4ovBYIETwMwg0CgfI7Xu 78Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QQReqEVI; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si13789560pfo.299.2022.01.24.15.06.11; Mon, 24 Jan 2022 15:06:24 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=QQReqEVI; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1842423AbiAXXBv (ORCPT + 99 others); Mon, 24 Jan 2022 18:01:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458122AbiAXVzI (ORCPT ); Mon, 24 Jan 2022 16:55:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0D6DC07E2AB; Mon, 24 Jan 2022 12:37:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4E1C06154F; Mon, 24 Jan 2022 20:37:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2365FC340E5; Mon, 24 Jan 2022 20:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056643; bh=zDM+ojreXxp6aysR43uWqt69LDkwRD5ECLE0praKzMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QQReqEVIQ1GNqm/syZ7oP2IVr8OPeYuM6idgZ8cfhbqnppsU9e/j99Zk/WTNVNMua jW97WUPmOYBVgyMaAqzsCuXFB7eF0AfiTqbAyH/2SIiOG3wIZjv1tDQdIn3NQP346o b6Kyt+dmZ8eJgH5M08WVFE58s0LL4yNjl/EDP9cA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikhail Rudenko , Ezequiel Garcia , Kieran Bingham , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.15 553/846] media: rockchip: rkisp1: use device name for debugfs subdir name Date: Mon, 24 Jan 2022 19:41:10 +0100 Message-Id: <20220124184120.106923829@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mikhail Rudenko [ Upstream commit c2611e479f5d9b05108270e1ab423955486b4457 ] 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. Link: https://lore.kernel.org/linux-media/20211010175457.438627-1-mike.rudenko@gmail.com Signed-off-by: Mikhail Rudenko Reviewed-by: Ezequiel Garcia Reviewed-by: Kieran Bingham Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- 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 7474150b94ed3..560f928c37520 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.34.1