This change addes USB controller device name for msmcobalt as it
is required to bind USB gadget driver with controller driver.
CRs-Fixed: 995109
Change-Id: If51e5a23911e8f1a086c95dba2e316a974efb2ad
This change adds required support and relevant rules to select and
use USB composition using configFS.
Change-Id: I91c45180e3c64800eebbbb4a0c26157003dbbee1
Revision ID check for MSM8996 platform is not required. Hence
remove the same. Also remove baseband related check as usage
is deprecated and keep only required transport check with
esoc_link to simplify selection of USB default composition.
Change-Id: I935e11edb4ea856b3af931a8c8ec4c74464b5b19
Set RNDIS transports to BAM2BAM_IPA for enabling RNDIS interface
to use BAM2BAM mode for data transfers. Also set TX/RX buffer
lengths to 128KB for MTP for improving throughput.
Change-Id: Ie1f51134a43f630501d257bcf71fd4deecc70862
Set persist.sys.usb.config to diag,serial_smd,rmnet_ipa,adb so that
default composition is 9091, which has DUN and RMNET interfaces
enabled.
Change-Id: Ibd47cf8c9048ef519902bba64c2a9303d7723dea
To use DUN interface related transport as port bridge instead of TTY, update
USB default composition as well update USB composition related configuration.
Change-Id: I713ab7b5d7f90611d25ab1c8ef7813e489abcdd8
ESOC is a used to determine if there is an MDM device connected,
and if so, what type of connection is used (HSIC, PCIe). Currently
the script only supports MDM9x25 or MDM9x35. Update the check to
support all present and future MDMs.
Change-Id: I6afe7d3da74fa1cf795ff2313d1bb992f5aa4f1e
When there is no platform identify using ro.board.platform, use
USB default composition as diag,adb. This reduces depedency on
different USB interface related transport.
Change-Id: Idc66ed88422494780670a92892951d6f84e315e8
To improve throughput when using USB MTP functionality, set default
USB request buffer size as 128 KB for both Tx and Rx.
Change-Id: I2fd3f6ba05daf167b27ba82678f25b7bf9269a47
This change sets DUN interface transport as char_bridge instead of smd.
With that default USB composition on 8996 v2.0 and above revision is:
9025: DIAG + ADB + MODEM + NMEA + RMNET + MSC
(diag,serial_bridge,serial_tty,rmnet_ipa,mass_storage,adb)
9026: DIAG + MODEM + NMEA + RMNET + MSC
(diag,serial_bridge,serial_tty,rmnet_ipa,mass_storage,adb)
Change-Id: Ief61c384ee6def4e3667e3909fa5465a84ea1ba3
Set the default USB composition for MSM8996 as below:
For msm8996 v1.0:
"diag,adb"
For msm8996 v2.0 and above:
"diag,serial_smd,serial_tty,rmnet_ipa,mass_storage,adb"
Change-Id: Ide70eec2e6a266eb5d9f52957a8c698712fc575d
For MSM8996 target, RNDIS is enabled with BAM-to-BAM to IPA for the
datapath. Set the transport type accordingly, which allows the USB
composite driver to choose the f_qc_rndis driver that supports this.
Change-Id: I641f30d4a7f8a50e2ead3d0f63a2c16cb64e9b08
The handling of the persist.sys.usb.config.extra property currently
reads the existing value and attempts to set the correct value based on
ro.baseband. This is fragile as future/unsupported baseband targets would
get the wrong value re-written contrary to what the user originally set.
Further, this does not support ESOC and would have to be added as well.
Instead, it needs to at least be initialized to 'none' if not already
set.
Simply remove this section altogether, as it would ease future maintenance
effort. As the persist.sys.usb.config.extra property is an undocumented
test feature which is not enabled by end-users, we don't necessarily need
script logic to handle it, and can instead place the burden of setting it
correctly on the developer/tester.
CRs-fixed: 657143
Change-Id: I98c08180bcbe791667d0ccb866a11796a7debc12
ro.product.device gives the target name with _32/_64 post fix
depending upon which build is loaded currently. To overcome
the parsing issue and setting the default compostion for
targts, use ro.board.platform which gives target name
without such postfix attached.
Change-Id: Ic8cde3b21cc48119a3d2e27680862f32d74ca78f
Currently init.qcom.usb.sh is writing the serial number into
android sysfs entry. But during bootup, .rc file is writing
default composition before .sh gets executed. This results USB
driver sending default serial string to host due to port hopping
happens. Hence write ro.serialno to the sysfs entry on init once.
Also remove reading persist.usb.serialno which is required only for
NAND based devices as all future targets are emmc based devices.
CRs-Fixed: 659235
Change-Id: Iddb0875fe0aff9aa9d53850861cc54735e5006d7
Set DIAG + ADB as default USB composition for ferrum. It will be
changed later to support other interfaces like modem and rmnet.
Change-Id: I9ceb305d917d61117b63d9cdc78b884f4307b8ac
Mount cdrom media for msm8916 targets. LUNs are already
created during the initialization time and hence its
fine to echo the media for cdrom at this time.
Change-Id: I43c5be6483c3d47559986a95c48938dad15789e7
MSM8994 IPA hardware does not properly handle aggregated RNDIS
packets from the host. Set the max_pkt_per_xfer to 1 to disable
UL aggregation.
Change-Id: Ib36b10a1a6a9920c93bcd93614e3a4dc76caa4b2
Set the default USB composition for MSM8994 as
"diag,serial_smd,serial_tty,rmnet_ipa,mass_storage,adb". This
corresponds to PID 9025 with the RmNET function configured
with IPA transport.
Change-Id: I7be357be11ee8f814d1c261e4575331f75a49385
For MSM8994 targets, RNDIS is enabled with BAM-to-BAM to IPA for
the datapath. Set the transport type accordingly, which allows
the USB composite driver to choose the f_qc_rndis driver that
supports this.
Change-Id: I2a22bff2042801f43eca323d9bedd43469998190
-- Stop adbd before modifing usb configuration.
-- Add usb configuration for msm8916_32 and msm8916_64.
Change-Id: Id9e9a6990e5004ef299af27a06d1457bdbb4051f
This change sets 9091 composition as default composition for 8916
and is required when user sets persist.sys.usb.config to none to
move from nondefault composition to default composition. Otherwise
it will lead to enabling 9025 composition which is not supported
for 8916.
CRs-Fixed: 629490
Change-Id: Ie2e512afd8497d9c89ecf2b866d1100e5cc25f80
we use persist.sys.usb.config.extra to specify if we want to use diag with
rndis interface earlier userspace used to read this property to check
whether diag is to be included in composition and used to set appropriate
composition.
Now we plan to make this check and change in device specific files. This
change checks whenever there is a composition with rndis and
persist.sys.usb.config.extra indicates to include diag we set the
usb.sys.config to reflect this indication. User now need to set extra
property to diag and based on the baseband information we can figure out
clients representing diag interface.
Change-Id: I3257f47ed42b3ad4fea68a6deb45c27944614558
RmNet MUX is now required to be enabled by default on
Fusion 4 targets. Set the persist.rmnet.mux property
for this target during bootup.
Change-Id: I57075505153198f214883b0e71e88757e6e79d3b
This change writes to mass storage lun sysfs entry to rom LUNs
for 8x26 and 8x10 platforms. With this, lun0 for cdrom is created.
CRs-Fixed: 526542
Change-Id: Ieda5306f5b767a1d7ec033e33308cd519b0a3f93
The kernel ESOC framework allows for querying of externally
connected MDMs and connection type. Use this to support
newer Fusion targets which may contain an MDM interconnected
via HSIC, PCIe or a combination.
Change-Id: Ic1ac6b7f61e24809db9cdd1e6f2619decf994385
When the HSIC is used on msm8226, the device will always be connected
during boot up. HSIC does not allow system suspend until a device is
detected. Hence unbind the HSIC during boot up if it is not connected
to any device.
Change-Id: Ifa97cfcf0013820eeeb9a51fe02f00124f7629f4
As there is no usecase for HSIC on standalone configuration remove
hsic.
Change-Id: I4a01002fd40593c26591b323a38a99dcab02dca8
(cherry picked from commit f48c21f800fde04943687052a39d5d9af60028c7)
Currently apq8084 is booting using the USB 2.0 controller. However,
on this target, this controller is limited in the number of endpoints
supported, hence we can only support at most two or three functions.
Set the default composition to diag,adb for now until the USB 3.0
controller is fully functional.
Change-Id: Id01c0bf929e01120ca406abd57f0e492316ce11e
Drop code relevant for unsupported targets and
define default usb compositions so that we don't
need to change this file for every new target.
Change-Id: Ib6ae26f9ffeb8b68e7703296fbea8372d17b1a64