From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6A9D35F8D1 for ; Sat, 23 May 2026 08:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779525049; cv=none; b=TOLjeCE5tMUN76tKXvS5ezHdUTlHAldgpCDm2nq8kfvXmXKePi6KK5MgUcH1AEeuYceQ1bofN4gPRP+U9SdM/iWVQTTDjdzRFiG+nkQStwP5uB8OiPF59HMnccijvoNjt/brHj2KqL7WknugSL0VaWXUKC7+IGAYJy27iM2aVIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779525049; c=relaxed/simple; bh=O4o9ol0z9p1ozuLH8y297KGzgYwC2IgBRXVV6czRJHo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nvOeOgHj+ZrDp4pVKFDcG0quXEDySRHZL1H4ldM69NadZsgK5K/XCrO7zRCARZEqDDqQny+aD6muE96Xh69r1jcPNl2r+kcMJk9YWFAhPLqvoNUd9xqMiYDnhTdB5x90okK/nW9K7E0Rrb2NfA1zSCqLFv2erhbTYv2ZzbeOyWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=imnVYIMh; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="imnVYIMh" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-6877c719cb0so5353072a12.2 for ; Sat, 23 May 2026 01:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779525046; x=1780129846; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IWj8ptSzNBKrFt1mxoQKUyY2RzDOkBP4g8UuTE+1+DQ=; b=imnVYIMhBy80+n7Te9lWyG3Wzocdx/9S3tLruB550EhYCV7vdCLl3PxPqaWxqFBIif 8zSzmZJNXVGN4nl1AvL1qfzzW7mFxt1jzmKAELjnhYDomx4NAyKpxtj4HygbSVD+dIkB omInIBLYdW4t+mCSCmAsiReu8LQ+EbKwV0/T4Pxn+N+ACD3UZ7Bmwns83CLVbXtRlK7s 1B3unh30uHX/yvuQDfOw8ddYGp/ROIu+v4DBbRKpZRROBte5CUYv9zZBnD1C34qbUzwH 4R7e8DfybL1GNBFT4ihZbtbnQhHXPtXtNT7MprS/F9vl7fpYx43K1nb4VFuPMba9DzSf sCTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779525046; x=1780129846; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IWj8ptSzNBKrFt1mxoQKUyY2RzDOkBP4g8UuTE+1+DQ=; b=b4lC1HoFAmZM12UvKTL7rjJr1kQDIULXlujE1nYwMRKsgN8hb3NR/nkQR0jT5LX8iq vyK88j79vQaXPHxtUppSuvZR5mA5x6IM6xP88n8/W5bHyd3Mtay+uTet/ch4f984VxSd vAi3JaVYnYXPm1JB4A7w4oXml8ZmZPOU0SZIG91O/d3fKrNT7chYaZKN6/OFQ1horLGE O+BUWrPH1KLQnw/TSMLm4Y/0LO4e/cY87gL+POt2DVdOUZpsEdlXifnXE9BisPaGa74q 4ntSHei6cKTwLHGOuOOCga/sVSk7sk9wSkioQoh72Yzxko37Q+DG3uiX/qBivVHt593w bspQ== X-Forwarded-Encrypted: i=1; AFNElJ/oACZN0uSetg72uLjxuylL6uL7opOHh/Kiq9KwrRa9fzzJUr8KWLbKJFNFFHOsHEnOfmtYNsWcSftor9c=@vger.kernel.org X-Gm-Message-State: AOJu0YyTPbw9o2d//qeT4PrXdUs50vKwJFzq6j7AECz/pa6GSTm5SGqs 67iiihxUGutI/5esxxwIx9BLA5Rxyd4ykyx7XB4GoXz0IxasRC1h5Adt X-Gm-Gg: Acq92OHhZkyFMFMbCvz6Y6cVEcmAO/p64cyiDBBVXvq905YJx+/j/OCyv5F5fQ70u1T AFWT5qB3Vueem0r904P/qXIjwbJMh7cOQlwb6ftiKOHFPejkw4eSdFOY93f1eYBPIqLPZaH2kap ykku7kOhblcBNgq4jGgAsVda5QJzniAfgD99ZfY8UX5AZUqgqHzBRCekbLrpiT9lKN/Ma18FeNK eIh6TSotYcqXXxDzdSaDmX7Bc9jpbEuh5Is+ERKY9fNb7MUdtEgm6O2HUEJwrckUlPFHbuAkqvN MC0E6yfe0YW0Rtt/uRAM2mY7QU0l/365d7mHxuo3EwAig4xl3xZR9sveIntCcrMVCrx/THEBiMt E614euF7vRBCRXoTF7MjSs4xt9g9aXzx15WLKYhBgJhbWYJYOcsEwm46zJ8jTaOLmsy+f/w9Joz +kNQvuiO4Puj3OO1q3C7hQ3CA= X-Received: by 2002:a05:6402:3719:b0:687:285d:44a8 with SMTP id 4fb4d7f45d1cf-6889c453fa1mr3595245a12.14.1779525045838; Sat, 23 May 2026 01:30:45 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-688bb62b6dfsm1651856a12.30.2026.05.23.01.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2026 01:30:44 -0700 (PDT) From: Svyatoslav Ryhel To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Peter Chen , Svyatoslav Ryhel , Xu Yang , Peng Fan Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] usb: chipidea: tegra: Expose tegra_usb structure Date: Sat, 23 May 2026 11:30:12 +0300 Message-ID: <20260523083013.46372-5-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260523083013.46372-1-clamor95@gmail.com> References: <20260523083013.46372-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The tegra_usb structure is platform data of USB controller and is required for proper controller malipulation if its init/deinit is externally controlled. Signed-off-by: Svyatoslav Ryhel --- drivers/usb/chipidea/ci_hdrc_tegra.c | 13 +------------ include/linux/usb/tegra_usb_phy.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/ci_hdrc_tegra.c index a19cb3b33bf3..109c4afdee4a 100644 --- a/drivers/usb/chipidea/ci_hdrc_tegra.c +++ b/drivers/usb/chipidea/ci_hdrc_tegra.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -23,18 +24,6 @@ #include "ci.h" -struct tegra_usb { - struct ci_hdrc_platform_data data; - struct platform_device *dev; - - const struct tegra_usb_soc_info *soc; - struct usb_phy *phy; - struct clk *clk; - - bool needs_double_reset; - bool externally_controlled; -}; - struct tegra_usb_soc_info { unsigned long flags; unsigned int txfifothresh; diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_usb_phy.h index 6343f88df5de..ba74b7ebfba0 100644 --- a/include/linux/usb/tegra_usb_phy.h +++ b/include/linux/usb/tegra_usb_phy.h @@ -9,6 +9,7 @@ #include #include #include +#include #include struct gpio_desc; @@ -62,6 +63,20 @@ enum tegra_usb_phy_port_speed { TEGRA_USB_PHY_PORT_SPEED_HIGH, }; +struct tegra_usb_soc_info; + +struct tegra_usb { + struct ci_hdrc_platform_data data; + struct platform_device *dev; + + const struct tegra_usb_soc_info *soc; + struct usb_phy *phy; + struct clk *clk; + + bool needs_double_reset; + bool externally_controlled; +}; + struct tegra_xtal_freq; struct tegra_usb_phy { -- 2.51.0