mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ciminaghi@gnudd.com
To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
	x86@kernel.org, rubini@gnudd.com, sameo@linux.intel.com
Cc: giancarlo.asnaghi@st.com, linux-kernel@vger.kernel.org,
	Davide Ciminaghi <ciminaghi@gnudd.com>
Subject: [PATCH 2/2] x86, pci sta2x11-fixup: add function to access sta2x11 instance id.
Date: Thu, 20 Sep 2012 18:44:09 +0200	[thread overview]
Message-ID: <1348159449-21583-3-git-send-email-ciminaghi@gnudd.com> (raw)
In-Reply-To: <1348159449-21583-1-git-send-email-ciminaghi@gnudd.com>

From: Davide Ciminaghi <ciminaghi@gnudd.com>

The sta2x11 instance id will be included in clock names to make them
unique in case of multiple sta2x11's living on the same machine.

Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com>
---
 arch/x86/pci/sta2x11-fixup.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c
index 478c228..6450853 100644
--- a/arch/x86/pci/sta2x11-fixup.c
+++ b/arch/x86/pci/sta2x11-fixup.c
@@ -138,6 +138,12 @@ struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev)
 }
 EXPORT_SYMBOL(sta2x11_get_instance);
 
+int sta2x11_get_instance_id(struct sta2x11_instance *instance)
+{
+	return instance->bus0;
+}
+EXPORT_SYMBOL(sta2x11_get_instance_id);
+
 
 /**
  * p2a - Translate physical address to STA2x11 AMBA address,
-- 
1.7.9.1


  parent reply	other threads:[~2012-09-20 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 16:44 [PATCH 0/2] x86, pci: sta2x11-fixup clock related patches ciminaghi
2012-09-20 16:44 ` [PATCH 1/2] x86, pci sta2x11-fixup: add clk related field to struct sta2x11_instance ciminaghi
2012-09-20 16:44 ` ciminaghi [this message]
2012-09-20 19:10 ` [PATCH 0/2] x86, pci: sta2x11-fixup clock related patches Alessandro Rubini
2012-09-21 20:21   ` Davide Ciminaghi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348159449-21583-3-git-send-email-ciminaghi@gnudd.com \
    --to=ciminaghi@gnudd.com \
    --cc=giancarlo.asnaghi@st.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rubini@gnudd.com \
    --cc=sameo@linux.intel.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®