kernel/eka/drivers/usbcc/chapter9.cpp
changeset 139 95f71bcdcdb7
parent 90 947f0dc9f7a8
child 253 d37db4dcc88d
equal deleted inserted replaced
109:b3a1d9898418 139:95f71bcdcdb7
  1134 		return;
  1134 		return;
  1135 		}
  1135 		}
  1136 	// New configuration is the same as the old one (but not 0)
  1136 	// New configuration is the same as the old one (but not 0)
  1137 	if (iCurrentConfig == aValue)
  1137 	if (iCurrentConfig == aValue)
  1138 		{
  1138 		{
  1139 		// no-op
       
  1140 		__KTRACE_OPT(KUSB, Kern::Printf("  Configuration: New == Old == %d --> exiting", aValue));
  1139 		__KTRACE_OPT(KUSB, Kern::Printf("  Configuration: New == Old == %d --> exiting", aValue));
       
  1140 
       
  1141 		// From the spec 9.1.1.5, Data toggle is reset to zero here when 
       
  1142 		// setconfiguration(x->x)(x!=0) received, although we only support
       
  1143 		// single configuration currently.
       
  1144 		TInt num = 0;
       
  1145 		TInt ret = DoForEveryEndpointInUse(&DUsbClientController::ResetDataToggle, num);
       
  1146 		if(ret != KErrNone)
       
  1147 			{
       
  1148 			__KTRACE_OPT(KPANIC, Kern::Printf("  Error: Endpoint data toggle reset failed"));
       
  1149 			}
       
  1150 		__KTRACE_OPT(KUSB, Kern::Printf("  Called ResetDataToggle()for %d endpoints", num));	
       
  1151 	
  1141 		return;
  1152 		return;
  1142 		}
  1153 		}
  1143 	// Device is already configured
  1154 	// Device is already configured
  1144 	if (iCurrentConfig != 0)
  1155 	if (iCurrentConfig != 0)
  1145 		{
  1156 		{