From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3FA02D130C for ; Tue, 13 Jan 2026 10:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768300453; cv=none; b=IkXFeUUxZtvE1iNgEVxw28ZBs3MuWxbyC6SypxUw2H6I50qzQf/rPo1zCWFpiqUiewHEiU+FophTZtc4ukZXNYxnLz9T03H2+aTp3DJvClMThf5P5aJFi62x4okoDpkGC8U1YS8wWG6Z+oMPHfcLVN3EmsKKNJ5YBaQ7dZi/N6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768300453; c=relaxed/simple; bh=3IOpqeuJDd2VvQ1xyKE5Y/yLbTdnCHOyfCmTcMJWgmQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Tyo9B1jnEg1HT6F+EG9KNFpW6CGVhn1xZEbzQsTXoleZxAy6zcZVdqQGDPfX0rKUfhVTuc3dOc1qqYcKrFa7tNKOBto+kGmzCvWHbjikjqypti+NeXFfNGZrGRwyQv7TnkFyZZpQB9FaI+U5NeDNj5XC3t2xwVoIQHJef/KaP0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=b8k4fImZ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gOxVKpMW; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="b8k4fImZ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gOxVKpMW" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60D7JdO0177668 for ; Tue, 13 Jan 2026 10:34:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=t0DxTF6XpTbcLZF16ugKMHmuEdIMBo7WDZa FbWe1gk0=; b=b8k4fImZu7maRrZnRXZGNpQ26t6txGB/VOSKWoJA5CprTJ4e+UX c7uKOv3/RgFWapSIvCMyM7AT4IT8inkn0g35Xa57Y12FmYlqwFxGnMw7L3+52Szv nfKOZ8ls/Aj5VnpuowVV3OETM8lfdwW5nF8Rk4edcQRaWEwA7FpwPj2CKWXoAvqd DGHz4mLwbBoFNOQchPK5VWt+vvrZD1pltulIv9rz6m/RVfzYl2wXD4749Qdauppz dUzWQi0ouPaZbBvfpmnuhweE+u2dcPBU1eylRvVLrt+CoS4hpaprssELfRU5HnAB lClOi9qmLCKxye5FxQ3Cjpg2tb/WuZe77uQ== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bn52f2uqn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 13 Jan 2026 10:34:07 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c337cde7e40so4065972a12.1 for ; Tue, 13 Jan 2026 02:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1768300446; x=1768905246; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=t0DxTF6XpTbcLZF16ugKMHmuEdIMBo7WDZaFbWe1gk0=; b=gOxVKpMWyWeLvXxqKLcVoLmnGf+XtXD8nvB7UXEGPmhceIPSh7lEineWXmRg3z2F9G uKIEVPEEW4Z5I8qG0lpWSceHrmVc4gktkXZHcgfCnsmf3JUHutDQTHrsEJkZF3VARi95 lXM8WPOAMVjCoqFAJLMHJis2uOxjaJD2xRRpLurp5polGXpJClmoy2wczG933HWe7vsj 0tg6TULzLwWplmnrgWARDfgiAXja1IMvJDDntUuywwwigJouZlrlSIOWLs8w3R+s+yvu ZFuaE5m6/PyGcIBNuIA5xyrtAidUh8htvBoAsOFiEB4bplSxNlk38jtnfLK8g9H+6X5s nGSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768300446; x=1768905246; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t0DxTF6XpTbcLZF16ugKMHmuEdIMBo7WDZaFbWe1gk0=; b=MMBcDSwHR2vGyCGrR/HXJfKtqTkmYn+58nnSk7RNv8BuSPq4q31qeN+/hZCa09rhIU szMkLNERIJopV6P3TopewY3Vu3TRl3aKcB/5yDS/fQn4BVyGN8LNU2pKBekXP76y7eBH fDRTro4RDrdc5Xc8mcVp/D7BApMmhfGYWPk59I6HTnUq2HAAeBAcUdO5e8l2C5o4e09/ /e84i2RTs6cYqnRUjUgbr605K8z2b8T23Kz5n3LkZt1TzXtEmg+NT3GnknPQZPws51In yDJIFluT5cRoKu9KaNsbPS/ofMsiMyyXwLsxiDRt7taQBbYQZyf3cIm5LGOYlB83r0hW dr/Q== X-Forwarded-Encrypted: i=1; AJvYcCWY5STvBa6I/luhlrpu+xvmKEm23s97mJAoOSFriOnLJUw9YA+Pu07kg+MVczkTg/5j7zIgGo8B3xP7AQE=@vger.kernel.org X-Gm-Message-State: AOJu0Yzp/PaJlyM/pVnCiTsiPf63sH6fZcyLe0Wi6PpkOP9YAD12wOLB k5QpQVfbxarjME7UXkDVY1K5EGi4C9TSeCcR5BNaY6gV9n68AUfw9PvKLe075FAFpsx5yhkY3qU 2TzhMMFeIhoRVn9IyW1IlQNHqnQnOT66OCoCcEBncuR19umDS0rIRXxiSmpRbdZ9NLP0= X-Gm-Gg: AY/fxX70K287asb184A3NlHUZThOJeypdvAbHEnCNClKs5RSPgvjHjBoIfat45ftdO5 PQQjN4GMAChFVpxLoByk/B+uUXBC0pO9C8DJsz8owb6iw1aXPFQmUZfIgkcEJSDLPOSD1c4vCvV NzxKAKF8Hd2tjyxUmAj2weWUyEoinsYk3NAQ+Rt5cWpl9OxcYrCZbSHztrVDVRuIPPEVgJyxFoM /K7IeNNkN7r+BUsCnJ6Ybh354B+k5t8AG19CBWU0v5Jk1dBHKeNN6BBEm1uhHwHR5r+UCAA0vzQ HSZamOSkUUP/2FbukhpHpFMc+duItIuhq2Cm5VJgYwCGa8INWqG/JkUlWYjp97b7hBZEI15dqVK koVWVeagLfMyYmz7+ZooaWG6skWDojHRrml+04Q== X-Received: by 2002:a05:6a20:9185:b0:366:14af:9bce with SMTP id adf61e73a8af0-3898fa17787mr18881635637.68.1768300446487; Tue, 13 Jan 2026 02:34:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlkCh9JDgXmQMZ3tRhoJmBX8OD0TapeaylQwnoDHrA068OB/cX9ocOe95S4md3bpIYxs90Sg== X-Received: by 2002:a05:6a20:9185:b0:366:14af:9bce with SMTP id adf61e73a8af0-3898fa17787mr18881607637.68.1768300445857; Tue, 13 Jan 2026 02:34:05 -0800 (PST) Received: from hu-prashk-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cca06b2edsm19769911a12.32.2026.01.13.02.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 02:34:05 -0800 (PST) From: Prashanth K To: Thinh Nguyen , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Prashanth K Subject: [PATCH v3 0/3] Add the DWC3 instance name in traces Date: Tue, 13 Jan 2026 16:03:57 +0530 Message-Id: <20260113103400.2347763-1-prashanth.k@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTEzMDA4OSBTYWx0ZWRfX+R3SCHeUotRR GZKR5RKQsQ2D4nYqOywuCjWkQJ82c3FtCsDoNy/S50ngZTGxqEppDGVMo9dqrmuwsRl4L5d0AI9 NNT82MEabKn06OkygeGW3wIfo2BAkte8GSKoxobIxZebizbbZZ+oa+JtzGV9MvI27ZYSXxIzI8g TIQyUMx81e38yigHHTZK/AdVqmQ+WZUTYrx7Ii3mRGkJkhHeNG5L3wlMaQykJO40m6/mITRSAsq /z91mGVO/BHSDRG2huuCNUIq+zDi/uydM81whKc6uAQslEFmIQ2eh3eeCQFtkhV8jcza6Mm5j6u JEGu2zdH4As10C0nQJy3PRKuOZFlY1h45/suTdGSJSmjcvjLgle+Xtx2tPgwG/gFUY9+KpyiQRc d4v28jDxKZJfqrvqAjfIJzjIxtUXQ2dd3B/AbXcw4yl/T3x3ILzWdXdSS1duhR7aUze+KMETiVQ Dm3YXv17IXX5DglvJPw== X-Authority-Analysis: v=2.4 cv=TcCbdBQh c=1 sm=1 tr=0 ts=69661f9f cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=WwGGzFOkyck6md8MPd4A:9 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-GUID: fZ2whdV6x5VBncncHBeDz-XDATD37JEz X-Proofpoint-ORIG-GUID: fZ2whdV6x5VBncncHBeDz-XDATD37JEz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-13_02,2026-01-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 adultscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601130089 When multiple DWC3 controllers are being used, trace events from different instances get mixed up making debugging difficult as there's no way to distinguish which instance generated the trace. Hence append the controller register base address into ftrace. This needs the following reworks which is addressed using this patch series. 1. Removal of dep->regs and use dwc->regs everywhere 2. Use dwc pointer in all dwc3_readl/writel() 3. Adding the base addr in traces. Changes in v3: - Renamed the variable to 'address'. - Used u32 instead of string/char[]. - Link to v2: https://lore.kernel.org/all/20260105115325.1765176-1-prashanth.k@oss.qualcomm.com/ Changes in v2: - Avoid using macros for dwc3_readl/writel() - Use base address intraces instead of dev name. - Split the patch into a series. - Link to v1: https://lore.kernel.org/all/20250825114433.3170867-1-prashanth.k@oss.qualcomm.com/ Prashanth K (3): usb: dwc3: Remove of dep->regs usb: dwc3: Add dwc pointer to dwc3_readl/writel usb: dwc3: Log dwc3 instance name in traces drivers/usb/dwc3/core.c | 199 +++++++++++++++++++------------------ drivers/usb/dwc3/core.h | 13 +-- drivers/usb/dwc3/debugfs.c | 44 ++++---- drivers/usb/dwc3/drd.c | 76 +++++++------- drivers/usb/dwc3/ep0.c | 22 ++-- drivers/usb/dwc3/gadget.c | 164 +++++++++++++++--------------- drivers/usb/dwc3/gadget.h | 4 +- drivers/usb/dwc3/io.h | 11 +- drivers/usb/dwc3/trace.h | 88 ++++++++++------ drivers/usb/dwc3/ulpi.c | 10 +- 10 files changed, 328 insertions(+), 303 deletions(-) -- 2.34.1