[PATCH 6/8] crypto: mediatek - fix typo and indentation

2017-01-19 Thread Ryder Lee
Dummy patch to fix typo and indentation. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c | 90 +- drivers/crypto/mediatek/mtk-platform.h | 2 +- drivers/crypto/mediatek/mtk-sha.c | 40 +++ 3

[PATCH 5/8] crypto: mediatek - regroup functions by usage

2017-01-19 Thread Ryder Lee
This patch only regroup functions by usage. This will help to integrate the GCM support patch later by adjusting some shared code section, such as common code which will be reused by GCM, AES mode setting, and DMA transfer. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/

[PATCH 8/8] crypto: mediatek - add support to GCM mode

2017-01-19 Thread Ryder Lee
This patch adds support to the GCM mode. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/Kconfig | 2 + drivers/crypto/mediatek/mtk-aes.c | 369 - drivers/crypto/mediatek/mtk-platform.h | 2 + 3 files change

[PATCH 0/8] update mediatek crypto driver

2017-01-19 Thread Ryder Lee
with modes: - 211: rfc4106(gcm(aes)), gcm(aes) - 500: ecb(aes), cbc(aes), ctr(aes), rfc3686(ctr(aes)) - 403 ~ 406: sha1, sha2 family IxChariot multiple pairs throughput 24 hours test: - IPSec VPN - MACSec Ryder Lee (8): crypto: mediatek - move HW control data to transformation context crypto

[PATCH 7/8] crypto: mediatek - add support to CTR mode

2017-01-19 Thread Ryder Lee
This patch adds support to the CTR mode. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c | 151 -- 1 file changed, 146 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/

[PATCH 1/8] crypto: mediatek - move HW control data to transformation context

2017-01-19 Thread Ryder Lee
This patch moves hardware control block members from mtk_*_rec to transformation context and refines related definition. This makes operational context to manage its own control information easily for each DMA transfer. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/

[PATCH 3/8] crypto: mediatek - make crypto request queue management more generic

2017-01-19 Thread Ryder Lee
of all the transformation contexts. Hence the very same queue will be used to manage both block cipher and AEAD requests (such as gcm and authenc implemented in further patches). Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c

[PATCH 2/8] crypto: mediatek - fix incorrect data transfer result

2017-01-19 Thread Ryder Lee
ops and uses cmd_pos and res_pos to record them respectively. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c | 44 -- drivers/crypto/mediatek/mtk-platform.h | 6 +++-- drivers/crypto/mediatek/mtk-sha.c

[PATCH 4/8] crypto: mediatek - rework crypto request completion

2017-01-19 Thread Ryder Lee
-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c | 25 + drivers/crypto/mediatek/mtk-platform.h | 3 +++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek/mtk

Re: [PATCH v1 1/2] Add crypto driver support for some MediaTek chips

2016-12-08 Thread Ryder Lee
Hello, On Mon, 2016-12-05 at 09:52 +0100, Corentin Labbe wrote: > Hello > > I have two minor comment. > > On Mon, Dec 05, 2016 at 03:01:23PM +0800, Ryder Lee wrote: > > This adds support for the MediaTek hardware accelerator on > > mt7623/mt2701/mt8521p SoC. >

Re: [PATCH v1 2/2] crypto: mediatek - add DT bindings documentation

2016-12-08 Thread Ryder Lee
Hello, On Mon, 2016-12-05 at 11:18 +0100, Matthias Brugger wrote: > > On 05/12/16 08:01, Ryder Lee wrote: > > Add DT bindings documentation for the crypto driver > > > > Signed-off-by: Ryder Lee <ryder@mediatek.com> > > --- > > .../devicetre

[PATCH v2 0/2] Add MediaTek crypto accelerator driver

2016-12-12 Thread Ryder Lee
and function comment - add COMPILE_TEST in Kconfig Ryder Lee (2): Add crypto driver support for some MediaTek chips crypto: mediatek - add DT bindings documentation .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 + drivers/crypto/Kconfig | 17 + drivers

[PATCH v2 1/2] Add crypto driver support for some MediaTek chips

2016-12-12 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash algorithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- d

[PATCH v2 2/2] crypto: mediatek - add DT bindings documentation

2016-12-12 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/me

Re: [PATCH 1/2] Add crypto driver support for some MediaTek chips

2016-12-02 Thread Ryder Lee
Hello, On Fri, 2016-12-02 at 09:18 +0100, Corentin Labbe wrote: > Hello > > I have some minor comment inline > > On Fri, Dec 02, 2016 at 11:26:44AM +0800, Ryder Lee wrote: > > This adds support for the MediaTek hardware accelerator on > > mt7623/mt2701/mt8521

[PATCH 1/2] Add crypto driver support for some MediaTek chips

2016-12-01 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash alogrithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- d

[PATCH 2/2] crypto: mediatek - add DT bindings documentation

2016-12-01 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/me

[PATCH 0/2] Add MediaTek crypto acclelrator driver

2016-12-01 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623 SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash alogrithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Ryder Lee (2): Add crypto driver support for some MediaTek chips crypto

[PATCH v1 0/2] Add MediaTek crypto acclelrator driver

2016-12-04 Thread Ryder Lee
- sort headers in alphabetical order - add a definition for IRQ unmber - replace ambiguous definition - add more annotation and function comment - add COMPILE_TEST in Kconfig Ryder Lee (2): Add crypto driver support for some MediaTek chips crypto: mediatek - add DT bindings documentation

[PATCH v1 2/2] crypto: mediatek - add DT bindings documentation

2016-12-04 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/me

[PATCH v1 1/2] Add crypto driver support for some MediaTek chips

2016-12-04 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash alogrithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- d

[PATCH v3 0/2] Add MediaTek crypto accelerator driver

2016-12-18 Thread Ryder Lee
in alphabetical order - add a definition for IRQ unmber - replace ambiguous definition - add more annotation and function comment - add COMPILE_TEST in Kconfig Ryder Lee (2): Add crypto driver support for some MediaTek chips crypto: mediatek - add DT bindings documentation .../devicetree/bindings

[PATCH v3 1/2] Add crypto driver support for some MediaTek chips

2016-12-18 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash algorithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- d

[PATCH v3 2/2] crypto: mediatek - add DT bindings documentation

2016-12-18 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/me

Re: [PATCH] ASoC: mediatek: add I2C dependency for CS42XX8

2017-04-20 Thread Ryder Lee
Audio driver for MT2701 with WM8960 codec" > - depends on SND_SOC_MT2701 > + depends on SND_SOC_MT2701 && I2C > select SND_SOC_WM8960 > help > This adds ASoC driver for Mediatek MT2701 boards Acked-by: Ryder Lee <ryder@mediatek.com> Thanks

[PATCH 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-04-23 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../bindings/pci/mediatek,mt7623-pcie.txt | 153 + 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-04-23 Thread Ryder Lee
Hi, This patch series add PCIe phy driver and related dt-binding file for Mediatek mt7623 SoCs families. Thanks. Ryder Lee (2): phy: add PCIe phy driver for mt7623 SoCs families dt-bindings: phy: Add documentation for Mediatek PCIe PHY .../devicetree/bindings/phy/phy-mt7623-pcie.txt

[PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-23 Thread Ryder Lee
Add support for the Mediatek PCIe controller which can be found on MT7623A/N, MT2701 and MT8521p platforms. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c

[PATCH 0/2] Add PCIe host driver support for some Mediatek SoCs

2017-04-23 Thread Ryder Lee
Hi, This patch series add PCIe host controller driver and dt-binding documentation for Mediatek mt7623 SoCs families. This driver was validated using Broadcom Tigon3 ethernet card. Ryder Lee (2): PCI: mediatek: Add Mediatek PCIe host controller support dt-bindings: pcie: Add documentation

[PATCH 1/2] phy: add PCIe phy driver for mt7623 SoCs families

2017-04-23 Thread Ryder Lee
support PCIe phy of mt7623 SoCs families Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/phy/Kconfig | 9 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-mt7623-pcie.c | 290 ++ 3 files changed, 300 insertions(+)

[PATCH 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-04-23 Thread Ryder Lee
Add documentation for PCIe PHY available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/p

[PATCH v1 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-01 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devi

[PATCH v1 0/2] Add support for MediaTek AHCI SATA

2017-08-01 Thread Ryder Lee
"specifier pairs" descriptions. - fix kbuild test warning: fix the error handling. Ryder Lee (2): ata: mediatek: add support for MediaTek SATA controller dt-bindings: ata: add DT bindings for MediaTek SATA controller Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++ drivers/a

[PATCH v1 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-01 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3

[PATCH] crypto: mediatek - Add empty messages check in GCM mode

2017-08-16 Thread Ryder Lee
Currently, empty messages are not supported in GCM mode, hence add a check to prevent producing incorrect results. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/crypto/mediatek/mtk-aes.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/crypto/mediatek/mtk-ae

Re: [PATCH] crypto: mediatek - Add empty messages check in GCM mode

2017-08-16 Thread Ryder Lee
Hi, On Wed, 2017-08-16 at 14:18 +0200, Stephan Mueller wrote: > Am Mittwoch, 16. August 2017, 13:19:48 CEST schrieb Ryder Lee: > > Hi Ryder, > > > Currently, empty messages are not supported in GCM mode, hence add > > a check to prevent producing incorrect results. >

Re: [PATCH v5 18/19] crypto: mediatek: move to generic async completion

2017-08-14 Thread Ryder Lee
On Mon, 2017-08-14 at 18:21 +0300, Gilad Ben-Yossef wrote: > The mediatek driver starts several async crypto ops and waits for their > completions. Move it over to generic code doing the same. > > Signed-off-by: Gilad Ben-Yossef <gi...@benyossef.com> > --- Acked

[PATCH] ASoC: mediatek: Correct the interrupt property

2017-08-15 Thread Ryder Lee
This patch update interrupt property since we only use ASYS IRQ in the driver, and this may confuse people. Signed-off-by: Ryder Lee <ryder@mediatek.com> CC: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 5 ++--- 1 fil

Re: [PATCH] ASoC: mediatek: Correct the interrupt property

2017-08-15 Thread Ryder Lee
On Tue, 2017-08-15 at 12:53 +0100, Mark Brown wrote: > On Tue, Aug 15, 2017 at 04:07:02PM +0800, Ryder Lee wrote: > > > This patch update interrupt property since we only use ASYS IRQ > > in the driver, and this may confuse people. > >

[PATCH v3 0/2] Add support for MediaTek AHCI SATA

2017-08-11 Thread Ryder Lee
dd missing "specifier pairs" descriptions. - fix kbuild test warning: fix the error handling. Ryder Lee (2): ata: mediatek: add support for MediaTek SATA controller dt-bindings: ata: add DT bindings for MediaTek SATA controller Documentation/devicetree/bindings/ata/ahci-mtk.txt | 51 ++

Re: [PATCH] PCI: mediatek: add msi support for mt2712 and mt7622

2017-08-11 Thread Ryder Lee
Hi Honghui, On Fri, 2017-08-11 at 20:27 +0800, honghui.zh...@mediatek.com wrote: ... > +static void mtk_pcie_enable_msi(struct mtk_pcie_port *port) > +{ > + u32 val; > + > + val = lower_32_bits((u64)(port->base + PCIE_MSI_VECTOR)); > + writel(val, port->base + PCIE_IMSI_ADDR); > + > +

[PATCH v3 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-11 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3

[PATCH v3 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-11 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devi

[PATCH] pinctrl: mediatek: update PCIe pinmux data

2017-08-17 Thread Ryder Lee
Update pinmux data so that PCIe function can work normally. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinct

Re: [PATCH] pinctrl: mediatek: update PCIe pinmux data

2017-08-17 Thread Ryder Lee
Hi Linus, Please ignore this wrong patch. Sorry for the inconvenience. On Thu, 2017-08-17 at 16:57 +0800, Ryder Lee wrote: > Update pinmux data so that PCIe function can work normally. > > Signed-off-by: Ryder Lee <ryder@mediatek.com> > --- > drivers/pinctrl/mediatek

Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-10 Thread Ryder Lee
Hi Rob, Sorry for the noise letter. On Fri, 2017-08-11 at 10:25 +0800, Ryder Lee wrote: > > > +Required properties: > > > + - compatible : Must be "mediatek,ahci". > > > > SoC specific compatible strings please. > > Okay. I took a look at ./

Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-10 Thread Ryder Lee
On Thu, 2017-08-10 at 15:51 -0500, Rob Herring wrote: > On Mon, Aug 07, 2017 at 05:52:21PM +0800, Ryder Lee wrote: > > Add DT bindings for the onboard SATA controller present on the MediaTek > > SoCs. > > > > Signed-off-by: Ryder Lee <ryder@mediatek.com> >

[PATCH 0/2] Add support for MediaTek AHCI SATA

2017-07-27 Thread Ryder Lee
Hi, This patch series add support for AHCI compatible SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. This driver is slightly different than ahci_platform.c (eg. reset control, subsystem setting). Ryder Lee (2): ata: mediatek: add support for MediaTek SATA

[PATCH 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-07-27 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3

[PATCH 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-07-27 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devi

Re: [PATCH v5 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-06-28 Thread Ryder Lee
On Wed, 2017-06-28 at 14:53 -0500, Bjorn Helgaas wrote: > On Sun, May 21, 2017 at 11:42:24AM +0800, Ryder Lee wrote: > > Add support for the Mediatek PCIe Gen2 controller which can > > be found on MT7623 series SoCs. > > > > Signed-off-by: Ryder Lee <ryder@medi

[PATCH] PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags

2017-07-02 Thread Ryder Lee
The PCI_REASSIGN_ALL_RSRC and PCI_REASSIGN_ALL_BUS flags are not needed, since we should automatically assign resources if the firmware hasn't done it. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/pcie-mediatek.c | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-26 Thread Ryder Lee
Hi, On Tue, 2017-04-25 at 14:38 +0200, Arnd Bergmann wrote: > On Sun, Apr 23, 2017 at 10:19 AM, Ryder Lee <ryder@mediatek.com> wrote: > > > +static inline bool mtk_pcie_link_is_up(struct mtk_pcie_port *port) > > +{ > > + return !!(readl_relaxed

Re: Re: [PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-24 Thread Ryder Lee
Hi, On Mon, 2017-04-24 at 17:02 -0500, Bjorn Helgaas wrote: > Hi Ryder, > > Looks good, but I have a few questions below. > > On Sun, Apr 23, 2017 at 04:19:02PM +0800, Ryder Lee wrote: > > Add support for the Mediatek PCIe controller which can be found > > on MT

Re: [PATCH 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-04-27 Thread Ryder Lee
On Thu, 2017-04-27 at 21:06 +0200, Arnd Bergmann wrote: > On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee <ryder@mediatek.com> wrote: > > Hi > > > > On Tue, 2017-04-25 at 14:18 +0200, Arnd Bergmann wrote: > >> On Sun, Apr 23, 2017 at 10:19 AM, Ryder Lee <ry

Re: [PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-27 Thread Ryder Lee
Hi, On Thu, 2017-04-27 at 20:55 +0200, Arnd Bergmann wrote: > On Wed, Apr 26, 2017 at 10:10 AM, Ryder Lee <ryder@mediatek.com> wrote: > > On Tue, 2017-04-25 at 14:38 +0200, Arnd Bergmann wrote: > >> On Sun, Apr 23, 2017 at 10:19 AM, Ryder Lee <ryder@mediatek.co

[PATCH v1 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-04-28 Thread Ryder Lee
Add binding document for Mediatek PCIe Gen2 v1 host controller driver. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- .../bindings/pci/mediatek,gen2v1-pcie.txt | 174 + 1 file changed, 174 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH v1 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-28 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 V1 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c

[PATCH v1 0/2] Add PCIe host driver support for Mediatek SoCs

2017-04-28 Thread Ryder Lee
interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_host_bridge() method instead of pci_scan_root_bus(). Ryder Lee (2): PCI: mediatek: Add Mediatek PCIe host controller support dt-bindings: pcie: Add documentation for Mediatek PCIe

Re: [PATCH v3 5/6] PCI: mediatek: Add new generation controller support

2017-08-05 Thread Ryder Lee
Hi Honghui, If you plan to send next version, then I would suggest some minor changes. On Fri, 2017-08-04 at 20:06 +0800, honghui.zh...@mediatek.com wrote: > +#define PCIE_CRSTB BIT(3) > +#define PCIE_PERSTB BIT(8) > +#define PCI_LINKDOWN_RST_EN GENMASK(15, 13)

Re: [PATCH v2 4/5] PCI: mediatek: Add new generation controller support

2017-08-04 Thread Ryder Lee
Hi Honghui, Bjorn, On Fri, 2017-08-04 at 08:18 -0500, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 04:39:36PM +0800, Honghui Zhang wrote: > > On Thu, 2017-08-03 at 17:42 -0500, Bjorn Helgaas wrote: > > > > + > > > > +static struct mtk_pcie_port *mtk_pcie_find_port(struct mtk_pcie *pcie, > > > >

Re: [PATCH v2 4/5] PCI: mediatek: Add new generation controller support

2017-08-05 Thread Ryder Lee
On Sat, 2017-08-05 at 12:52 +0800, Ryder Lee wrote: > Hi Honghui, Bjorn, > > On Fri, 2017-08-04 at 08:18 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 04:39:36PM +0800, Honghui Zhang wrote: > > > On Thu, 2017-08-03 at 17:42 -0500, Bjorn Helgaas wrote: >

Re: [PATCH 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-07-28 Thread Ryder Lee
On Fri, 2017-07-28 at 12:20 +0300, Sergei Shtylyov wrote: > > +Required properties: > > + - compatible : Must be "mediatek,ahci". > > + - reg: Physical base addresses and length of register > > sets. > > + - interrupts : Interrupt associated with the SATA device. >

[PATCH v2 0/2] Add support for MediaTek AHCI SATA

2017-08-07 Thread Ryder Lee
reset: Ensure drivers are explicit when requesting reset lines"). replace devm_reset_control_get_optional() by devm_reset_control_get_optional_exclusive(). changes since v1: - update binding text: add missing "specifier pairs" descriptions. - fix kbuild test warning: fix the error

[PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-07 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devi

[PATCH v2 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-07 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3

[PATCH v4 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-17 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Tejun Heo <t...@kernel.org> --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci

[PATCH v4 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-17 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 51 ++ 1 file changed, 51 insertion

[PATCH v4 0/2] Add support for MediaTek AHCI SATA

2017-08-17 Thread Ryder Lee
control_get_optional() by devm_reset_control_get_optional_exclusive(). changes since v1: - update binding text: add missing "specifier pairs" descriptions. - fix kbuild test warning: fix the error handling. Ryder Lee (2): ata: mediatek: add support for MediaTek SATA controller dt-

[PATCH v1 1/2] ASoC: mediatek: Add interrupt-names property in binding text

2017-08-17 Thread Ryder Lee
Add interrupt-names property in DT - if future revisions of the IP have different sets of interrupts the binding can adapt gracefully. Signed-off-by: Ryder Lee <ryder@mediatek.com> CC: Garlic Tseng <garlic.ts...@mediatek.com> --- Documentation/devicetree/bindings/sound/mt2701-afe

[PATCH v1 2/2] ASoC: mediatek: switch to use platform_get_irq_byname()

2017-08-17 Thread Ryder Lee
Switch to use platform_get_irq_byname() so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee <ryder@mediatek.com> CC: Garlic Tseng <garlic.ts...@mediatek.com> --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 13 ++--- 1 file changed, 6 insertions(+),

Re: [PATCH v2 0/3] PCI: mediatek: Add MSI support for MT2712 and MT7622

2017-08-22 Thread Ryder Lee
157 > > +++++++++-- > > 1 file changed, 151 insertions(+), 6 deletions(-) > > Just waiting for an ack from Ryder... For whole series: Acked-by: Ryder Lee <ryder@mediatek.com>

[PATCH] pinctrl: mediatek: update PCIe mux data for MT7623

2017-08-17 Thread Ryder Lee
MT2701 shares the same driver with MT7623, but there is a slight difference between their pin functions (e.g., PCIe), so we update the different parts in pinmux table. Doing so, SoC could choose the correct mux setting via their own pinfun.h. Signed-off-by: Ryder Lee <ryder@mediatek.com&

[PATCH v4 0/2] Add PCIe host driver support for Mediatek SoCs

2017-05-14 Thread Ryder Lee
/pci_generic_config_write. - revise dt-binding document and move nonstandard properties to root node. - change compatible string. - use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_host_bridge() method instead of pci_scan_root_bus() Ryder Lee (2

[PATCH v4 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-14 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c

[PATCH v4 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-14 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/pci/mediatek,mt7623-pcie.txt | 130 + 1 file changed, 130 insertions(+)

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 10:08 +0200, Arnd Bergmann wrote: > On Wed, May 10, 2017 at 4:07 AM, Ryder Lee <ryder@mediatek.com> wrote: > > > +- ranges: > > + - The first three entries are expected to translate the addresses for > > the root > > +

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 09:58 +0200, Matthias Brugger wrote: > > On 10/05/17 04:07, Ryder Lee wrote: > > Add documentation for PCIe host driver available in MT7623 > > series SoCs. > > > > Signed-off-by: Ryder Lee <ryder@mediatek.com> > &

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 12:01 +0200, Arnd Bergmann wrote: > On Wed, May 10, 2017 at 11:31 AM, Ryder Lee <ryder@mediatek.com> wrote: > > On Wed, 2017-05-10 at 10:08 +0200, Arnd Bergmann wrote: > >> On Wed, May 10, 2017 at 4:07 AM, Ryder Lee <ryder@mediatek.com>

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-11 Thread Ryder Lee
On Thu, 2017-05-11 at 09:17 +0200, Arnd Bergmann wrote: > On Thu, May 11, 2017 at 4:44 AM, Ryder Lee <ryder@mediatek.com> wrote: > > On Wed, 2017-05-10 at 12:01 +0200, Arnd Bergmann wrote: > >> On Wed, May 10, 2017 at 11:31 AM, Ryder Lee <ryder@mediatek.com>

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-11 Thread Ryder Lee
Hi Arnd, I want to further explain what I have discussed in previous mail. On Thu, 2017-05-11 at 17:08 +0800, Ryder Lee wrote: > On Thu, 2017-05-11 at 09:17 +0200, Arnd Bergmann wrote: > > On Thu, May 11, 2017 at 4:44 AM, Ryder Lee <ryder@mediatek.com> wrote: > > >

[PATCH v3 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-09 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c

[PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-09 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/pci/mediatek,mt7623-pcie.txt | 149 + 1 file changed, 149 insertions(+)

[PATCH v3 0/2] Add PCIe host driver support for Mediatek SoCs

2017-05-09 Thread Ryder Lee
properties to root node. - change compatible string. - use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_host_bridge() method instead of pci_scan_root_bus(). Ryder Lee (2): PCI: mediatek: Add Mediatek PCIe host controller support dt

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-13 Thread Ryder Lee
Hi Arnd, Sorry to bother you again. On Thu, 2017-05-11 at 20:11 +0800, Ryder Lee wrote: > > interrupt-map-mask = <0xff800 0 0 0>; > > interrupt-map = <0x 0 0 0 GIC_SPI 193 IRQ_TYPE_NONE>, > > <0x0800 0 0 0 GIC_SPI 194 IRQ_TYPE_NONE>, >

[PATCH] PCI: mediatek: change to use pci_scan_root_bus_bridge()

2017-06-26 Thread Ryder Lee
bridge(). Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/pcie-mediatek.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c index 3baafa8..514ef34 100644 --- a/drivers/pci/host/pcie-medi

[PATCH] critical patch to fix build bot failed

2017-06-26 Thread Ryder Lee
to handle this situation? I'm really not sure how to fix it in proper ways. Thanks a lot. Ryder Ryder Lee (1): PCI: mediatek: change to use pci_scan_root_bus_bridge() drivers/pci/host/pcie-mediatek.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) -- 1.9.1

[RESEND PATCH] critical patch to fix pci-tree build bot failure

2017-06-27 Thread Ryder Lee
-rc7 now. This is because pci/host-mediatek is a seperate branch in pci-tree, but merge together without proper modifications(eg. some API changes). Hi Bjorn, I rewrote commit message. Please ignore my previous one, sorry for inconvenience. Thanks a lot! Ryder Lee (1): PCI: mediatek: change

[PATCH] PCI: mediatek: change to use the new host bridge interface

2017-06-27 Thread Ryder Lee
-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/pcie-mediatek.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c index 3baafa8..514ef34 100644 --- a/drivers/pci/host/pcie-mediatek.c +++ b/d

Re: [PATCH v2 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-24 Thread Ryder Lee
Hi Kishon, I'd like to rename driver name to make it more generic so that we could reuse it for other MTK SoCs, and I'll resend patches with a new name. Sorry for the inconvenience. Ryder. On Sun, 2017-05-21 at 11:43 +0800, Ryder Lee wrote: > Hi, > > This patch series add PCIe p

[PATCH v3 1/2] phy: add PCIe PHY driver for Mediatek SoCs

2017-05-24 Thread Ryder Lee
This patch adds a generic PCIe PHY driver for Mediatek SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 + drivers/phy/phy-mediatek-pcie.c | 290 3 files c

[PATCH v3 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-24 Thread Ryder Lee
Add dt-binding information for Mediatek PCIe PHY Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/phy/phy-mediatek-pcie.txt | 64 ++ 1 file changed, 64 insertions(+) create mode 100644 D

[PATCH v3 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-24 Thread Ryder Lee
if needed in the future. - correct some anotations. Changes since v2: - rebase to v4.12-rc1 Changes since v1: - revise binding document: drop 'status' properties. add a description to 'phy-switch' property and add vendor prefix. Ryder Lee (2): phy: add PCIe PHY driver for Mediatek SoCs dt

Re: [PATCH v3 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-21 Thread Ryder Lee
On Sat, 2017-05-20 at 15:46 -0400, Paul Gortmaker wrote: > On Tue, May 9, 2017 at 10:06 PM, Ryder Lee <ryder@mediatek.com> wrote: > > Add support for the Mediatek PCIe Gen2 controller which can > > be found on MT7623 series SoCs. > > > > Signed-off-by:

[PATCH v2 1/2] phy: add PCIe PHY driver for mt7623 SoCs families

2017-05-20 Thread Ryder Lee
support PCIe PHY of MT7623 SoCs families Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-mt7623-pcie.c | 290 ++ 3 files changed, 299 insertions(+)

[PATCH v5 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-20 Thread Ryder Lee
Add documentation for PCIe host driver available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/pci/mediatek,mt7623-pcie.txt | 130 + 1 file changed, 130 insertions(+)

[PATCH v2 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-20 Thread Ryder Lee
. Ryder Lee (2): phy: add PCIe PHY driver for mt7623 SoCs families dt-bindings: phy: Add documentation for Mediatek PCIe PHY .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 63 + drivers/phy/Kconfig| 8 + drivers/phy/Makefile

[PATCH v2 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-20 Thread Ryder Lee
Add documentation for PCIe PHY available in MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/phy/phy-mt7623-pcie.txt| 63 ++ 1 file changed, 63 insertions(+) create

[PATCH v5 0/2] Add PCIe host driver support for Mediatek SoCs

2017-05-20 Thread Ryder Lee
. - revise dt-binding document and move nonstandard properties to root node. - change compatible string. - use interrupt-map property and replace mtk_pcie_map_irq() with of_irq_parse_and_map_pci(). - use the new pci_register_host_bridge() method instead of pci_scan_root_bus()* Ryder Lee (2): PCI

[PATCH v5 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-05-20 Thread Ryder Lee
Add support for the Mediatek PCIe Gen2 controller which can be found on MT7623 series SoCs. Signed-off-by: Ryder Lee <ryder@mediatek.com> --- drivers/pci/host/Kconfig | 11 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pcie-mediatek.c

  1   2   3   4   >