summaryrefslogtreecommitdiff
path: root/drivers/emac-dwc-eqos
AgeCommit message (Collapse)Author
2020-02-20Merge "data-kernel: emac: Emac probe end marker"qctecmdr
2020-02-12data-kernel: EMAC: phy attach optimization.Sunil Paidimarri
Skip phy chip sw reset as we already doing hw reset to improve emac probe time. Change-Id: I2a8696855e97c0b60dfebbe83b9e2bdd6349d24b Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2020-02-11data-kernel: emac: Emac probe end markerLakshit Tyagi
- Add place marker for emac probe end Change-Id: Ia7ba12397dabaa6cfc81c82839458bdea5b08ffd Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2020-01-29Merge "data-kernel: emac: reduce the rw operation to 200ms"qctecmdr
2020-01-29Merge "data-kernel: EMAC: mdio bus register optimization."qctecmdr
2020-01-29data-kernel: emac: Add delay after phy resetSuraj Jaiswal
This add delay of 50ms after phy reset so that phy get sufficient time. Change-Id: Ia75ca969b46c891f6b47bd237cf845d2101ff4d9
2020-01-28Merge "data-kernel: EMAC: Etherent wol optimization."qctecmdr
2020-01-28data-kernel: EMAC: Etherent wol optimization.Suraj Jaiswal
Enable wake on lan on interface open not during ethernet driver probe to reduce driver initialization time. Change-Id: Icee83f29e1276df2ce5287ed790f30368d4d09bc Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2020-01-27data-kernel: EMAC: Etherent phy detection optimization.Suraj Jaiswal
Read phy address from dtis to avoid dynamic phy detection which will reduce ethernet initialization time. Change-Id: I95e4386e98bebf9a71aa186b3ebd20cea758c7db Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2020-01-27data-kernel: EMAC: mdio bus register optimization.Sunil Paidimarri
Populate the phy mask correctly to avoid scanning of all pins for phy detection. Change-Id: Ia730518ffb1dce0d1b4f47c3d9c7f42a7ce7de20 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2020-01-27data-kernel: emac: reduce the rw operation to 200msSunil Paidimarri
fix to reduce MDIO delay in read and write operation in phy regs of the emac driver. Change-Id: I559c4ee00da57547113b83fd980803a4b19b5c03 Acked-by: Abhishek Chauhan <abchauha@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-12-10data-kernel: EMAC: Check NAPI before calling netif_rx_skbSunil Paidimarri
Changes to check if NAPI is enabled and then call netif_rx_skb, else follow the legacy way of calling netif_rx_ni. Acked-by: Abhishek Chauhan <abchauha@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-12-04Merge "data-kernel: EMAC: emac cleanp"qctecmdr
2019-12-04data-kernel: EMAC: emac cleanpSuraj Jaiswal
THis change add support for proper cleanup for Ethernet on shutdown/reboot. Change-Id: I3545905ad8ad0e139cf49f489868c738fd699445
2019-11-26data-kernel: Add io macro settings for emac core version 2.1.1Sunil Paidimarri
Change-Id: I7d661f7bb23e812783d61c63061e19f8e743efff Acked-by: Nisha Menon <nmenon@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-11-25Merge "emac: Perf setting"qctecmdr
2019-11-21data-kernel: Micrel WOL & phy intrSuraj Jaiswal
Due to recent propogation ACK interrupt was removed. This can affect WOL & PHY intr. Added support. Change-Id: I0accb5b754971e9d9e2d58bbe3de15e71be73fe9
2019-11-19emac: Perf settingSuraj Jaiswal
This change add support in emac driver for required performance setting on Talos. Change-Id: I8facf4b72c624484cc4a75d34cd2cfcd5f95f42c
2019-11-08Merge "data-kernel : EMAC: Fixing KW errors"qctecmdr
2019-11-07Merge "data-kernel: EMAC: Fix CRC error on bootup"qctecmdr
2019-11-06Merge "data-kernel: EMAC: ETH KW Errors solved"qctecmdr
2019-11-06data-kernel: EMAC: Fix CRC error on bootupSunil Paidimarri
Change-Id: Ifd30e9d98dd43e31a4c7e3fd804c5fe4426cfbb9 Acked-by: Rahul Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-11-06data-kernel: EMAC: ETH KW Errors solvedLakshit Tyagi
- Added check for NULL pointer access and initialized uninitalized variables. Change-Id: I84dfee37664407fd5a7d1303b0457ea241130cea Acked-by : Sneh Shah <snehshah@qti.qualcomm.com> Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2019-11-06data-kernel: EMAc: add support for different phy chipsSuraj Jaiswal
This change add the phy check for the phy specific code. Change-Id: I28334df4cf16b6108afc7c44bf8e9623b22add98
2019-11-05data-kernel : EMAC: Fixing KW errorsSneh Shah
- Checking for null pointer dereference Change-Id: I163fa32cedbad9f9a6ab19e8371b2a043d7a8884 Signed-off-by: sneh shah <snehshah@codeaurora.org>
2019-11-04data-kernel: emac: Resolving EMAC crashLakshit Tyagi
- resolve EMAC crash caused due improper ip header handling Change-Id: Ia9d4249592a2a0dcfa492cd07dcf25fdf62f70e7 Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2019-11-04Merge "data-kernel: EMAC: suspend resume fix."qctecmdr
2019-11-04Merge "data-kernel: EMAC: Add hibernation mode support."qctecmdr
2019-10-30data-kernel: EMAC: Disable IPA for sa8155 autoLakshit Tyagi
IPA offload was getting enabled in Sa8155 for early ethernet. Disabling it while checking the correct config Change-Id: I4d165aea9dcbf6115218f21f99ff0968664aa2f7 Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2019-10-29data-kernel: EMAC: suspend resume fix.Suraj Jaiswal
This change help for suspend resume.With dev_pm_ops enabled legacy suspend/resume will never happend. Added support to provide the suspend/resume in dev_pm_ops. Change-Id: Ibc74407a90cc12605795222bc31586828caf3278
2019-10-29data-kernel: EMAC: Add hibernation mode support.Sunil Paidimarri
Update EMAC driver to support hibernation mode support. Bring down interface on hibernation mode and up on exi Change-Id: I20591969a56fb30c0a13be617f519bb43119f27d Acked-by: Rahul Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-10-28data-kernel: EMAC: Enable PPS configSunil Paidimarri
Enable PPS config. Change-Id: I1f89c965b0c6234211a059249c4ee1575fa4a3ce Acked-by: Rahul Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-10-25data-kernel: EMAC: PPS Timestamp methodSuraj Jaiswal
This change add support to changed the timestamp update method to Fine timestamp update method instead of Coarse Timestamp Update method since on driver we are using Fine method as default. Also , we are chaniging default PTP clock to 96Mhz to generate 19.2Mhz PPS frequency. Change-Id: Id5c4a22c0163b64762422df0cb3f1e0154515f60
2019-10-25data-kernel: EMAC: Enable PPS-LPASS connectivitySunil Paidimarri
Add new flag to the enable PPS-LPASS connectivity initialziation. Fix the ptp clock frequency initiazation too the. Change-Id: I8296306e9223a846a7c57d94231d05488121bcf4 CRs-Fixed: 2374673 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-10-25data-kernel: EMAC: Fix required PTP clock for accuracySunil Paidimarri
Fix the required PTP clock for accuracy.the Fix sub_second_increment and addend configuration. Change-Id: Ib2b68529d689c1d8c84aadf6a456df0abc77af8b Acked-by: Rahul Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-10-24emac: Enable sleep support for EMAC RXC clockChaitanya Pratapa
EMAC RXC clock is always sourced from PHY. If the GPIO used for RXC clock is multiplexed, there will be interrupt line routed towards GIC and it will be always enabled. As a result, device will never go to low power state. Make a change to disable GPIO pin used for RXC clock when defice goes to suspend and enable it back on resume. Change-Id: I83cab3f77ee05b12004a28f68529566de5fd1faa Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2019-10-03emac: Add route to Local tableSuraj Jaiswal
For Talos as part of early Ethernet we have to add support to add route in local table instead of main table .On Early Ethernet Network manager is not available on Talos to add route .Since on Talos main table is used for route so we need local table. Change-Id: I062d84b007418a2e27bbfb93f7af0c0fcc6fbc82
2019-09-19data-kernel: EMAC: DMA stats fixSuraj Jaiswal
This change help to provide the proper DMA stats for RX/TX for Non-IPA Target. Change-Id: Ibd4b956c041c52cee472a56bca80535d46b50521
2019-09-04data-kernel: remove warningsLakshit Tyagi
- removing all fatal warnings Change-Id: Iadb647ea68b939c98af269761da24e10b36797ea Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2019-09-04emac: remove unsued variableSuraj Jaiswal
Remove unused variable. Change-Id: Ia35cd3ca579c346b48015615e22de36b1368290f
2019-09-04data-kernel: EMAC: Boot KPI markerSuraj Jaiswal
Add a boot marker to indicate the time when driver probe is completed. Change-Id: Icfe65b88fb58e68384e4a67ecc9202032afac3c6
2019-09-04data-kernel: EMAC: Assign ipv6 ULA addressSunil Paidimarri
Read static ipv6 address from flash memory as part of early ethernet boot up and assign the same to eth0 interface Change-Id: I706d4f7f6fc529a12571a5e8a23d6645b23f6392 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel: EMAC: Fixed ethool speed issue.Sunil Paidimarri
Don't modify emac supported capabilities during early ethernet boot up. Only update advertise values otherwise speed can't be changed using ethtool. Change-Id: I06a2d5cd93fec14cd107d7c4c39e704163369e80 CRs-Fixed: 2416416 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel : Add Micrel PHY WOL support in emac driverSunil Paidimarri
Change-Id: I322cf143d509e34fc25d61b435d1570f7f305c5a Acked-by: Nisha Menon <nmenon@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel: EMAC: boot up KPI Fixes phase2Sunil Paidimarri
Enable early ethernet only if there is valid mac and ipv4 or ipv6 address programmed in memory. Change-Id: I08dc1a54efd807c51297d5b35980d0a9751c5211 CRs-Fixed: 2333667 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel: EMAC: boot up KPI changes FixesSunil Paidimarri
Enable early ethernet only if there is valid ipv4 and ipv6 address programmed in memory Change-Id: I9b537c5bb97df69cfee32eb383e3633a2d665113 CRs-Fixed: 2333667 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel: EMAC: Fix unknown symbol errorSunil Paidimarri
Fix the unknown symbols errors introduced due to early ethernet code changes. Change-Id: I60f2870fa34e5a065fa03d14d6aae6cd4ef61aa6 CRs-Fixed: 2333667 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-04data-kernel: EMAC: boot up KPI changesSunil Paidimarri
Read early ethernet dtsi flag to enable this feature. Disable autoneg and configure MAC and PHY with 100 Mbps link speed. Read MAC addr, IPv4 and IPv6 addresses from kernel cmd line parameters in order to assign these to ethernet interface Change-Id: I1e42e116afa818dd0afad89caed65ce7b2c274cb CRs-Fixed: 2333667 Acked-by: Lakshit Tyagi <ltyagi@codeaurora.org> Acked-by: Nisha Menon <nmenon@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-09-02data-kernel: EMAC: Add ethernet app for IP assignmentSunil Paidimarri
Add ethernet app for IP assignment. Correct copyright info. Change-Id: Ie5b3f4750f8bdec2743fb85cf43a38c5142b1364 CRs-Fixed: 2333667 Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2019-08-19data-kernel: EMAC: Fix completion event for clock enableSunil Paidimarri
Clock enable completion event is used only in intr mode. Fix the warnings in enable/disable irq for wol. Add the PHY pm_wakeup_event in interrupt handler. CRs-Fixed: 2327922 Acked-by: Rahul Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org> Change-Id: I0c219c88a392bbf848e41ee6796f38382907510d