Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490753
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arnd Bergmann <arnd@arndb.de> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 |
| Date | Sat, 24 Sep 2016 23:10:01 +0200 |
| Message-ID | <sl2mR-66S-9@gated-at.bofh.it> (permalink) |
| References | <shh18-no-5@gated-at.bofh.it> <skB3j-5Jn-17@gated-at.bofh.it> <skQlH-74g-3@gated-at.bofh.it> |
| User-Agent | KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7Bit |
| Content-Type | text/plain; charset="us-ascii" |
| X-Provags-ID | V03:K0:7Ds6oPcwEtBrlMrtMBAtLxY8g2tBY1q85C/a9O3uE6B/1hKgGCf FmkK3oYfNWlF2u4u1dIKkQ4DZceLsk6g4FPJHuwR8BS6uHXEuvjBPa6TazH7svd90MLsVyk hpQxYUSjhIakr+2tk/9+QKi+/LszhbqJ+fav1pPB+YXuGcLQMFxY6w33ggR0744hyIHN4kI LlOn3V1MgHEJO43tRoZyg== |
| X-Ui-Out-Filterresults | notjunk:1;V01:K0:kHmZTMqcTsk=:ssCQ9kTHvT7mzKLB1Dugo6 RHgTNkgWm2aY16edFZuu1Tc+bnnZP1vi8UeQ4BLb/2mUxSZGzZorZ7KuWN2WWUzl0ddJLYzn2 2GXHnZoaSn2tnN3AuJDt5hIdWLavDuHvKjGy/RBeBXumeytRkoFGWOkSNZJEe5w8u9TYwYmFq QgaW+AMV2+JbrTsBHEELcjLAd1wC3+9+VRl0xp7p2wbv1tA2+mqvWSoTHxZSRuTRsYuAOH5eP 8559iZ5k3Y2+m2Wgok38p7Ng5p4JMZ2vkGy0dW5TpThqzDm/rlh79DjY74zoN4v/Qhf+5tUST adtCvh0J/x0Q5vcDwk9qXdv4W5953AYA7kune0f45L9yZYeEZpzKdfcT1819OdvsbMZPCo/Rp LV01Dpxk/b5YQrNMsImMBNdfrmKnbbLFHa+cxFVwYX/tFNYEXCRSfM89GdyXMS00vVUnp1ubi t0V54W34IFDkQDrIpbWvPT3rXSF4NYryP/0vrMtAFnfoSZDhh34llrGXc6ldSiewZbl5NLkxO NxTsBh1KBpM7y4bWq0pU6aiinNzmZfuhT4Ucm8XNnqqts0dBxFGdwXxbjzPD0jlEQfZ8cJbVN Nwh+DsY49xtyHltVA6esR2fqBWVOAz7XhP81Zys4Qv9zn9RNpvhdJRMicKQ8q4nxBQS1U0yl6 67yBQCWUsXstlZXiKuIPMdUHAL4CS+yNdy6aYGbsbJqkNHfumzS7NtAdqUveB9zl7P381kwr5 GPSYOSjaPKrWWz8k |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | zhichang <zhichang.yuan02@gmail.com>, Gabriele Paoloni <gabriele.paoloni@huawei.com>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "lorenzo.pieralisi@arm.com" <lorenzo.pieralisi@arm.com>, "benh@kernel.crashing.org" <benh@kernel.crashing.org>, "minyard@acm.org" <minyard@acm.org>, "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>, John Garry <john.garry@huawei.com>, "will.deacon@arm.com" <will.deacon@arm.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Yuanzhichang <yuanzhichang@hisilicon.com>, Linuxarm <linuxarm@huawei.com>, "xuwei (O)" <xuwei5@hisilicon.com>, "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>, "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, "zourongrong@gmail.com" <zourongrong@gmail.com>, "liviu.dudau@arm.com" <liviu.dudau@arm.com>, "kantyzc@163.com" <kantyzc@163.com> |
| X-Original-Date | Sat, 24 Sep 2016 23:00:40 +0200 |
| X-Original-Message-ID | <2866656.cISrGNv8pP@wuerfel> |
| X-Original-References | <1473855354-150093-1-git-send-email-yuanzhichang@hisilicon.com> <1849232.KJrfRPHGN6@wuerfel> <05a573de-e963-6590-6ed3-55af97067d7a@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1490753 |
Show key headers only | View raw
On Saturday, September 24, 2016 4:14:15 PM CEST zhichang wrote:
>
> In V3, the outb is :
>
> void outb(u8 value, unsigned long addr)
> {
> if (!arm64_extio_ops || arm64_extio_ops->start > addr ||
> arm64_extio_ops->end < addr)
> writeb(value, PCI_IOBASE + addr);
> else
> if (arm64_extio_ops->pfout)
> arm64_extio_ops->pfout(arm64_extio_ops->devpara,
> addr + arm64_extio_ops->ptoffset, &value,
> sizeof(u8), 1);
> }
>
> here, arm64_extio_ops->ptoffset is the offset between the real legacy IO address
> and the logical IO address, similar to the offset of primary address and
> secondary address in PCI bridge.
Ok, though we can probably simplify this by making the assumption that
'ptoffset' is the negative of 'start', as the bus we register should
always start at port zero.
> But in V3, LPC driver call pci_address_to_pio to request the logical IO as PCI
> host bridge during its probing.
Right, so this still needs to be fixed.
Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 Arnd Bergmann <arnd@arndb.de> - 2016-09-23 15:50 +0200
RE: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-09-23 17:10 +0200
Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 Arnd Bergmann <arnd@arndb.de> - 2016-09-23 18:00 +0200
Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 zhichang <zhichang.yuan02@gmail.com> - 2016-09-24 10:20 +0200
Re: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 Arnd Bergmann <arnd@arndb.de> - 2016-09-24 23:10 +0200
RE: [PATCH V3 2/4] ARM64 LPC: LPC driver implementation on Hip06 Gabriele Paoloni <gabriele.paoloni@huawei.com> - 2016-09-26 15:30 +0200
csiph-web