Closed Bug 999300 Opened 10 years ago Closed 9 years ago

Remove RIL V5 legacy support

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog, firefox41 fixed)

RESOLVED FIXED
2.2 S14 (12june)
tracking-b2g backlog
Tracking Status
firefox41 --- fixed

People

(Reporter: vicamo, Assigned: a2882525224)

References

Details

(Whiteboard: [grooming][good first bug][lang=js][mentor-lang=zh][p=1])

Attachments

(2 files, 10 obsolete files)

22.05 KB, patch
a2882525224
: review+
Details | Diff | Splinter Review
9.50 KB, patch
a2882525224
: review+
Details | Diff | Splinter Review
RIL v5 has been deprecated for a long time, and its behaviours differ from v6 and following version a lot.  There is no supported devices running on gingerbread now and this leaves some lines in ril worker untested.  That goes worse when we're having some serious refactoring on ril worker.  I think it's about time to remove these legacy lines.

RILv4: 3b1530aef62476248825a2092c9aea800395c3b1, 2.3_r10 <= x <= 2.3.3_r1
RILv5: 4380897c6cdc99486a061b819943e3b290ebcf09, 2.3.3_r1 < x < c0114b3
RILv6: c0114b325877907fcdf7a5baa24e54a752e7e58b, 4.0.1_r1 <= x <= 4.0.4_r2.1,
RILv7: 2bc78d614e349574426d198c37e51ccb7455b5bb, 4.1_r1 <= x < 4.3_r0.9, (emulator-ics)
RILv8: 8a9e02161271505de274db0c3a88087056dd5dfc, 4.3_r0.9 <= x < 4.4_r0.9 (emulator-jb)
RILv9: a18b9d1e1a014290691d63a7f335085dadc83e46, 4.4_r0.9 <= x <= 4.4_r1.2, 
RILv10: 2458d8d1e56faae7b00511ceeab19730572c22d9, >= 4.4.1_r1 (emulator-kk)
We had emulator-ics merge 4.2.2 because of CDMA emulation.
Depends on: 869327
blocking-b2g: --- → backlog
Whiteboard: [good first bug][lang=js][mentor-lang=zh][p=1]
Whiteboard: [good first bug][lang=js][mentor-lang=zh][p=1] → [grooming][good first bug][lang=js][mentor-lang=zh][p=1]
Assignee: nobody → bhsu
blocking-b2g: backlog → ---
Blocks: 831637
Blocks: 811754
Assignee: bhsu → a2882525224
Attachment #8602449 - Attachment description: Bug 999300 - Remvoed the Ril v5 legacy support. r=edgar → Bug 999300 - Remvoed the Ril v5 legacy support
Attachment #8602449 - Flags: review?(echen)
Hi Edgar,

I have removed as much v5 legacy related code as I can. Do you mind reviewing this patch?
Attachment #8602449 - Flags: review?(echen)
Attachment #8602449 - Attachment is obsolete: true
Attachment #8606832 - Attachment is obsolete: true
Attachment #8608053 - Attachment is obsolete: true
Attachment #8608667 - Flags: review?(echen)
Attachment #8606833 - Flags: review?(echen)
Comment on attachment 8608667 [details] [diff] [review]
Bug 999300 - Part1:Remvoed the Ril v5 legacy support(V3)

Review of attachment 8608667 [details] [diff] [review]:
-----------------------------------------------------------------

Thank for working on this, please see my comments below.

::: dom/system/gonk/ril_worker.js
@@ +5635,5 @@
>        newState = GECKO_RADIOSTATE_ENABLED;
> +      // We will retrieve radio tech by another request. We leave _isCdma
> +      // untouched, and it will be set once we get the radio technology.
> +      this._waitingRadioTech = true;
> +      this.getVoiceRadioTechnology();

We bail out early in line #5649 if radioState isn't changed. Please just leave this in original place which can prevent unnecessary radio technology querying.
Attachment #8608667 - Flags: review?(echen)
Comment on attachment 8606833 [details] [diff] [review]
Bug 999300 - Part2:Update the related testcases

Review of attachment 8606833 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, but you miss removing the v5Legacy in test_ril_worker_icc_SimRecordHelper.js [1].

[1] https://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/tests/test_ril_worker_icc_SimRecordHelper.js#358
Attachment #8606833 - Flags: review?(echen)
Hi Edgar,

Thanks for your suggestion but I can't fix it immediately because I am traveling abroad. I will deal with it when I come back.
Attachment #8608667 - Attachment is obsolete: true
Attachment #8617259 - Flags: review?(echen)
Attachment #8606833 - Attachment is obsolete: true
Attachment #8617260 - Flags: review?(echen)
Hi Edgar,

I fixed up the patches. Do you mind reviewing them ?
Comment on attachment 8617259 [details] [diff] [review]
Bug 999300 - Part1:Remvoed the Ril v5 legacy support(V4)

Review of attachment 8617259 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, but please help to revise the commit message:
- Add space after `Part` and `:`, e.g. "Bug 999300 - Part 1: ....".
- Remove the patch version.

And please remember to add `r=edgar` or `r=echen` after review granted.
Thank you.
Attachment #8617259 - Flags: review?(echen) → review+
Comment on attachment 8617260 [details] [diff] [review]
Bug 999300 - Part2:Update the related testcases(V2)

Review of attachment 8617260 [details] [diff] [review]:
-----------------------------------------------------------------

Same as comment #14.
And remember to provide try result [1] before marking checkin-needed, if you need help please just let me know.
Thank you. 

[1] https://wiki.mozilla.org/Build:TryServer#How_to_push_to_try
Attachment #8617260 - Flags: review?(echen) → review+
Revise the commit message
Attachment #8617259 - Attachment is obsolete: true
Attachment #8617834 - Flags: review+
Revise the commit message
Attachment #8617834 - Attachment is obsolete: true
Attachment #8617840 - Flags: review+
Revise the commit message
Attachment #8617840 - Attachment is obsolete: true
Attachment #8617844 - Flags: review+
Updated the commit message
Attachment #8617844 - Attachment is obsolete: true
Attachment #8617849 - Flags: review+
Updated the commit message
Attachment #8617260 - Attachment is obsolete: true
Attachment #8617850 - Flags: review+
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: