On 12/09/18 09:58, Lee Jones wrote:My preference would be for you to add at least one other (tested)
WCD9335 Codec hw itself has multiple hw blocks.I normally don't accept MFDs with just one device enabled. Since it'sYes, that is the plan, we are kind of limited in hardware setup to test few+static const struct mfd_cell wcd9335_devices[] = {Are there more devices to come?
+ { .name = "wcd9335-codec", },
+};
things like soundwire controller. We are exploring other ways to test these.
not really an MFD (M == Multi) until it has more than one function.
If the issue is about adding more entries to mfd cells then we should be
able to add below entry:
{ .name = "wcd9335-soundwire-controller", },
Actual driver for soundwire controller is not something We can test with
regular dragon boards, it needs special hw for smart speakers. Once we have
that we can test and post the drivers for that.
Otherwise
Are you suggesting that I move everything to sound/soc/codecs and then back
to mfd once soundwire controller driver is added?
device. However, in your case I know where you live, so I can throw
tomatoes at your house if you don't upstream more device support
promptly!;)
When will you be enabling more devices? If the answer is 'never',
then creating an MFD is a waste of time.
Isn't power-up and reset also done in probe()?[...]Its catch-22 situation, without device being powered up and reset correctly
ifc is a horrible variable name - just sayin'.ifc was suggested in dt bindings by Rob, I can proably rename to+ struct device_node *ifc_dev_np;ifc isn't very forthcoming. Any way you can improve the name?
interface_node.
[...]
Right, I understand what's happening. I just think the semantics aredevice status reports the device status at runtime. We can not communicate+ ret = wcd9335_bring_up(wcd);So the device_status call-back brings up the hardware?
with the device until it is up, enumerated by slimbus and a logical address
is assigned to it. So the best place to initialize it is in status callback
where all the above are expected to be done.
wrong. The Subsystem (I'm assuming it's a Subsystem) requests for
status and it ends up initiating a start-up sequence. Just from a
purist's point of view (I understand that it "works"), it's not good
practice.
Probe is expected to setup the external configurations like regulators/pinsI suggest fully starting the device in probe() is a better approach.
and so on which gets the device out of reset and ready to be enumerated by
the slimbus controller.
there is no way to enumerate it.
What am I missing?