summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-09-01Rename isi drivers to isimodemDenis Kenzior13-26/+26
Be more consistent with directory naming
2009-09-01Rename generic_at drivers to atmodemDenis Kenzior13-24/+24
Be more consistent with directory naming
2009-09-01populate should return voidDenis Kenzior3-7/+3
2009-09-01Make remove functions not return anythingDenis Kenzior39-82/+39
2009-09-01change int vendor to unsigned int vendorDenis Kenzior48-67/+94
2009-09-01Add first steps for a udev based modem detection pluginMarcel Holtmann2-0/+76
2009-09-01Update D-Bus configuration options and check for udevMarcel Holtmann1-15/+40
2009-09-01Add ofono_modem_get_poweredDenis Kenzior1-0/+8
2009-09-01Add proposed data connection manager APIDenis Kenzior1-0/+163
2009-09-01Add stub vendor.h fileDenis Kenzior1-0/+24
2009-09-01Add vendor flag capability to voicecallsDenis Kenzior6-11/+14
2009-09-01Add vendor flag capability to ussdDenis Kenzior6-9/+12
2009-09-01Add vendor flag capability to ssnDenis Kenzior6-9/+12
2009-09-01Add vendor flag capability for smsDenis Kenzior6-10/+12
2009-09-01Add vendor flag capability to simDenis Kenzior6-9/+12
2009-09-01Add vendor flag capability to phonebookDenis Kenzior6-9/+12
2009-09-01Add vendor flag capability to netregDenis Kenzior6-17/+16
2009-09-01Add vendor flag capability to devinfoDenis Kenzior6-10/+13
2009-09-01Add vendor flag to call-settingsDenis Kenzior6-9/+18
2009-09-01Add vendor parameter to call-meterDenis Kenzior6-9/+13
2009-09-01Add vendor flag to call-forwardingDenis Kenzior6-9/+17
2009-09-01Introduce vendor parameter to call-barringDenis Kenzior6-9/+16
2009-09-01gisi: Getter function for pipe handleIsmo Puustinen2-0/+12
2009-08-31Fix being able to set powered after failureDenis Kenzior1-1/+4
If enable failed, subsequent attempts will also fail.
2009-08-31Add PDU listing supportDenis Kenzior2-17/+79
2009-08-31Don't return sdn numbers until readyDenis Kenzior1-1/+3
2009-08-31Simplify EFsdn reading codeDenis Kenzior1-25/+28
2009-08-31Rename MNCLength to MobileNetworkCodeLengthDenis Kenzior1-3/+3
2009-08-31Refactor sim mnc lengthDenis Kenzior1-7/+8
2009-08-31Style FixDenis Kenzior1-4/+2
2009-08-31Simplify nested ifsDenis Kenzior1-15/+15
2009-08-31Simplify overly complicated codeDenis Kenzior1-16/+16
2009-08-31Expose service dialling numbers stored on SIM through SimManager.Andrzej Zaborowski4-7/+227
2009-08-31Decode and encode alpha-identifier fieldsAndrzej Zaborowski4-11/+46
Add identifier argument to sim_adn_parse and sim_adn_build. Also fix the number length passed to extract_bcd_number in sim_adn_parse.
2009-08-31Read EFad and expose the IMSI MNC length (2-3)Andrzej Zaborowski2-0/+45
2009-08-30Reformat comments a littleDenis Kenzior1-6/+8
2009-08-30driver callback namingAndres Salomon1-0/+9
On Sun, 30 Aug 2009 13:45:45 -0500 Denis Kenzior <denkenz@gmail.com> wrote: > Hi Andres, > > > static struct ofono_modem_driver g1_driver = { > > .name = "HTC G1", > > .probe = g1_probe, > > .enable = g1_enable, > > .disable = g1_disable, > > .remove = g1_remove, > > .populate = g1_populate, > > }; > > > > So the current intention: > .probe - Detect whether device is really supported by the plugin, > initialize any data structures specific to the device > .remove - Destroy data structures > .enable - Perform power up > .disable - Perform power down > .populate - Populate the atoms supported by this device (e.g. netreg, > voicecall, etc) This is called by the core after every power cycle, > when the device is brought up. > Thanks! See patch below. > > > > Of course, I'm also wondering why there needs to be two separate > > layers of calls in the first place. Why not have drivers register > > everything from within probe, call ofono_set_powered(modem, TRUE) > > once the device is ready, and be done with it? > > The reason for this is e.g. airplane mode, where you physically want > to turn off the device. Another case is for battery / power reasons, > e.g. a netbook with a USB modem that is not being used. > Fair enough. In the kernel, we have callbacks named suspend/resume to handle that. > > The only reason why this doesn't blow up in the generic_at plugin is > > because the driver_data is leaked. If one were to free it from > > generic_at_exit in the wrong place (since it's allocated from > > generic_at_init, it would make sense to free it in generic_at_exit), > > one would see the same SEGV/SIGBUS/SIGILL errors upon ctrl-c. > > So the leak has now been fixed. > > I think you're being unnecessarily harsh here. To be fair, the > generic_at driver does something like this at init: My criticism is simply w/ the naming. 'enable'/'disable' doesn't imply anything about power. powerup/powerdown, poweron/poweroff, suspend/resume would all imply power state changes (at least the latter would be familiar to those who do kernel stuff). Having comments that describe what the callbacks do would also work, though. >From 80a7b54d52201dfd7d8b590457450ae0a4f72888 Mon Sep 17 00:00:00 2001 From: Andres Salomon <dilinger@collabora.co.uk> Date: Sun, 30 Aug 2009 15:56:16 -0400 Subject: [PATCH] Add comments to ofono_modem_driver struct Document what all the callbacks do.
2009-08-30Fix memory leak in generic_at driverDenis Kenzior1-0/+6
2009-08-30Add debug to modem_createDenis Kenzior1-0/+2
2009-08-29Make history drivers work againDenis Kenzior1-3/+7
2009-08-29Fix a problem with CtrlZ echoDenis Kenzior1-0/+10
When a PDU is submitted and echoed by the modem, the CtrlZ character is also echoed back. Fix the parser to handle this case appropriately.
2009-08-28gisi: return GPRS interface index/nameRémi Denis-Courmont2-6/+28
2009-08-25gisi: Fix indication debuggingAki Niemi1-3/+10
2009-08-25Rename all files under drivers/isimodem/Aki Niemi13-12/+12
2009-08-25Fix typo in technology nameAki Niemi1-1/+1
2009-08-24Convert to fully non-recursive build systemMarcel Holtmann30-366/+216
2009-08-24Use script to generate list of builtin plugin symbolsMarcel Holtmann4-19/+24
2009-08-24Use proper variables for various commandsMarcel Holtmann4-6/+14
2009-08-24Add straw-man for rest of ISI modem driverAki Niemi13-1/+1580
2009-08-24Fix broken dependency on include/ofono/*.h filesRémi Denis-Courmont1-7/+9
The fact that the directory exists does not prove that (all of) the header file symbolic links have been created. This is particularly annoying when a new header file gets added.