summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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.
2009-08-24Fix build warningAki Niemi1-1/+1
2009-08-24Fix typosAki Niemi1-16/+18
2009-08-23gisi: Fix warning in g_isi_subscribe()Aki Niemi1-1/+3
Save the GIsiModem instance in GIsiClient, so that calling g_isi_subscribe() doesn't throw a warning.
2009-08-23Fix memory leak in ISI phonebook driverAki Niemi1-31/+39
2009-08-22gisi: Add debugging hooksAki Niemi2-0/+34
2009-08-22Fix memory leak in isimodem.cAki Niemi1-1/+2
2009-08-22Move dump_msg() to isi.h as static inlineAki Niemi2-14/+11
2009-08-21Fix getting the offset into sms fragment bitmap.Andrzej Zaborowski1-1/+1
Otherwise only 64 fragments fit.
2009-08-21Add generic_at modem driverDenis Kenzior3-1/+598
Useful for testing or when the device is extremely 27.007 compliant, e.g. phonesim
2009-08-21Update the isi driver to the new modem driver apiDenis Kenzior1-6/+52
2009-08-21Introduce the Modem driver APIDenis Kenzior3-91/+339
2009-08-21Remove org.ofono.at.ManagerDenis Kenzior4-618/+0
2009-08-21Add CONFIGDIR automake magicDenis Kenzior1-0/+9
2009-08-21Remove unused functionDenis Kenzior1-6/+0
2009-08-21Enable multi-modem supportAki Niemi1-22/+73
This patch enables concurrent use of multiple ISI modems, e.g., all connected via USB using cdc_phonet.
2009-08-21Enable multiple instances of phonebook driverAki Niemi1-32/+18
2009-08-21Enable multiple instances of devinfo driverAki Niemi1-14/+29
2009-08-21Move struct isi_data to privateAki Niemi1-7/+0
2009-08-21Refactor isidevinfoAki Niemi1-56/+19
Remove storing of pending request objects to linked list; g_isi_client_destroy() will clear those properly. Fix naming of enums, and use DECLARE_SUCCESS() macro.
2009-08-21Pass modem instance to phonebook driverAki Niemi2-4/+6
2009-08-20Fix unused variable lDenis Kenzior1-1/+0
2009-08-20Rename ofono_modem_*_userdataDenis Kenzior4-7/+7
Rename ofono_modem_get_userdata to ofono_modem_get_data Rename ofono_modem_set_userdata to ofono_modem_set_data For consistency with other drivers
2009-08-20Hide the ofono_modem datastructureDenis Kenzior2-70/+48
2009-08-20Port history to the new atom APIDenis Kenzior3-34/+54
Use __atom_foreach
2009-08-20Add __ofono_modem_foreach_atom functionDenis Kenzior2-0/+26
2009-08-20Fix unused variable modemDenis Kenzior1-1/+0
2009-08-20Fix unused function remove_all_watchesDenis Kenzior1-0/+2
2009-08-20Fix unused variable modemDenis Kenzior1-1/+0
2009-08-20Remove unused functionDenis Kenzior1-8/+0
2009-08-20Remove unused functionDenis Kenzior1-10/+0
2009-08-20Fix implicit declaration of extract_bcd_numberDenis Kenzior1-0/+1
2009-08-20Fix unused variable pathDenis Kenzior1-1/+1
2009-08-20Fix unused variable lDenis Kenzior1-1/+0
2009-08-20Fix unused variable pbdDenis Kenzior1-2/+0